-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
77 lines (69 loc) · 2.4 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
from setuptools import setup, find_packages
import os.path
import codecs
with open("README.md", "r") as fh:
long_description = fh.read()
# The following two methods were copied from
# https://packaging.python.org/guides/single-sourcing-package-version/#single-sourcing-the-version
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
# parse_requirements() returns generator of pip.req.InstallRequirement objects
INSTALL_REQUIREMENTS = [
"coverage",
"docstring-expander",
"jupyterlab",
"lmfit",
"matplotlib",
"nose",
"numpy",
"pandas",
"pip",
"pylint",
"seaborn",
"tellurium",
"tk",
"urllib3",
]
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
parts = line.split(" ")
version = parts[2]
version = version.replace('"', '')
version = version.replace("'", '')
print ("Processing version %s" % version)
return version
else:
raise RuntimeError("Unable to find version string.")
def doSetup(install_requires):
try:
setup(
name='analyzeSBML',
version=get_version("analyzeSBML/_version.py"),
author='Joseph L. Hellerstein',
author_email='[email protected]',
packages=find_packages(exclude=['tests', 'sym', 'images', 'data',
'notebook', 'docs']),
url='https://github.com/ModelEngineering/analyzeSBML',
description='Simplified interface for analysis of SBML Models.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
package_dir={'analyzeSBML': 'analyzeSBML'},
python_requires='>=3.6',
install_requires=install_requires,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers', # Define that your audience are developers
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
except Exception as exp:
import pdb; pdb.set_trace()
pass
if __name__ == '__main__':
doSetup(INSTALL_REQUIREMENTS)