-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (46 loc) · 1.63 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
# pylint: disable=missing-function-docstring, missing-module-docstring, missing-class-docstring
"""
Setup instructions for package management
"""
import re
import setuptools
PACKAGE_NAME = "solar_logger"
PACKAGE_DIR = "src"
EXCLUDED_PACKAGES = ["*tests*"]
with open("README.md", "r", encoding="utf-8") as open_readme_file:
long_description = open_readme_file.read()
def get_version():
with open("src/__version__.py", "r") as open_version_file:
version = open_version_file.read()
version = version.strip().split(" = ")[1]
version = re.sub("[\"']", "", version)
return re.sub("[-*]", "_", version)
VERSION = get_version()
setuptools.setup(
name=PACKAGE_NAME.lower(),
version=VERSION,
author="Zach Sanson",
author_email="[email protected]",
description="MQTT to Influx DB converter for Outback solar controller",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/WibblyGhost/solar_logger",
project_urls={
"Bug Tracker": "https://github.com/WibblyGhost/solar_logger/issues",
},
classifiers=[
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_dir={"": PACKAGE_DIR},
packages=setuptools.find_packages(where=PACKAGE_DIR, exclude=EXCLUDED_PACKAGES),
python_requires=">=3.10",
install_requires=[
"influxdb_client==1.20.0",
"paho_mqtt==1.5.1",
"pymate @ git+https://github.com/WibblyGhost/pymate.git@feature/python3",
"Rx~=3.2.0",
"pytz~=2021.1",
],
)