-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (43 loc) · 1.66 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
from setuptools import setup, find_packages
def load_requirements(use_case):
"""
Loading range requirements.
Packaging should be used for installing the package into existing stacks.
We therefore read the .in file for the use case.
.txt files include the exact pins, and are useful for deployments with
exactly comparable environments.
"""
reqs = []
with open("requirements/%s.in" % use_case, "r") as f:
reqs = [
req
for req in f.read().splitlines()
if not req.strip() == ""
and not req.strip().startswith("#")
and not req.strip().startswith("-c")
and not req.strip().startswith("--find-links")
]
return reqs
setup(
name="flexmeasures-openweathermap",
description="Integrating FlexMeasures with OpenWeatherMap",
author="Seita Energy Flexibility BV",
author_email="[email protected]",
url="https://github.com/SeitaBV/flexmeasures-openweathermap",
keywords=["flexmeasures", "energy flexibility"],
install_requires=load_requirements("app"),
tests_require=load_requirements("test"),
setup_requires=["pytest-runner", "setuptools_scm"],
use_scm_version={"local_scheme": "no-local-version"}, # handled by setuptools_scm
packages=find_packages(),
include_package_data=True, # setuptools_scm takes care of adding the files in SCM
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
long_description="""\
""",
)