Mercurial > hg > MakeItSo
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 |
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 | 2 from setuptools import setup, find_packages |
3 | |
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 | 7 except IOError: |
8 description = '' | |
9 | |
10 version = "0.0" | |
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 | 14 setup(name='{{project}}', |
15 version=version, | |
16 description="{{description}}", | |
17 long_description=description, | |
18 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
19 author='{{author}}', | |
20 author_email='{{email}}', | |
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 | 23 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
24 include_package_data=True, | |
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 | 27 entry_points=""" |
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 | 31 """, |
32 ) | |
33 |