-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (66 loc) · 2.35 KB
/
setup.py
File metadata and controls
76 lines (66 loc) · 2.35 KB
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
"""Heat network models for RTC-Tools 2.
Includes Modelica models and their accompanying Mixins for milp networks.
"""
import sys
from pathlib import Path
from setuptools import find_packages, setup
import versioneer
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
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 :: Other
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
"""
if sys.version_info < (3, 8):
sys.exit(f"Sorry, Python 3.8 to 3.10 is required. You are using {sys.version_info}")
if sys.version_info > (3, 11):
sys.exit(f"Sorry, Python 3.8 to 3.10 is required. You are using {sys.version_info}")
setup(
name="rtc-tools-milp-network",
version=versioneer.get_version(),
description=DOCLINES[0],
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f],
url="https://github.com/Nieuwe-Warmte-Nu/rtc-tools-heat-network",
author="Jim Rojer",
author_email="jim.rojer@tno.nl",
maintainer="Jim Rojer, Kobus van Rooyen, Kelbij Star, "
"Femke Janssen, Jesús Andrés Rodríguez Sarasty, "
"Thijs van der Klauw",
license="LGPLv3",
keywords="milp network optimization rtc tools",
platforms=["Windows", "Linux", "Mac OS-X", "Unix"],
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=[
"influxdb >= 5.3.1",
"pyecore",
"pymoca >= 0.9.0",
"rtc-tools == 2.6.0a3",
"pyesdl >= 23.12, < 24.0",
"pandas >= 1.3.1, < 2.0",
"casadi == 3.6.3",
"StrEnum == 0.4.15",
"CoolProp==6.6.0",
"iapws==1.5.3",
],
tests_require=["pytest", "pytest-runner", "numpy"],
include_package_data=True,
python_requires=">=3.8,<3.11",
cmdclass=versioneer.get_cmdclass(),
entry_points={
"rtctools.libraries.modelica": ["library_folder = rtctools_heat_network:modelica"]
},
)