forked from epoplavskis/pyit600
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (42 loc) · 1.53 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
#!/usr/bin/env python
"""The setup script."""
import os
import re
import sys
from setuptools import find_packages, setup
def get_version():
"""Get current version from code."""
regex = r"__version__\s=\s\"(?P<version>[\d\.]+?)\""
path = ("pyit600", "__version__.py")
return re.search(regex, read(*path)).group("version")
def read(*parts):
"""Read file."""
filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts)
sys.stdout.write(filename)
with open(filename, encoding="utf-8", mode="rt") as fp:
return fp.read()
with open("README.md") as readme_file:
readme = readme_file.read()
setup(author="Julius Vitkauskas",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator"
],
description="Asynchronous Python client for Salus IT600 devices",
include_package_data=True,
install_requires=["aiohttp>=3.7.1,<4.0", "cryptography>=3.2,<4.0"],
keywords=["salus", "it600", "api", "async", "client"],
license="MIT license",
long_description_content_type="text/markdown",
long_description=readme,
name="pyit600",
packages=find_packages(include=["pyit600"]),
test_suite="tests",
url="https://github.com/jvitkauskas/pyit600",
version=get_version(),
zip_safe=False,
python_requires='>=3.7',
)