annotate makeitso/python_package/setup.py @ 80:0300ed78d630

add a setup.py template
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 20:54:41 -0800
parents
children ad5fd3eb6674
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 from setuptools import setup, find_packages
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 try:
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 description = file('README.txt').read()
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 except IOError:
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 description = ''
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 version = "0.0"
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 setup(name='{{project}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 version=version,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 description="{{description}}",
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 long_description=description,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 author='{{author}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 author_email='{{email}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 url='{{url}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 license='{{license}}'
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 include_package_data=True,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 zip_safe=False,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 install_requires=[
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 # -*- Extra requirements: -*-
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 ],
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 entry_points="""
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 # -*- Entry points: -*-
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 """,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 )
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29