Mercurial > hg > CommandParser
annotate setup.py @ 17:77fa5ce8072d default tip
bump version
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sun, 19 Feb 2017 21:05:55 -0800 |
| parents | d277ee510157 |
| children |
| rev | line source |
|---|---|
| 0 | 1 """ |
| 2 setup packaging script for CommandParser | |
| 3 """ | |
| 4 | |
| 5 import os | |
| 6 | |
| 17 | 7 version = "0.3" |
| 0 | 8 dependencies = [] |
| 9 | |
| 9 | 10 try: |
| 11 import json | |
| 12 except ImportError: | |
| 13 dependencies.append('simplejson') | |
| 14 | |
| 0 | 15 # allow use of setuptools/distribute or distutils |
| 16 kw = {} | |
| 17 try: | |
| 18 from setuptools import setup | |
| 19 kw['entry_points'] = """ | |
| 20 [console_scripts] | |
| 21 """ | |
| 22 kw['install_requires'] = dependencies | |
| 23 except ImportError: | |
| 24 from distutils.core import setup | |
| 25 kw['requires'] = dependencies | |
| 26 | |
| 27 try: | |
| 28 here = os.path.dirname(os.path.abspath(__file__)) | |
| 16 | 29 description = open(os.path.join(here, 'README.txt')).read() |
| 0 | 30 except IOError: |
| 31 description = '' | |
| 32 | |
| 33 | |
| 34 setup(name='CommandParser', | |
| 35 version=version, | |
| 36 description="change objects to OptionParser instances via reflection", | |
| 37 long_description=description, | |
| 38 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
| 39 author='Jeff Hammel', | |
| 40 author_email='jhammel@mozilla.com', | |
| 41 url='http://k0s.org/hg/CommandParser', | |
|
12
e0a3148e67a8
bug fix and a short overhaul of documentation
Jeff Hammel <jhammel@mozilla.com>
parents:
11
diff
changeset
|
42 license='MPL', |
| 0 | 43 packages=['commandparser'], |
| 44 include_package_data=True, | |
| 45 zip_safe=False, | |
| 46 **kw | |
| 47 ) |
