-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
58 lines (49 loc) · 1.88 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
# SPDX-FileCopyrightText: 2017-2023 Contributors to the OpenSTEF project <korte.termijn.prognoses@alliander.com> # noqa E501>
#
# SPDX-License-Identifier: MPL-2.0
from pathlib import Path
from setuptools import find_packages, setup
pkg_dir = Path(__file__).parent.absolute()
def read_requirements_from_file():
with open(pkg_dir / "requirements.txt") as fh:
requirements = []
for line in fh:
line = line.strip()
if "#" in line:
line = line[: line.index("#")].strip()
if len(line) == 0:
continue
requirements.append(line)
return requirements
def read_long_description_from_readme():
with open("README.md", "r", encoding="utf-8") as fh:
return fh.read()
setup(
name="openstef",
version="3.4.43",
packages=find_packages(include=["openstef", "openstef.*"]),
description="Open short term energy forecaster",
long_description=read_long_description_from_readme(),
long_description_content_type="text/markdown",
url="https://github.com/OpenSTEF/openstef",
author="Alliander N.V",
author_email="korte.termijn.prognoses@alliander.com",
license="MPL-2.0",
keywords=["energy", "forecasting", "machinelearning"],
# See https://setuptools.readthedocs.io/en/latest/userguide/datafiles.html
# for more information
package_data={
# Include anything in the data directory
"openstef": ["data/*", "data/**/*", "*.license"]
},
python_requires=">=3.11.0",
install_requires=read_requirements_from_file(),
setup_requires=["wheel"],
tests_require=["pytest", "pytest-cov", "flake8"],
classifiers=[
r"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
r"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3.11",
],
)