-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
79 lines (71 loc) · 2.64 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
74
75
76
77
78
79
"""Setup.py script for the ebcpy-framework"""
import setuptools
import sys
# read the contents of your README file
from pathlib import Path
readme_path = Path(__file__).parent.joinpath("README.md")
long_description = readme_path.read_text()
EXTRAS_REQUIRE = {
'full': [
'openpyxl>=3.0.5',
'xlrd>=2.0.1',
'pymoo==0.5.0',
'bayesian-optimization==1.4.3',
'GitPython>=3.1.27',
'pyarrow>=11.0.0'
]
}
INSTALL_REQUIRES = [
'numpy>=1.19.5,<2.0',
'matplotlib>=3.3.4',
'scipy>=1.5.4',
'pandas>=1.1.5',
'scikit-learn>=0.24.2',
'fmpy>=0.2.27,<0.3.17',
'pydantic>=2.0',
'h5py>=3.1.0',
'tables>=3.6.1'
]
if sys.version_info.minor >= 9 and sys.version_info.major == 3:
EXTRAS_REQUIRE['full'].append('fastparquet>=2023.1.0')
# Add all open-source packages to setup-requires
SETUP_REQUIRES = INSTALL_REQUIRES.copy()
with open(Path(__file__).parent.joinpath("ebcpy", "__init__.py"), "r") as file:
for line in file.readlines():
if line.startswith("__version__"):
VERSION = line.replace("__version__", "").split("=")[1].strip().replace("'", "").replace('"', '')
setuptools.setup(
name='ebcpy',
version=VERSION,
description='Python Library used for different python modules'
' for the analysis and optimization of energy systems, '
'buildings and indoor climate ',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/RWTH-EBC/ebcpy',
download_url=f'https://github.com/RWTH-EBC/ebcpy/archive/refs/tags/{VERSION}.tar.gz',
license='BSD 3-Clause',
author='RWTH Aachen University, E.ON Energy Research Center, Institute '
'of Energy Efficient Buildings and Indoor Climate',
author_email='[email protected]',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
],
keywords=[
'simulation', 'building', 'energy',
'time-series-data', 'comfort',
'black-box optimization'
],
packages=setuptools.find_packages(exclude=['tests', 'tests.*', 'img']),
extras_require=EXTRAS_REQUIRE,
setup_requires=SETUP_REQUIRES,
install_requires=INSTALL_REQUIRES,
)