-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
77 lines (62 loc) · 2.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
""" PyElastix setup script
Steps to do a new release:
Preparations:
* Test on Windows, Linux, Mac
* Make release notes
* Update API documentation and other docs that need updating
Bump the version:
* update __version__
* Tag the tip changeset as version x.x
Register and upload package
* python setup.py register
* python setup.py sdist upload
* update conda-forge feedstock
"""
import os
from distutils.core import setup
name = 'pyelastix'
description = 'Python wrapper for the Elastix nonrigid registration toolkit'
# Get version and docstring
__version__ = None
__doc__ = ''
docStatus = 0 # Not started, in progress, done
initFile = os.path.join(os.path.dirname(__file__), 'pyelastix.py')
for line in open(initFile).readlines():
if (line.startswith('__version__')):
exec(line.strip())
elif line.startswith('"""'):
if docStatus == 0:
docStatus = 1
line = line.lstrip('"')
elif docStatus == 1:
docStatus = 2
if docStatus == 1:
__doc__ += line
setup(
name = name,
version = __version__,
author = 'Almar Klein',
author_email = '[email protected]',
license = 'MIT',
url = 'https://github.com/almarklein/pyelastix',
keywords = "image registration, deformation, nonrigid, elastic, elastix",
description = description,
long_description = __doc__,
platforms = 'any',
provides = ['pyelastix'],
py_modules = ['pyelastix'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)