Mercurial > hg > MakeItSo
annotate makeitso/python_module/setup.py @ 200:5a2edca13b36
wip
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Jun 2014 11:44:43 -0700 |
parents | ee29d37198a3 |
children | 2eb0a8dc2303 |
rev | line source |
---|---|
129
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 import os |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 from setuptools import setup |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
3 |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
4 try: |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 here = os.path.dirname(os.path.abspath(__file__)) |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 description = file(os.path.join(here, 'README.txt')).read() |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 except IOError: |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
8 description = None |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
9 |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
10 version = '0.0' |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
11 |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 deps = [] |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
13 |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
14 setup(name='{{module}}', |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
15 version=version, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
16 description="{{description}}", |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
17 long_description=description, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
18 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
199
ee29d37198a3
STUB: makeitso/python_module/setup.py
Jeff Hammel <k0scist@gmail.com>
parents:
129
diff
changeset
|
19 keywords='', |
129
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
20 author='{{author}}', |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
21 author_email='{{email}}', |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
22 url='{{url}}', |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
23 license='', |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
24 py_modules=['{{module}}'], |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
25 packages=[], |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
26 include_package_data=True, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
27 zip_safe=False, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
28 install_requires=deps, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
29 entry_points=""" |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
30 # -*- Entry points: -*- |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
31 [console_scripts] |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
32 {{module}} = {{module}}:main |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
33 """, |
57834c2b0937
add a single-file module to the thingy
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
34 ) |