annotate makeitso/python_package/setup.py @ 109:697568ba4a22

make the python package template a little fancier
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 14 Jan 2011 17:55:08 -0800
parents ad5fd3eb6674
children 908e9a653668
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
109
697568ba4a22 make the python package template a little fancier
Jeff Hammel <jhammel@mozilla.com>
parents: 102
diff changeset
12 depdendencies = {{dependencies}}
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