-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
86 lines (80 loc) · 2.47 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"""Setuptools setup script."""
from os import environ
from setuptools import find_packages, setup
__author__ = "opliko"
__license__ = "MIT"
__version__ = "0.8.1"
__status__ = "Prototype"
try:
__version__ = environ["CHERRYDOOR_VERSION"]
except KeyError:
pass
if "CI" in environ:
with open("VERSION", "w", encoding="utf-8") as f:
if __version__[0] == "v":
f.write(__version__)
else:
f.write(f"v{__version__}")
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read().replace(
"cherrydoor/static",
f"https://raw.githubusercontent.com/wisniowa56/cherrydoor/v{__version__}/cherrydoor/static/",
)
setup(
name="Cherrydoor",
version=__version__,
author="oplik0",
description=(
"An overengineered rfid lock manager created for my school community. "
"Made for Raspberry Pi connected with another microcontroler that send and receieves rfid data via UART"
),
long_description=readme,
long_description_content_type="text/markdown",
license="MIT",
keywords="wisniowasu mongodb flask rfid lock cherrydoor",
url="https://github.com/oplik0/cherrydoor",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
scripts=["scripts/cherrydoor-install"],
entry_points={"console_scripts": ["cherrydoor = cherrydoor.__main__:cherrydoor"]},
python_requires=">=3.9",
install_requires=[
"aiohttp==3.6.3",
"aioserial>=1.3",
"argon2-cffi>=19",
"motor>=2.1",
"confuse>=1.3",
"pybranca>=0.3",
"msgpack>=1.0",
"aiohttp-csrf-fixed>=0.0.3",
"aiohttp-jinja2>=1.2",
"aiohttp-rest-api-redoc>=0.2.3",
"aiohttp-security>=0.4.0",
"aiohttp-session>=2.9.0",
"aiohttp-session-mongo>=0.0.1",
"secure>=0.3.0",
"sentry-sdk>=0.16.5",
"packaging>=20",
"aiojobs>=0.2.2",
"python-socketio>=4.6.0",
],
extras_require={
"speedups": [
"aiodns>=1.1",
"Brotli",
"cchardet",
"uvloop>=0.14",
]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Home Automation",
"Topic :: Terminals :: Serial",
"Topic :: Internet :: WWW/HTTP",
],
)