forked from Project-OMOTES/rtc-tools-heat-network
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (66 loc) · 2.44 KB
/
setup.py
File metadata and controls
76 lines (66 loc) · 2.44 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
"""Multi Energy System Optimization
MILP optimization for design and operational optimization
"""
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, 10):
sys.exit(f"Sorry, Python 3.10 to 3.11 is required. You are using {sys.version_info}")
if sys.version_info >= (3, 12):
sys.exit(f"Sorry, Python 3.10 to 3.11 is required. You are using {sys.version_info}")
setup(
name="mesido",
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/Multi-Energy-Systems-Optimization/mesido/",
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="Multi-Energy-Systems, optimization",
platforms=["Windows", "Linux", "Mac OS-X", "Unix"],
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=[
"influxdb >= 5.3.1",
"pyecore >= 0.13.2",
"pymoca >= 0.9.0",
"rtc-tools-gil-comp == 2.6.1",
# setuptools version limitations currently:
# < 81.0.0 needed for pandapipes (still to be removed)
# < 82.0.0 needed for pkg_resources (used in rtctools)
"setuptools <= 80.9.0",
"pyesdl == 26.3",
"pandas >= 1.3.1, < 2.0",
"casadi-gil-comp == 3.6.7",
"StrEnum == 0.4.15",
"CoolProp==6.6.0",
],
include_package_data=True,
python_requires=">=3.10,<3.12",
cmdclass=versioneer.get_cmdclass(),
entry_points={"rtctools.libraries.modelica": ["library_folder = mesido:modelica"]},
)