Mercurial > hg > CommandParser
annotate setup.py @ 8:109627b7db9f
add ability to have mandatory class arguments
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 30 Mar 2012 10:37:39 -0700 |
parents | 48aa5a9ef7e1 |
children | 0069096e8e22 |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for CommandParser | |
3 """ | |
4 | |
5 import os | |
6 | |
8
109627b7db9f
add ability to have mandatory class arguments
Jeff Hammel <jhammel@mozilla.com>
parents:
6
diff
changeset
|
7 version = "0.1.1" |
0 | 8 dependencies = [] |
9 | |
10 # allow use of setuptools/distribute or distutils | |
11 kw = {} | |
12 try: | |
13 from setuptools import setup | |
14 kw['entry_points'] = """ | |
15 [console_scripts] | |
16 """ | |
17 kw['install_requires'] = dependencies | |
18 except ImportError: | |
19 from distutils.core import setup | |
20 kw['requires'] = dependencies | |
21 | |
22 try: | |
23 here = os.path.dirname(os.path.abspath(__file__)) | |
24 description = file(os.path.join(here, 'README.txt')).read() | |
25 except IOError: | |
26 description = '' | |
27 | |
28 | |
29 setup(name='CommandParser', | |
30 version=version, | |
31 description="change objects to OptionParser instances via reflection", | |
32 long_description=description, | |
33 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
34 author='Jeff Hammel', | |
35 author_email='jhammel@mozilla.com', | |
36 url='http://k0s.org/hg/CommandParser', | |
37 license='', | |
38 packages=['commandparser'], | |
39 include_package_data=True, | |
40 zip_safe=False, | |
41 **kw | |
42 ) |