forked from PyLabRobot/pylabrobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (73 loc) · 1.97 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
87
88
89
from setuptools import find_packages, setup
from pylabrobot.__version__ import __version__
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
extras_fw = ["pyserial", "pyusb", "libusb_package<=1.0.26.2"]
extras_http = ["requests", "types-requests"]
extras_plate_reading = [
"pylibftdi",
]
extras_websockets = ["websockets==12.0"]
extras_visualizer = extras_websockets
extras_opentrons = ["opentrons-http-api-client", "opentrons-shared-data"]
extras_server = [
"flask[async]",
]
extras_inheco = ["hid"]
extras_agrow = ["pymodbus==3.6.8"]
extras_dev = (
extras_fw
+ extras_http
+ extras_plate_reading
+ extras_websockets
+ extras_visualizer
+ extras_opentrons
+ extras_server
+ extras_inheco
+ extras_agrow
+ [
"pydata-sphinx-theme",
"myst_nb",
"sphinx_copybutton",
"pytest",
"pytest-timeout",
"mypy",
"responses",
"sphinx-reredirects",
"ruff==0.2.1",
"nbconvert",
"sphinx-sitemap",
]
)
# Some extras are not available on all platforms. `dev` should be available everywhere
extras_all = extras_dev
setup(
name="PyLabRobot",
version=__version__,
packages=find_packages(exclude="tools"),
description="A hardware agnostic platform for lab automation",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=["typing_extensions"],
url="https://github.com/pylabrobot/pylabrobot.git",
package_data={"pylabrobot": ["visualizer/*"]},
extras_require={
"fw": extras_fw,
"http": extras_http,
"plate_reading": extras_plate_reading,
"websockets": extras_websockets,
"visualizer": extras_visualizer,
"inheco": extras_inheco,
"opentrons": extras_opentrons,
"server": extras_server,
"agrow": extras_agrow,
"dev": extras_dev,
"all": extras_all,
},
entry_points={
"console_scripts": [
"lh-server=pylabrobot.server.liquid_handling_server:main",
"plr-gui=pylabrobot.gui.gui:main",
],
},
)