forked from Pioreactor/pioreactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
78 lines (67 loc) · 2.09 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
# -*- coding: utf-8 -*-
from __future__ import annotations
from setuptools import find_packages
from setuptools import setup
exec(compile(open("pioreactor/version.py").read(), "pioreactor/version.py", "exec"))
CORE_REQUIREMENTS = [
"click==8.1.3",
"paho-mqtt==1.6.1",
"psutil==5.9.5",
"sh==1.14.3",
"JSON-log-formatter==0.5.1",
"colorlog==6.7.0",
"msgspec==0.16.0",
"diskcache==5.6.1",
"wheel==0.38.4",
"crudini==0.9.4",
]
UI_REQUIREMENTS = [
# pyyaml is installed elsewhere
"flask==2.2.2",
"flup6==1.1.1",
"python-dotenv==0.21.0",
"huey==2.4.5",
]
LEADER_REQUIREMENTS = ["zeroconf==0.64.1"] + UI_REQUIREMENTS
WORKER_REQUIREMENTS = [
"RPi.GPIO==0.7.1",
"adafruit-circuitpython-ads1x15==2.2.12",
"DAC43608==0.2.7",
"TMP1075==0.2.1",
"rpi-hardware-pwm==0.1.4",
"simple-pid==1.0.1",
"plotext>=5.2.8",
]
setup(
name="pioreactor",
version=__version__, # type: ignore # noqa: F821
license="MIT",
description="The core Python app of the Pioreactor. Control your bioreactor through Python.",
url="https://github.com/pioreactor/pioreactor",
classifiers=[
"Topic :: Scientific/Engineering",
"Topic :: System :: Hardware",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Development Status :: 5 - Production/Stable",
],
keywords=["microbiology", "bioreactor", "turbidostat", "raspberry pi", "education", "research"],
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Pioreactor",
author_email="hello@pioreactor.com",
install_requires=CORE_REQUIREMENTS,
include_package_data=True,
packages=find_packages(exclude=["*.tests", "*.tests.*"]),
entry_points="""
[console_scripts]
pio=pioreactor.cli.pio:pio
pios=pioreactor.cli.pios:pios
""",
python_requires=">=3.9",
extras_require={
"leader": LEADER_REQUIREMENTS,
"worker": WORKER_REQUIREMENTS,
"leader_worker": LEADER_REQUIREMENTS + WORKER_REQUIREMENTS,
},
)