forked from klejejs/python-thermia-online-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (34 loc) · 1.08 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
import sys
from setuptools import setup
from pathlib import Path
# read the contents of your README file
current_directory = Path(__file__).parent
long_description = (current_directory / "README.md").read_text()
version = sys.argv[3:]
if version:
version = str(version[0])
sys.argv.remove(version)
else:
raise Exception("Version is not set")
setup(
name="ThermiaOnlineAPI",
packages=[
"ThermiaOnlineAPI",
"ThermiaOnlineAPI.api",
"ThermiaOnlineAPI.exceptions",
"ThermiaOnlineAPI.model",
"ThermiaOnlineAPI.utils",
],
version=version,
license="GPL-3.0",
description="A Python API for Thermia heat pumps using https://online.thermia.se",
long_description=long_description,
long_description_content_type="text/markdown",
author="Krisjanis Lejejs",
author_email="[email protected]",
url="https://github.com/klejejs/python-thermia-online-api",
download_url="https://github.com/klejejs/python-thermia-online-api/releases",
keywords=["Thermia", "Online"],
install_requires=[],
classifiers=[],
)