annotate setup.py @ 47:11249e75ced6

allow more than one template path
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 13 Aug 2012 15:41:32 -0700
parents fcd98303a90d
children 0f5c22c07146
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
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
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]
1
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
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
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 kw['install_requires'] = dependencies
11
b7b59561be5e add talos
Jeff Hammel <jhammel@mozilla.com>
parents: 6
diff changeset
25 kw['dependency_links'] = ['http://hg.mozilla.org/build/talos/archive/tip.tar.gz#egg=talos']
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 setup(name='talosnames',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 description="correlate names of talos",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 author='Jeff Hammel',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 author_email='jhammel@mozilla.com',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 url='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 license='',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46 packages=['talosnames'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
47 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
48 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
49 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
50 )
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
51