forked from OpenSTEF/openstef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (53 loc) · 2.03 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
# SPDX-FileCopyrightText: 2017-2023 Contributors to the OpenSTEF project <[email protected]> # 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.3.3",
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="[email protected]",
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/*", "*.license"]
},
python_requires=">=3.9.0",
install_requires=read_requirements_from_file(),
setup_requires=["wheel"],
tests_require=["pytest", "pytest-cov", "flake8"],
extras_require={
"proloaf": ["proloaf==0.2.0", "torch==1.10.0", "pytorch-lightning==1.5.1"]
},
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.9",
"Programming Language :: Python :: 3.10",
],
)