-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
168 lines (141 loc) · 4.02 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[project]
name = "labbench"
description = """\
The `labbench` module provides API tools to support python scripting for laboratory automation.\
The goal is to simplify the process of developing an experimental procedure into clear, concise, explainable, and reusable code.\
"""
dynamic = ["version"]
authors = [
{name = "Dan Kuester", email = "daniel.kuester@nist.gov"},
{name = "Shane Allman"},
{name = "Paul Blanchard"},
{name = "Yao Ma", email = "yao.ma@nist.gov"}
]
maintainers = [
{name = "Dan Kuester", email = "daniel.kuester@nist.gov"},
]
requires-python = ">=3.9,<3.14"
readme = "README.md"
license = {file = "LICENSE.md"}
dependencies = [
# general modules
"psutil>=5.0",
"validators>=0.20.0",
"pip",
"typing-extensions>=4.8.0",
"click~=8.0",
"dulwich>=0.20",
# numerical
"numpy>=1.19",
"pandas>=1.2.0,<2.2",
# data formats
"ruamel-yaml>=0.17.21",
"feather-format>=0.4.0",
"sqlalchemy>=1.4,<2",
"pyarrow>=14",
# Device backend support
"pyserial>=3.0",
"pyvisa>=1.8",
"pyvisa-py[usb,gpib-ctypes,serial,psutil]>=0.6",
"pyvisa-sim>=0.5.1",
"pywin32; sys_platform == 'win32'",
"comtypes; sys_platform == 'win32'",
"libusb1>=3.1.0",
"libusb-package; sys_platform == 'win32'"
]
[project.optional-dependencies]
dotnet = ["pythonnet"]
jupyter = ["notebook", "jupyter", "ipywidgets", "ipython"]
pyvisa-py-extras = ["zeroconf"]
pyvicp = ["pyvicp"]
dev = [
# python kernel bells and whistles
"ipykernel",
"pip",
"ipython",
# for compatibility outside hatch
"ruff",
# introspection and stub generation
"ast_decompiler",
"astor>=0.8.1",
# publishing
"twine",
]
doc = [
# documentation
"sphinx>=7",
"toml",
"jupytext>=1.6.0",
"myst-nb>=1.0",
"pyperf>=2.6.2",
"mypy-extensions>=1.0.0",
"mypy>=1.7.0",
]
[project.urls]
homepage = "https://github.com/usnistgov/labbench"
repository = "https://github.com/usnistgov/labbench"
documentation = "https://pages.nist.gov/labbench"
changelog = "https://github.com/usnistgov/labbench/blob/master/ChangeLog.md"
[project.scripts]
labbench = "labbench.cli.__main__:do_cli"
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
include = '\.pyi?$'
#
# hatch project and build configuration
#
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/labbench"]
[tool.hatch.build.targets.sdist]
packages = ["src/labbench"]
[tool.hatch.version]
path = "src/labbench/_version.py"
# the default virtual environment
[tool.hatch.envs.default]
features = ["dev"]
path = ".venv"
python = "3.13"
[tool.hatch.envs.build]
features = ["dev"]
python = "3.13"
# test environment
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"genbadge",
"defusedxml",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.test.scripts]
all = [
"pytest --cov-report xml:doc/reports/coverage.xml --cov-report term --cov=labbench tests",
"genbadge coverage -i doc/reports/coverage.xml -o doc/reports/coverage.svg -l"
]
[tool.coverage.run]
omit = ["src/labbench/testing/*", "src/labbench/cli/*", "src/labbench/notebooks.py"]
# documentation
[tool.hatch.envs.doc]
features = ["doc"]
env-vars = {TEXINPUTS="doc/latex"}
[tool.hatch.envs.doc.scripts]
html="sphinx-build -b html doc doc/html"
latex="sphinx-build -b latex doc doc/latex"
pdf="pdflatex doc/latex/labbench-api.tex --output-directory=doc"
rst="sphinx-apidoc -F . -o doc"
[tool.ruff]
target-version = "py39"
extend-include = ["*.ipynb"]
[tool.ruff.format]
quote-style = "single"
line-ending = "lf"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint.extend-per-file-ignores]
"**/__init__.py" = ["F401", "F403", "E402"]
"**/*.py" = ["EM102","G004"]