-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
68 lines (58 loc) · 1.81 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
import os
import re
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
def read(file_name):
return open(os.path.join(os.path.dirname(__file__), file_name)).read()
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'src', 'mbfxml2ex', '__init__.py')) as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
# Get the long description from the README file
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
dependencies = [
'cmlibs.zinc >= 4.0.0',
'cmlibs.utils >= 0.6.0'
]
test_deps = [
'coverage',
'nose',
'packaging',
]
extras = {
'test': test_deps,
}
setup(
name="mbfxml2ex",
version=version,
author="Auckland Bioengineering Institute",
author_email="[email protected]",
description="Python client for generating Ex format model descriptions from MBF XML.",
long_description=long_description,
long_description_content_type='text/x-rst',
packages=find_packages("src"),
package_dir={"": "src"},
zip_safe=False,
install_requires=dependencies,
extras_require=extras,
entry_points={
'console_scripts': [
'mbfxml2exconverter=mbfxml2ex.app:main',
]
},
license="Apache Software License",
keywords="MBF CMLibs Zinc",
url="https://github.com/ABI-Software/mbfxml2ex",
download_url="",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Utilities",
],
)