forked from rtqichen/torchdiffeq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (26 loc) · 979 Bytes
/
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
import os
import re
import setuptools
# for simplicity we actually store the version in the __version__ attribute in the source
here = os.path.realpath(os.path.dirname(__file__))
with open(os.path.join(here, 'torchdiffeq', '__init__.py')) as f:
meta_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if meta_match:
version = meta_match.group(1)
else:
raise RuntimeError("Unable to find __version__ string.")
setuptools.setup(
name="torchdiffeq",
version=version,
author="Ricky Tian Qi Chen",
author_email="[email protected]",
description="ODE solvers and adjoint sensitivity analysis in PyTorch.",
url="https://github.com/rtqichen/torchdiffeq",
packages=setuptools.find_packages(),
install_requires=['torch>=1.5.0', 'scipy>=1.4.0'],
python_requires='~=3.6',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
)