Mercurial > hg > PaInt
annotate setup.py @ 87:5a624b3c1007 default tip
py35
| author | Jeff Hammel <k0scist@gmail.com> | 
|---|---|
| date | Sun, 19 Feb 2017 17:50:00 -0800 | 
| parents | 4446cba4cee6 | 
| children | 
| rev | line source | 
|---|---|
| 0 | 1 """ | 
| 2 setup packaging script for PaInt | |
| 3 """ | |
| 4 | |
| 5 import os | |
| 6 | |
| 46 | 7 version = "0.1.2" | 
| 
81
 
4446cba4cee6
update CommandParser and docstring for it
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
46 
diff
changeset
 | 
8 dependencies = ['virtualenv >= 1.7.1.2', | 
| 
 
4446cba4cee6
update CommandParser and docstring for it
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
46 
diff
changeset
 | 
9 'pip >= 1.1', | 
| 
 
4446cba4cee6
update CommandParser and docstring for it
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
46 
diff
changeset
 | 
10 'pkginfo', | 
| 
 
4446cba4cee6
update CommandParser and docstring for it
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
46 
diff
changeset
 | 
11 'CommandParser >= 0.2'] | 
| 0 | 12 | 
| 13 # allow use of setuptools/distribute or distutils | |
| 14 kw = {} | |
| 15 try: | |
| 16 from setuptools import setup | |
| 17 kw['entry_points'] = """ | |
| 18 [console_scripts] | |
| 
26
 
8beffeb750b3
begin to add command parser
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
23 
diff
changeset
 | 
19 python-package = paint.main:main | 
| 0 | 20 """ | 
| 21 kw['install_requires'] = dependencies | |
| 22 except ImportError: | |
| 23 from distutils.core import setup | |
| 
22
 
aad329df2548
go crazy nuts with dependencies
 
Jeff Hammel <jhammel@mozilla.com> 
parents: 
0 
diff
changeset
 | 
24 kw['requires'] = dependencies | 
| 0 | 25 | 
| 26 try: | |
| 27 here = os.path.dirname(os.path.abspath(__file__)) | |
| 87 | 28 description = open(os.path.join(here, 'README.txt')).read() | 
| 0 | 29 except IOError: | 
| 30 description = '' | |
| 31 | |
| 32 setup(name='PaInt', | |
| 33 version=version, | |
| 34 description="python PAckage INTrospection", | |
| 35 long_description=description, | |
| 36 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
| 37 author='Jeff Hammel', | |
| 38 author_email='jhammel@mozilla.com', | |
| 39 url='http://k0s.org/mozilla/hg/PaInt', | |
| 23 | 40 license='MPL', | 
| 0 | 41 packages=['paint'], | 
| 42 include_package_data=True, | |
| 43 zip_safe=False, | |
| 44 **kw | |
| 45 ) | 
