annotate setup.py @ 36:c945731f06d0

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