annotate setup.py @ 46:fcd98303a90d

provide CLI handler for web
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 13 Aug 2012 15:14:53 -0700
parents 1713b3e244a7
children 11249e75ced6
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"
16
1713b3e244a7 add some things
Jeff Hammel <jhammel@mozilla.com>
parents: 14
diff changeset
8 dependencies = ['webob', 'CommandParser', 'talos', 'buildbot', 'PyYAML']
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
46
fcd98303a90d provide CLI handler for web
Jeff Hammel <jhammel@mozilla.com>
parents: 16
diff changeset
17 talos-names-web = talosnames.web:main
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['install_requires'] = dependencies
11
b7b59561be5e add talos
Jeff Hammel <jhammel@mozilla.com>
parents: 6
diff changeset
20 kw['dependency_links'] = ['http://hg.mozilla.org/build/talos/archive/tip.tar.gz#egg=talos']
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 setup(name='talosnames',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 description="correlate names of talos",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 author='Jeff Hammel',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 author_email='jhammel@mozilla.com',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 url='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 license='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 packages=['talosnames'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 )
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46