Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (126 loc) · 3.59 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (126 loc) · 3.59 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# SPDX-FileCopyrightText: 2025 CERN <home.cern>
#
# SPDX-License-Identifier: LGPL-2.1-or-later
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pts-framework"
dynamic = [
"version", # The version is taken directly from the repository, using setuptools-scm.
]
description = "Hardware-oriented testing framework developed by BE-CEM-MTA"
readme = "README.md"
license = "LGPL-2.1-or-later"
keywords = ["testing", "hardware", "instrumentation", "cern"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
authors = [
{ name = "Odd Oyvind Andreassen", email = "odd.oyvind.andreassen@cern.ch" },
{ name = "Bartlomiej Banas", email = "Bartlomiej.Banas@cern.ch" },
{ name = "Oliver Damborg", email = "odamborg@cern.ch" },
{ name = "Alvaro Martinez Landete", email = "alvaro.martinez.landete@cern.ch" },
]
# Specify the minimum Python version required. It is not safe to use
# this to control the *upper* version of Python.
requires-python = ">=3.13"
# The core dependencies of the project.
dependencies = [
"hightime==0.2.2",
"matplotlib",
"nidmm==1.4.8",
"numpy",
"PySide6==6.9.1",
"PyYAML==6.0.3",
"ruamel.yaml",
"pymeasure==0.15.0",
"pyserial",
"paramiko",
"pydantic>=2.13,<3",
"pyvisa"
]
[project.optional-dependencies]
# The optional dependencies of the project, installable using the "extras" syntax.
test = [
"pytest",
"pytest-qt",
"pytest-cov",
"pytest-timeout",
]
doc = [
"Sphinx",
]
dev = [
# Dependencies for development of the project, such as type checkers,
# linters, etc.
# "requirement-for-development-purposes-only",
# Include the "test" and "doc" dependencies in the dev dependencies.
"pts-framework[doc,test]",
"ruff",
]
[project.urls]
Homepage = "https://github.com/CERN/pts-framework"
Repository = "https://github.com/CERN/pts-framework"
Changelog = "https://github.com/CERN/pts-framework/blob/master/CHANGELOG.md"
[project.scripts]
init_env_min = "pypts.examples.environment_setup_tools.Minimal_setup.init_env_min:main"
init_env_pack = "pypts.examples.environment_setup_tools.Package_based_setup.init_env_pack:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["pypts", "pypts.*"]
[tool.setuptools.package-data]
"pypts.examples.environment_setup_tools.Minimal_setup" = [
"Minimal_setup_recipe.yml",
"README.md",
"tests/example_tests.py",
]
"pypts.examples.environment_setup_tools.Package_based_setup" = [
"Package_based_recipe.yml",
"README.md",
"pyproject.toml",
"tests/example_tests.py",
]
[tool.setuptools_scm]
# Tell setuptools_scm to write a _version.py file in the package. The
# _version.py file must not be committed to the repository.
version_file = "src/pypts/_version.py"
[tool.acc_py_template]
features = [
{name = "core", version = 2},
{name = "docs", version = 2},
]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--strict-markers"
timeout = 90
faulthandler_timeout = 60
testpaths = ["tests"]
markers = [
"unit: unit tests",
"functional: functional tests",
]
[tool.coverage.run]
source = ["src/pypts"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
precision = 2