annotate makeitso/python_package/setup.py @ 118:5964dabba04a

correct syntax error
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 21 Jan 2011 09:34:23 -0800
parents 908e9a653668
children 0e18cdf36a0e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 80
diff changeset
1 import os
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 from setuptools import setup, find_packages
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 try:
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 80
diff changeset
5 here = os.path.dirname(os.path.abspath(__file__))
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 80
diff changeset
6 description = file(os.path.join(here, 'README.txt')).read()
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 except IOError:
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 description = ''
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 version = "0.0"
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11
116
908e9a653668 fix a syntax error in the python template thanks to some friendly tests
Jeff Hammel <jhammel@mozilla.com>
parents: 109
diff changeset
12 dependencies = {{dependencies}}
109
697568ba4a22 make the python package template a little fancier
Jeff Hammel <jhammel@mozilla.com>
parents: 102
diff changeset
13
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 setup(name='{{project}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 version=version,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 description="{{description}}",
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 long_description=description,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 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
19 author='{{author}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 author_email='{{email}}',
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 url='{{url}}',
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 80
diff changeset
22 license='',
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 include_package_data=True,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 zip_safe=False,
109
697568ba4a22 make the python package template a little fancier
Jeff Hammel <jhammel@mozilla.com>
parents: 102
diff changeset
26 install_requires=dependencies,
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 entry_points="""
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 # -*- Entry points: -*-
109
697568ba4a22 make the python package template a little fancier
Jeff Hammel <jhammel@mozilla.com>
parents: 102
diff changeset
29
697568ba4a22 make the python package template a little fancier
Jeff Hammel <jhammel@mozilla.com>
parents: 102
diff changeset
30 {{console_scripts}}
80
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 """,
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 )
0300ed78d630 add a setup.py template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33