-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathsetup.py
More file actions
127 lines (119 loc) · 4.73 KB
/
setup.py
File metadata and controls
127 lines (119 loc) · 4.73 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
from setuptools import setup
import sys
EXTRAS_REQUIRE = {
"report": ["plotly"],
"simulation": ["ebcpy>=0.5.6"]
}
if sys.version_info.minor >= 9 and sys.version_info.major == 3:
EXTRAS_REQUIRE['simulation'].append('fastparquet>=2023.1.0')
# read the contents of your README file
from pathlib import Path
readme_path = Path(__file__).parent.joinpath("README.md")
with open(readme_path, "r", encoding="utf-8") as file:
long_description = file.read()
with open(Path(__file__).parent.joinpath("teaser", "__init__.py"), "r") as file:
for line in file.readlines():
if line.startswith("__version__"):
VERSION = line.replace("__version__", "").split("=")[1].strip().replace("'", "").replace('"', '')
setup(
name="teaser",
version=VERSION,
description="Tool for Energy Analysis and Simulation for " "Efficient Retrofit ",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/RWTH-EBC/TEASER",
download_url=f'https://github.com/RWTH-EBC/TEASER/archive/refs/tags/{VERSION}.tar.gz',
author="RWTH Aachen University, E.ON Energy Research Center, "
"Institute of Energy Efficient Buildings and Indoor Climate",
author_email="ebc-teaser@eonerc.rwth-aachen.de",
license="MIT",
packages=[
"teaser",
"teaser.logic",
"teaser.logic.archetypebuildings",
"teaser.logic.archetypebuildings.tabula",
"teaser.logic.archetypebuildings.tabula.de",
"teaser.logic.archetypebuildings.tabula.dk",
"teaser.logic.archetypebuildings.bmvbs",
"teaser.logic.archetypebuildings.bmvbs.custom",
"teaser.logic.archetypebuildings.urbanrenet",
"teaser.logic.buildingobjects",
"teaser.logic.buildingobjects.buildingphysics",
"teaser.logic.buildingobjects.buildingsystems",
"teaser.logic.buildingobjects.calculation",
"teaser.logic.simulation",
"teaser.data",
"teaser.data.input",
"teaser.data.input.inputdata",
"teaser.data.input.inputdata.weatherdata",
"teaser.data.output",
"teaser.data.output.modelicatemplate",
"teaser.data.output.reports",
"teaser.data.output.modelicatemplate.AixLib",
"teaser.data.output.modelicatemplate.BESMod",
"teaser.data.output.modelicatemplate.IBPSA",
"teaser.examples",
"teaser.examples.verification",
"teaser.examples.examplefiles",
],
package_data={
"teaser.data.input.inputdata": ["*.json"],
"teaser.data.input.inputdata.weatherdata": [
"DEU_BW_Mannheim_107290_TRY2010_12_Jahr_BBSR.mos",
"ASHRAE140.mos",
],
"teaser.data.output.modelicatemplate": [
"package",
"package_order",
"conversion",
"modelica_language",
"modelica_test_script",
],
"teaser.data.output.modelicatemplate.AixLib": [
"AixLib_Multizone",
"AixLib_ThermalZoneRecord_OneElement",
"AixLib_ThermalZoneRecord_TwoElement",
"AixLib_ThermalZoneRecord_ThreeElement",
"AixLib_ThermalZoneRecord_FourElement",
"AixLib_ThermalZoneRecord_FiveElement",
],
"teaser.data.output.modelicatemplate.BESMod": [
"Building",
"Example_GasBoilerBuildingOnly",
"Example_HeatPumpMonoenergetic",
"Example_TEASERHeatLoadCalculation",
"Script_GasBoilerBuildingOnly",
"Script_HeatPumpMonoenergetic",
"Script_TEASERHeatLoadCalculation",
],
"teaser.data.output.modelicatemplate.IBPSA": [
"IBPSA_OneElement",
"IBPSA_TwoElements",
"IBPSA_ThreeElements",
"IBPSA_FourElements",
],
"teaser.data.output.texttemplate": [
"ReadableBuilding_OneElement",
"ReadableBuilding_TwoElement",
"ReadableBuilding_ThreeElement",
"ReadableBuilding_FourElement",
],
"teaser.examples.examplefiles": ["*.json"],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Code Generators",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
],
install_requires=["mako", "pytest", "pandas", "numpy"],
extras_require=EXTRAS_REQUIRE
)