-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
67 lines (59 loc) · 1.99 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
"""Toolbox for control and optimization of water systems.
RTC-Tools is the Deltares toolbox for control and optimization of water systems.
"""
import sys
from setuptools import find_packages, setup
import versioneer
if sys.version_info < (3, 8):
sys.exit("Sorry, Python 3.8 or newer is required.")
DOCLINES = __doc__.split("\n")
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Information Technology
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: GIS
Topic :: Scientific/Engineering :: Mathematics
Topic :: Scientific/Engineering :: Physics
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
setup(
name="rtc-tools",
version=versioneer.get_version(),
maintainer="Deltares",
author="Deltares",
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
url="https://oss.deltares.nl/web/rtc-tools/home",
download_url="http://gitlab.com/deltares/rtc-tools/",
classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f],
platforms=["Windows", "Linux", "Mac OS-X", "Unix"],
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=[
"casadi >= 3.6.3, == 3.6.*, !=3.6.6",
"numpy >= 1.16.0",
"scipy >= 1.0.0",
"pymoca >= 0.9.1, == 0.9.*",
"rtc-tools-channel-flow >= 1.2.0",
"defusedxml >= 0.7.0",
],
tests_require=["pytest", "pytest-runner", "netCDF4"],
extras_require={
"netcdf": ["netCDF4"],
"all": ["netCDF4"],
},
python_requires=">=3.8",
cmdclass=versioneer.get_cmdclass(),
entry_points={
"console_scripts": [
"rtc-tools-download-examples = rtctools.rtctoolsapp:download_examples",
"rtc-tools-copy-libraries = rtctools.rtctoolsapp:copy_libraries",
]
},
)