forked from Ludy87/pyecotrend-ista
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (48 loc) · 1.84 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
"""Setuptool for PyPI."""
import configparser
import setuptools
with open("README.md", encoding="utf-8") as fh:
long_description = fh.read()
with open("./src/pyecotrend_ista/const.py", encoding="utf-8") as f:
config_string = "[dummy_section]\n" + f.read()
config = configparser.ConfigParser(allow_no_value=True)
config.read_string(config_string)
version = config["dummy_section"]["VERSION"].strip('"')
requirements_array = []
with open("requirements.txt", encoding="utf-8") as requirements_file:
for line in requirements_file:
requirements_array.append(line.replace("\n", ""))
setuptools.setup(
name="pyecotrend-ista",
version=version,
author="Ludy87",
author_email="[email protected]",
description="Python ecotrend-ista Api",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Ludy87/pyecotrend-ista",
project_urls={
"Bug Tracker": "https://github.com/Ludy87/pyecotrend-ista/issues",
"Homepage": "https://github.com/Ludy87/pyecotrend-ista",
},
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Utilities",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="python api ecotrend ista",
install_requires=requirements_array,
python_requires=">=3.11",
)