-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
56 lines (48 loc) · 1.18 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
#!/usr/bin/env python
"""
Install the traversome package.
Local install for developers:
conda install python numpy scipy sympy python-symengine dill typer loguru -c conda-forge
pip install . -e --no-deps
"""
import os
import re
from setuptools import setup
# parse version from init.py
with open("traversome/__init__.py") as init:
CUR_VERSION = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]",
init.read(),
re.M,
).group(1)
# nasty workaround for RTD low memory limits
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
install_requires = []
else:
install_requires = [
"dill",
"numpy",
"scipy",
"symengine",
"sympy",
# "pymc>=4", # make mcmc optional
# "matplotlib",
"typer",
"loguru",
]
# setup installation
setup(
name="traversome",
packages=["traversome"],
version=CUR_VERSION,
author="Jianjun Jin",
author_email="...",
install_requires=install_requires,
entry_points={
'console_scripts': ['traversome = traversome.__main__:app']},
license='GPL',
classifiers=[
'Programming Language :: Python :: 3',
],
)