Mercurial > hg > sworduploader
comparison sword2-libraries-pyinstaller-compatible/setup.py @ 16:8b69bba225c9
Added pyinstaller compatible sword2 python libraries
author | Marco Fabiani <marco.fabiani@eecs.qmul.ac.uk> |
---|---|
date | Tue, 29 May 2012 12:42:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:e24aea2d14a4 | 16:8b69bba225c9 |
---|---|
1 from setuptools import setup, find_packages | |
2 import sys, os | |
3 | |
4 version = '0.1' | |
5 | |
6 try: | |
7 from mercurial import ui, hg, error | |
8 repo = hg.repository(ui.ui(), ".") | |
9 ver = repo[version] | |
10 except ImportError: | |
11 pass | |
12 except error.RepoLookupError: | |
13 tip = repo["tip"] | |
14 version = version + ".%s.%s" % (tip.rev(), tip.hex()[:12]) | |
15 except error.RepoError: | |
16 pass | |
17 | |
18 setup( | |
19 name='sword2', | |
20 version=version, | |
21 description="SWORD v2 python client", | |
22 long_description="""\ | |
23 SWORD v2 python client""", | |
24 # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | |
25 classifiers=[ | |
26 "Development Status :: 3 - Alpha", | |
27 "Environment :: Console", | |
28 "Environment :: Web Environment", | |
29 #"Framework :: Paste", | |
30 "Intended Audience :: Developers", | |
31 "Intended Audience :: Information Technology", | |
32 "Intended Audience :: Science/Research", | |
33 "License :: OSI Approved :: BSD License", | |
34 "Operating System :: OS Independent", | |
35 "Programming Language :: Python :: 2.6", | |
36 "Topic :: Internet", | |
37 "Topic :: Internet :: WWW/HTTP", | |
38 "Topic :: Software Development :: Libraries :: Python Modules", | |
39 ], | |
40 keywords="sword-app atom sword2 http", | |
41 author="Ben O'Steen", | |
42 author_email='bosteen@gmail.com', | |
43 url="http://swordapp.org/", | |
44 license='MIT', | |
45 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | |
46 include_package_data=True, | |
47 zip_safe=False, | |
48 install_requires=[ | |
49 "httplib2", | |
50 ], | |
51 # Following left in as a memory aid for later- | |
52 #entry_points=""" | |
53 # # -*- Entry points: -*- | |
54 # [console_scripts] | |
55 # cmd=module.path:func_name | |
56 #""", | |
57 ) |