annotate setup.py @ 0:3e1f069ac608

stub
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 06 Jul 2012 16:22:42 -0700
parents
children a10ae1ea8325
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"
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 dependencies = ['MakeItSo', 'webob']
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]
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 talosnames = talosnames.main:main
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 talosnames-template = talosnames.template:main
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['install_requires'] = dependencies
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