forked from zwicker-group/py-pde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (62 loc) · 2.3 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
from pathlib import Path
import pkg_resources
from setuptools import find_packages, setup
BASE_PATH = Path(__file__).resolve().parent
# read the version from the particular file
with open(BASE_PATH / "pde" / "version.py", "r") as f:
exec(f.read())
DOWNLOAD_URL = f"https://github.com/zwicker-group/py-pde/archive/v{__version__}.tar.gz"
# read the requirements from requirements.txt
try:
with open(BASE_PATH / "requirements.txt", "r") as requirements_txt:
install_requires = [
str(requirement)
for requirement in pkg_resources.parse_requirements(requirements_txt)
]
except FileNotFoundError:
# fall-back for conda, where requirements.txt apparently does not work
print("Cannot find requirements.txt")
install_requires = [
"matplotlib>=3.1.0",
"numpy>=1.18.0",
"numba>=0.50.0",
"scipy>=1.4.0",
"sympy>=1.5.0",
]
# read the description from the README file
with open(BASE_PATH / "README.md", "r") as fh:
long_description = fh.read()
setup(
name="py-pde",
packages=find_packages(),
zip_safe=False, # this is required for mypy to find the py.typed file
version=__version__,
license="MIT",
description="Python package for solving partial differential equations",
long_description=long_description,
long_description_content_type="text/markdown",
author="David Zwicker",
author_email="[email protected]",
url="https://github.com/zwicker-group/py-pde",
download_url=DOWNLOAD_URL,
keywords=["pdes", "partial-differential-equations", "dynamical-systems"],
python_requires=">=3.7",
install_requires=install_requires,
extras_require={
"hdf": ["h5py>=2.10"],
"io": ["h5py>=2.10", "pandas>=1.2"],
"progress": ["tqdm>=4.45", "ipywidgets>=7"],
"interactive": ["napari>=0.3", "ipywidgets>=7"],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)