annotate setup.py @ 8:20c42ae0f7b7

switch to command parser, round 2
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 14:31:13 -0700
parents 82aad57c7d1d
children b7b59561be5e
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 talosnames
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"
6
82aad57c7d1d add regex mapping
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
8 dependencies = ['webob', 'CommandParser']
0
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]
1
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
16 talos-names = talosnames.main:main
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 kw['install_requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 setup(name='talosnames',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 description="correlate names of talos",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 author='Jeff Hammel',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 author_email='jhammel@mozilla.com',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 url='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 license='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 packages=['talosnames'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 )
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44