annotate setup.py @ 13:6ffd095cf5dd

add TODO
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 17 May 2013 02:06:30 -0700
parents e0a3148e67a8
children d277ee510157
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for CommandParser
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
12
e0a3148e67a8 bug fix and a short overhaul of documentation
Jeff Hammel <jhammel@mozilla.com>
parents: 11
diff changeset
7 version = "0.2"
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 dependencies = []
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
9
0069096e8e22 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
10 try:
0069096e8e22 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
11 import json
0069096e8e22 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
12 except ImportError:
0069096e8e22 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
13 dependencies.append('simplejson')
0069096e8e22 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
14
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 # allow use of setuptools/distribute or distutils
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 kw = {}
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 from setuptools import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['entry_points'] = """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 [console_scripts]
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 kw['install_requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 setup(name='CommandParser',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 description="change objects to OptionParser instances via reflection",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 author='Jeff Hammel',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 author_email='jhammel@mozilla.com',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
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
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 packages=['commandparser'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
47 )