-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (131 loc) · 3.57 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (131 loc) · 3.57 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
142
[build-system]
requires = ["setuptools>=77", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pyCHX"
dynamic = ["version"]
description = "CHX XPCS data analysis tools"
readme = "README.md"
requires-python = ">=3.11"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{name = "Brookhaven National Laboratory - CHX Beamline"},
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"area-detector-handlers>=0.0.5",
"dask[array]>=2023.1",
"dill>=0.3",
"event-model>=1.19",
"h5py>=3.8",
"historydict>=1.2",
"ipython>=8",
"lmfit>=1.1,<2",
"matplotlib>=3.6,<4",
"numba>=0.61",
"numpy>=1.23,<3",
"pandas>=1.5,<4",
"pillow>=9",
"pims>=0.6,<0.8",
"pytz>=2022.1",
"reportlab>=3.6",
"scikit-beam>=0.0.27,<0.1",
"scikit-image>=0.20,<1",
"scipy>=1.9,<2",
"tifffile>=2022.8",
"threadpoolctl>=3.1",
"tqdm>=4.64",
"xray-vision>=0.1.1,<0.2",
]
[project.optional-dependencies]
facility = [
# The pinned eiger-io reader imports databroker.assets.handlers.
"databroker[back-compat]>=1.2,<3",
"pyOlog>=4.5,<5",
]
test = [
"black==26.5.1",
"build>=1.2",
"coverage[toml]>=7",
"flake8==7.3.0",
"hdf5plugin>=4",
"isort==9.0.1",
"pre-commit>=4",
"pytest>=8,<10",
"ruff==0.16.0",
"twine>=6",
]
docs = [
"numpydoc>=1.6",
"sphinx>=7",
"sphinx-copybutton>=0.5",
"sphinx-rtd-theme>=2",
]
[dependency-groups]
# These packages do not have suitable PyPI releases. This source-only group is
# intentionally excluded from wheel and sdist metadata.
facility-source = [
"eiger-io @ git+https://github.com/NSLS-II-CHX/eiger-io.git@cb13bdc336e445697e6483556116aaba0368a5d3",
"ModestImage @ git+https://github.com/ChrisBeaumont/mpl-modest-image.git@4174514a9ce7f4160fb6cbd200df6897694e0ac3",
]
[project.urls]
Homepage = "https://github.com/NSLS2/pyCHX"
Repository = "https://github.com/NSLS2/pyCHX"
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
include = ["pyCHX*"]
exclude = ["pyCHX.tests*"]
[tool.setuptools_scm]
fallback_version = "0+unknown"
[tool.black]
line-length = 115
target-version = ["py311"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| tests/data
)/
'''
[tool.pytest.ini_options]
filterwarnings = [
"error::DeprecationWarning:pyCHX\\..*",
"error::FutureWarning:pyCHX\\..*",
"error::PendingDeprecationWarning:pyCHX\\..*",
"ignore:`json_encoders` is deprecated.*:DeprecationWarning",
"ignore:.*deprecated - use .*:pyparsing.warnings.PyparsingDeprecationWarning:matplotlib\\..*",
"ignore:In databroker 2.x, there are separate notions.*:UserWarning:databroker\\.v1",
]
markers = [
"portable: tests that require no CHX services or facility-only dependencies",
"mocked_facility: facility integration tests using local fakes only",
"data_regression: offline tests using bundled detector data and facility file readers",
"live_facility: opt-in tests that may connect to CHX services",
]
addopts = "-m 'not live_facility'"
[tool.coverage.run]
branch = true
source = ["pyCHX"]
[tool.coverage.report]
fail_under = 16
show_missing = true
omit = ["pyCHX/tests/*"]
exclude_also = ["if __name__ == .__main__.:"]