annotate setup.py @ 3:406183d93e48

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