Mercurial > hg > MakeItSo
annotate setup.py @ 268:64979cfff465 default tip
some py3 fixes
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Tue, 29 May 2018 15:28:41 -0700 (2018-05-29) |
| parents | 402b17ba3d19 |
| children |
| rev | line source |
|---|---|
| 229 | 1 """ |
| 2 setup.py script for MakeItSo | |
| 232 | 3 |
| 4 For packaging info please see: | |
| 5 https://docs.python.org/2/distutils/sourcedist.html | |
| 229 | 6 """ |
| 237 | 7 # https://github.com/nipy/nipype/blob/master/setup.py |
| 8 # might also be helpful | |
| 229 | 9 |
|
102
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
10 import os |
|
179
5bd1c50c6f61
works weirdly but kinda works
Jeff Hammel <k0scist@gmail.com>
parents:
174
diff
changeset
|
11 from setuptools import setup |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 |
|
102
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
13 try: |
|
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
14 here = os.path.dirname(os.path.abspath(__file__)) |
| 243 | 15 description = open(os.path.join(here, 'README.txt')).read() |
|
102
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
16 except IOError: |
|
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
17 description = '' |
|
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
18 |
| 266 | 19 version = '0.6.2' |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
20 |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
21 setup(name='MakeItSo', |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
22 version=version, |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
23 description='filesystem template interpreter', |
|
102
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
24 long_description=description, |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
25 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 119 | 26 keywords='templates', |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
27 author='Jeff Hammel', |
| 173 | 28 author_email='k0scist@gmail.com', |
|
212
cffc729926b9
correct text and bump version
Jeff Hammel <k0scist@gmail.com>
parents:
211
diff
changeset
|
29 url='http://k0s.org/hg/MakeItSo', |
| 29 | 30 license='MPL', |
| 172 | 31 packages=['makeitso'], |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
32 include_package_data=True, |
| 234 | 33 package_data={'makeitso': [ |
|
261
395fe039c7c0
[packaging] what a difference an underscore makes
Jeff Hammel <k0scist@gmail.com>
parents:
255
diff
changeset
|
34 os.path.join('python_package', 'tests', '*') |
| 246 | 35 ]}, |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
36 zip_safe=False, |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
37 install_requires=[ |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
38 # -*- Extra requirements: -*- |
|
138
169e02e190ef
peg to tempita version and eliminate cruft
Jeff Hammel <jhammel@mozilla.com>
parents:
131
diff
changeset
|
39 'tempita >= 0.5.1', |
|
44
6e08cca7d656
do API variable reading and stubbing a bit for control flow
Jeff Hammel <jhammel@mozilla.com>
parents:
30
diff
changeset
|
40 'webob', |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
41 ], |
|
252
13de6f87c323
add pytest in anticipation of future greatness
Jeff Hammel <k0scist@gmail.com>
parents:
251
diff
changeset
|
42 tests_require=['tox', 'pytest'], |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
43 entry_points=""" |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
44 # -*- Entry points: -*- |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
45 [console_scripts] |
|
5
f064be514e53
choose a better filename and remove some stuff from shebang
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
46 makeitso = makeitso.makeitso:main |
|
102
ad5fd3eb6674
template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents:
49
diff
changeset
|
47 make-python-package = makeitso.python:main |
| 170 | 48 mkpydir = makeitso.mkpydir:main |
|
174
aed8c4af5f26
STUB: makeitso/cli.py makeitso/script2package.py setup.py
Jeff Hammel <k0scist@gmail.com>
parents:
173
diff
changeset
|
49 script2package = makeitso.script2package:main |
| 183 | 50 file2template = makeitso.file2template:main |
|
105
67b50417b8d1
stub out loading api templates; this wont work, however, since one is in the middle of a module trying to load a module that depends on the module you are in
Jeff Hammel <jhammel@mozilla.com>
parents:
102
diff
changeset
|
51 |
|
67b50417b8d1
stub out loading api templates; this wont work, however, since one is in the middle of a module trying to load a module that depends on the module you are in
Jeff Hammel <jhammel@mozilla.com>
parents:
102
diff
changeset
|
52 [makeitso.templates] |
|
67b50417b8d1
stub out loading api templates; this wont work, however, since one is in the middle of a module trying to load a module that depends on the module you are in
Jeff Hammel <jhammel@mozilla.com>
parents:
102
diff
changeset
|
53 python-package = makeitso.python:PythonPackageTemplate |
|
131
4922bee3d080
add single module to registered templates
Jeff Hammel <jhammel@mozilla.com>
parents:
130
diff
changeset
|
54 python-module = makeitso.python:PythonModuleTemplate |
| 159 | 55 python-script = makeitso.python:PythonScriptTemplate |
|
179
5bd1c50c6f61
works weirdly but kinda works
Jeff Hammel <k0scist@gmail.com>
parents:
174
diff
changeset
|
56 setup.py = makeitso.python:SetupPy |
| 200 | 57 python-unittest = makeitso.python:Unittest |
|
0
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
58 """, |
|
7a76836b50a7
initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
59 ) |
