-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (48 loc) · 1.64 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
# -*- coding: utf-8 -*-
import re
import setuptools
with open("CHANGELOG.md", "r") as fh:
changelog = fh.read().splitlines()
raw_changelog_versions = [
re.search(pattern=r"^##\s+(\d+\.\d+\.\d+)", string=c, flags=re.IGNORECASE)
for c in changelog
]
changelog_version = [rcv for rcv in raw_changelog_versions if rcv is not None][0].group(
1
)
with open("README.md", "r") as fh:
long_description = fh.read()
with open("dev-requirements.txt", "r") as fh:
dev_requirements = fh.read().splitlines()
with open("requirements.txt", "r") as fh:
requirements = fh.read().splitlines()
requirements = [req for req in requirements if not req.lower().startswith("pytest")]
setuptools.setup(
name="mqtt-forger",
version=changelog_version,
author="frank690",
author_email="admin@sffresch.de",
description="Dynamic mqtt message broker with lots of fakery and witchcraft!",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/frank690/mqtt-forger",
packages=setuptools.find_packages(
exclude=["tests", "tests.*", "*.tests.*", "*.tests", "docs"]
),
include_package_data=True,
setup_requires=["cython"],
install_requires=requirements,
test_suite="tests",
extras_require={
"dev": dev_requirements,
},
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: Microsoft :: Windows ",
"Operating System :: Unix",
"Operating System :: MacOS",
],
python_requires=">=3.7",
)