Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
RWTH-EBC
GitHub Repository: RWTH-EBC/ebcpy
Path: blob/master/setup.py
505 views
1
"""Setup.py script for the ebcpy-framework"""
2
3
import setuptools
4
import sys
5
6
# read the contents of your README file
7
from pathlib import Path
8
readme_path = Path(__file__).parent.joinpath("README.md")
9
long_description = readme_path.read_text()
10
11
EXTRAS_REQUIRE = {
12
'full': [
13
'openpyxl>=3.0.5',
14
'xlrd>=2.0.1',
15
'pymoo==0.5.0',
16
'bayesian-optimization==1.4.3',
17
'GitPython>=3.1.27',
18
'pyarrow>=11.0.0'
19
]
20
}
21
22
INSTALL_REQUIRES = [
23
'numpy>=1.19.5,<2.0',
24
'matplotlib>=3.3.4',
25
'scipy>=1.5.4',
26
'pandas>=1.1.5',
27
'scikit-learn>=0.24.2',
28
'fmpy>=0.2.27,<0.3.17',
29
'pydantic>=2.0',
30
'h5py>=3.1.0',
31
'tables>=3.6.1'
32
]
33
34
if sys.version_info.minor >= 9 and sys.version_info.major == 3:
35
EXTRAS_REQUIRE['full'].append('fastparquet>=2023.1.0')
36
37
# Add all open-source packages to setup-requires
38
SETUP_REQUIRES = INSTALL_REQUIRES.copy()
39
40
with open(Path(__file__).parent.joinpath("ebcpy", "__init__.py"), "r") as file:
41
for line in file.readlines():
42
if line.startswith("__version__"):
43
VERSION = line.replace("__version__", "").split("=")[1].strip().replace("'", "").replace('"', '')
44
45
setuptools.setup(
46
name='ebcpy',
47
version=VERSION,
48
description='Python Library used for different python modules'
49
' for the analysis and optimization of energy systems, '
50
'buildings and indoor climate ',
51
long_description=long_description,
52
long_description_content_type='text/markdown',
53
url='https://github.com/RWTH-EBC/ebcpy',
54
download_url=f'https://github.com/RWTH-EBC/ebcpy/archive/refs/tags/{VERSION}.tar.gz',
55
license='BSD 3-Clause',
56
author='RWTH Aachen University, E.ON Energy Research Center, Institute '
57
'of Energy Efficient Buildings and Indoor Climate',
58
author_email='[email protected]',
59
# Specify the Python versions you support here. In particular, ensure
60
# that you indicate whether you support Python 2, Python 3 or both.
61
classifiers=[
62
'Development Status :: 3 - Alpha',
63
'License :: OSI Approved :: BSD License',
64
'Topic :: Scientific/Engineering',
65
'Intended Audience :: Science/Research',
66
'Programming Language :: Python :: 3.7',
67
'Programming Language :: Python :: 3.8',
68
'Programming Language :: Python :: 3.9'
69
],
70
keywords=[
71
'simulation', 'building', 'energy',
72
'time-series-data', 'comfort',
73
'black-box optimization'
74
],
75
packages=setuptools.find_packages(exclude=['tests', 'tests.*', 'img']),
76
extras_require=EXTRAS_REQUIRE,
77
setup_requires=SETUP_REQUIRES,
78
install_requires=INSTALL_REQUIRES,
79
)
80
81