-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (62 loc) · 1.95 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# pylint: disable=missing-module-docstring,invalid-name
from textwrap import dedent
from setuptools import find_packages, setup
with open("requirements.txt", "r") as f:
requirements = list(
filter(lambda line: not line.startswith("--"), f.read().splitlines())
)
try:
with open("requirements-dev.txt", "r") as f:
requirements_dev = list(
filter(lambda line: not line.startswith("--"), f.read().splitlines())
)
except FileNotFoundError:
requirements_dev = []
with open("README.md", "r") as f:
readme = f.read()
with open("VERSION", "r") as f:
version = f.read().strip()
with open("src/paho_socket/version.py", "w") as f:
f.write(
dedent(
"""\
# pylint: disable=missing-docstring
__version__ = "{version}"
""".format(
version=version
)
)
)
setup(
name="paho-socket",
version=version,
description=(
"Thin layer built on top of paho-mqtt allowing for connections with unix socket "
"brokers."
),
long_description=readme,
long_description_content_type="text/markdown",
author="Michał Getka",
author_email="[email protected]",
url="https://github.com/mgetka/paho-socket",
python_requires=">=3.7",
include_package_data=True,
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=requirements,
keywords="paho unix",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Operating System :: POSIX",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Communications",
"Topic :: Internet",
],
extras_require={"dev": requirements_dev},
)