Mercurial > mozilla > hg > talosnames
annotate setup.py @ 66:0f5c22c07146
add interface for paste since wsgiref falls over in production
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 20 Aug 2012 09:49:18 -0700 |
parents | 11249e75ced6 |
children |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for talosnames | |
3 """ | |
4 | |
5 import os | |
6 | |
7 version = "0.0" | |
66
0f5c22c07146
add interface for paste since wsgiref falls over in production
Jeff Hammel <jhammel@mozilla.com>
parents:
47
diff
changeset
|
8 dependencies = ['webob', 'CommandParser', 'talos', 'buildbot', 'PyYAML', 'PasteScript'] |
0 | 9 |
47
11249e75ced6
allow more than one template path
Jeff Hammel <jhammel@mozilla.com>
parents:
46
diff
changeset
|
10 try: |
11249e75ced6
allow more than one template path
Jeff Hammel <jhammel@mozilla.com>
parents:
46
diff
changeset
|
11 import json |
11249e75ced6
allow more than one template path
Jeff Hammel <jhammel@mozilla.com>
parents:
46
diff
changeset
|
12 except ImportError: |
11249e75ced6
allow more than one template path
Jeff Hammel <jhammel@mozilla.com>
parents:
46
diff
changeset
|
13 dependencies.append('simplejson') |
11249e75ced6
allow more than one template path
Jeff Hammel <jhammel@mozilla.com>
parents:
46
diff
changeset
|
14 |
0 | 15 # allow use of setuptools/distribute or distutils |
16 kw = {} | |
17 try: | |
18 from setuptools import setup | |
19 kw['entry_points'] = """ | |
20 [console_scripts] | |
1 | 21 talos-names = talosnames.main:main |
46
fcd98303a90d
provide CLI handler for web
Jeff Hammel <jhammel@mozilla.com>
parents:
16
diff
changeset
|
22 talos-names-web = talosnames.web:main |
0 | 23 """ |
24 kw['install_requires'] = dependencies | |
11 | 25 kw['dependency_links'] = ['http://hg.mozilla.org/build/talos/archive/tip.tar.gz#egg=talos'] |
0 | 26 except ImportError: |
27 from distutils.core import setup | |
28 kw['requires'] = dependencies | |
29 | |
30 try: | |
31 here = os.path.dirname(os.path.abspath(__file__)) | |
32 description = file(os.path.join(here, 'README.txt')).read() | |
33 except IOError: | |
34 description = '' | |
35 | |
36 | |
37 setup(name='talosnames', | |
38 version=version, | |
39 description="correlate names of talos", | |
40 long_description=description, | |
41 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
42 author='Jeff Hammel', | |
43 author_email='jhammel@mozilla.com', | |
44 url='', | |
66
0f5c22c07146
add interface for paste since wsgiref falls over in production
Jeff Hammel <jhammel@mozilla.com>
parents:
47
diff
changeset
|
45 license='MPL', |
0 | 46 packages=['talosnames'], |
47 include_package_data=True, | |
48 zip_safe=False, | |
49 **kw | |
50 ) | |
51 |