-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
42 lines (38 loc) · 1.42 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
import sys
from setuptools import setup
from os import path, environ
setup_file_dir = path.abspath(path.dirname(__file__))
try:
with open(path.join(setup_file_dir, "README.md"), encoding="utf-8") as f:
long_description = f.read()
except FileNotFoundError:
print("README.md not found")
sys.exit(1)
try:
with open(path.join(setup_file_dir, "requirements.txt"), encoding="utf-8") as f:
requirements = f.read()
except FileNotFoundError:
print("requirements.txt not found")
sys.exit(1)
setup(
name="fritz-advanced-thermostat",
version=environ.get('VERSION'),
description="A library for setting FRITZ!DECT thermostat values (e.g. offset, holidays, timer), that can't be set via AHA requests.",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/mietzen/python-fritz-advanced-thermostat",
author="Nils Stein",
author_email="[email protected]",
license="MIT",
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
"Operating System :: OS Independent",
],
keywords="fritzbox smarthome avm thermostat",
packages=["fritz_advanced_thermostat"],
install_requires=requirements.split('\n')
)