-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
126 lines (116 loc) · 3.45 KB
/
pyproject.toml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# SPDX-FileCopyrightText: 2024 DESY and the Constellation authors
# SPDX-License-Identifier: CC0-1.0
[build-system]
build-backend = "mesonpy"
requires = ["meson-python"]
[project]
name = "ConstellationDAQ"
authors = [{name = "Constellation Authors"}]
description = "The Autonomous Control and Data Acquisition System for Dynamic Experimental Setups"
readme = "README.md"
license = {text = "EUPL-1.2"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: C++",
"Operating System :: Unix",
"License :: OSI Approved",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = [
"pyzmq",
"msgpack",
"python-statemachine>=2.3.3",
"numpy",
"coloredlogs",
"psutil",
]
[project.scripts]
Controller = "constellation.core.controller:main"
Monitor = "constellation.core.monitoring:main"
DemoDataSender = "constellation.core.datasender:main"
DemoHeartbeatChecker = "constellation.core.heartbeatchecker:main"
DemoHeartbeatSender = "constellation.core.heartbeater:main"
# tools
ConstellationListInterfaces = "constellation.tools.list_interfaces:main"
# 3rd-party Satellites
SatelliteCaenHV = "constellation.satellites.CaenHV.__main__:main"
SatelliteH5DataWriter = "constellation.satellites.H5DataWriter.__main__:main"
SatelliteInflux = "constellation.satellites.Influx.__main__:main"
SatelliteKeithley = "constellation.satellites.Keithley.__main__:main"
SatelliteLakeShore218 = "constellation.satellites.LakeShore218.__main__:main"
SatelliteMariner = "constellation.satellites.Mariner.__main__:main"
[project.urls]
Homepage = "https://constellation.pages.desy.de/"
Repository = "https://gitlab.desy.de/constellation/constellation"
[project.optional-dependencies]
# Dev components
dev = [
"build",
"black",
"flake8", "flake8-pyproject",
"mypy", "types-psutil",
]
test = [
"pytest",
"pytest-forked",
"pytest-cov",
"pytest-sugar",
]
docs = [
"sphinx",
"sphinx-autobuild",
"pydata_sphinx_theme",
"myst-parser",
"breathe",
"ablog",
"sphinxcontrib-plantuml",
"sphinxcontrib-spelling",
"sphinx_design",
"sphinx-favicon",
"sphinx-copybutton",
"PyYAML",
]
# Feature components
cli = ["ipython"]
# Satellite components
caenhv = ["pycaenhv>=0.03", "pyserial"]
hdf5 = ["h5py"]
influx = ["influxdb-client"]
keithley = ["pyserial"]
visa = ["pyvisa", "pyvisa-py", "pyserial", "zeroconf"]
[tool.meson-python.args]
setup = ["--wrap-mode=forcefallback", "-Dimpl_py=enabled", "-Dimpl_cxx=disabled"] # disable C++ for now
dist = ["--include-subprojects"]
[tool.flake8]
max-line-length = 125
ignore = ["E203", "E731", "W503"]
[tool.black]
line-length = 125
[tool.coverage.run]
source = ["constellation"]
[tool.mypy]
python_version = "3.11"
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
# force specific ignores:
enable_error_code = ['ignore-without-code']
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = "./python/constellation/core"
exclude = [
"^test_",
]