-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.67 KB
/
setup.py
File metadata and controls
50 lines (46 loc) · 1.67 KB
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
import setuptools
import os
import re
import sys
with open("README.md", "r") as fh:
long_description = fh.read()
def get_version():
"""Get current version from code."""
regex = r"__version__\s=\s\"(?P<version>[\d\.]+?)\""
path = ("ziggonext", "__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()
setuptools.setup(
name="ziggonext",
version=get_version(),
author="Rudolf Offereins",
author_email="r.offereins@gmail.com",
description="Python client for Ziggo Next settop boxes",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/sholofly/ziggo-next",
packages=setuptools.find_packages(include=["ziggonext"]),
license="MIT license",
install_requires=["paho-mqtt>=1.5.0", "requests>=2.22.0"],
keywords=["ziggonext", "api", "settopbox"],
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires='>=3.6',
zip_safe=False,
include_package_data=True,
)