annotate setup.py @ 240:08a0a178286f

version bump = release
author Jeff Hammel <k0scist@gmail.com>
date Thu, 28 Jan 2016 12:25:38 -0800
parents 70b5410e4ede
children 5cb893831f53
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
229
06a6abb83c58 one more time
Jeff Hammel <k0scist@gmail.com>
parents: 228
diff changeset
1 """
06a6abb83c58 one more time
Jeff Hammel <k0scist@gmail.com>
parents: 228
diff changeset
2 setup.py script for MakeItSo
232
66ca1a67a76c one more time
Jeff Hammel <k0scist@gmail.com>
parents: 231
diff changeset
3
66ca1a67a76c one more time
Jeff Hammel <k0scist@gmail.com>
parents: 231
diff changeset
4 For packaging info please see:
66ca1a67a76c one more time
Jeff Hammel <k0scist@gmail.com>
parents: 231
diff changeset
5 https://docs.python.org/2/distutils/sourcedist.html
229
06a6abb83c58 one more time
Jeff Hammel <k0scist@gmail.com>
parents: 228
diff changeset
6 """
237
70b5410e4ede note to self
Jeff Hammel <k0scist@gmail.com>
parents: 236
diff changeset
7 # https://github.com/nipy/nipype/blob/master/setup.py
70b5410e4ede note to self
Jeff Hammel <k0scist@gmail.com>
parents: 236
diff changeset
8 # might also be helpful
229
06a6abb83c58 one more time
Jeff Hammel <k0scist@gmail.com>
parents: 228
diff changeset
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
233
Jeff Hammel <k0scist@gmail.com>
parents: 232
diff changeset
12 join = os.path.join
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
14 try:
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
15 here = os.path.dirname(os.path.abspath(__file__))
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
16 description = file(os.path.join(here, 'README.txt')).read()
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
17 except IOError:
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
18 description = ''
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
19
240
08a0a178286f version bump = release
Jeff Hammel <k0scist@gmail.com>
parents: 237
diff changeset
20 version = '0.4.1'
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 setup(name='MakeItSo',
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 version=version,
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 description='filesystem template interpreter',
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
25 long_description=description,
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
119
c8d3b2edf242 bump version
Jeff Hammel <jhammel@mozilla.com>
parents: 105
diff changeset
27 keywords='templates',
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 author='Jeff Hammel',
173
Jeff Hammel <jhammel@mozilla.com>
parents: 172
diff changeset
29 author_email='k0scist@gmail.com',
212
cffc729926b9 correct text and bump version
Jeff Hammel <k0scist@gmail.com>
parents: 211
diff changeset
30 url='http://k0s.org/hg/MakeItSo',
29
7e8a5da34eee add license metadata
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
31 license='MPL',
172
740c1f2315f2 setup.py
Jeff Hammel <jhammel@mozilla.com>
parents: 170
diff changeset
32 packages=['makeitso'],
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 include_package_data=True,
234
f4369bc606cb this works again
Jeff Hammel <k0scist@gmail.com>
parents: 233
diff changeset
34 package_data={'makeitso': [
235
Jeff Hammel <k0scist@gmail.com>
parents: 234
diff changeset
35 join('python_package', 'tests', '*')
234
f4369bc606cb this works again
Jeff Hammel <k0scist@gmail.com>
parents: 233
diff changeset
36 # 'python_package/*'
f4369bc606cb this works again
Jeff Hammel <k0scist@gmail.com>
parents: 233
diff changeset
37 ]},
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 zip_safe=False,
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 install_requires=[
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 # -*- Extra requirements: -*-
138
169e02e190ef peg to tempita version and eliminate cruft
Jeff Hammel <jhammel@mozilla.com>
parents: 131
diff changeset
41 '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
42 'webob',
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 ],
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 # -*- Entry points: -*-
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46 [console_scripts]
5
f064be514e53 choose a better filename and remove some stuff from shebang
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
47 makeitso = makeitso.makeitso:main
102
ad5fd3eb6674 template fixes....not the best, but will do
Jeff Hammel <jhammel@mozilla.com>
parents: 49
diff changeset
48 make-python-package = makeitso.python:main
170
1b2ccecfff77 versionbump
Jeff Hammel <jhammel@mozilla.com>
parents: 169
diff changeset
49 mkpydir = makeitso.mkpydir:main
174
aed8c4af5f26 STUB: makeitso/cli.py makeitso/script2package.py setup.py
Jeff Hammel <k0scist@gmail.com>
parents: 173
diff changeset
50 script2package = makeitso.script2package:main
183
55b34a5a2e5f basic form now works
Jeff Hammel <k0scist@gmail.com>
parents: 180
diff changeset
51 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
52
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 [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
54 python-package = makeitso.python:PythonPackageTemplate
131
4922bee3d080 add single module to registered templates
Jeff Hammel <jhammel@mozilla.com>
parents: 130
diff changeset
55 python-module = makeitso.python:PythonModuleTemplate
159
Jeff Hammel <jhammel@mozilla.com>
parents: 144
diff changeset
56 python-script = makeitso.python:PythonScriptTemplate
179
5bd1c50c6f61 works weirdly but kinda works
Jeff Hammel <k0scist@gmail.com>
parents: 174
diff changeset
57 setup.py = makeitso.python:SetupPy
200
Jeff Hammel <k0scist@gmail.com>
parents: 197
diff changeset
58 python-unittest = makeitso.python:Unittest
0
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
59 """,
7a76836b50a7 initial (non-working) commit to makeitso
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
60 )