-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathpyproject.toml
More file actions
188 lines (176 loc) · 4.35 KB
/
pyproject.toml
File metadata and controls
188 lines (176 loc) · 4.35 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
"hatch-vcs"
]
[dependency-groups]
dev = [
{include-group = "extra"},
{include-group = "test"}
]
extra = [
"boost_histogram>=0.13",
"dask-awkward>=2025.5.0",
"dask[array,distributed]",
"hist>=1.2",
"pandas",
"awkward-pandas"
]
test = [
"aiohttp",
"deflate",
"fsspec-xrootd>=0.5.0",
"isal",
"paramiko",
"pytest-rerunfailures",
"rangehttpserver",
"requests",
"s3fs",
{include-group = "test-core"}
]
test-core = [
"pytest-timeout",
"pytest>=6",
"scikit-hep-testdata"
]
test-gpu-cu12 = [
"kvikio-cu12",
"nvidia-nvcomp-cu12",
{include-group = "test-core"}
]
test-gpu-cu13 = [
"kvikio-cu13",
"nvidia-nvcomp-cu13",
{include-group = "test-core"}
]
test-pyodide = [
"pytest-pyodide; python_version >='3.11'",
{include-group = "test-core"}
]
[project]
authors = [
{name = "Jim Pivarski", email = "jpivarski@gmail.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development",
"Topic :: Utilities"
]
dependencies = [
"awkward>=2.8.2",
"cramjam>=2.5.0",
"xxhash",
"numpy",
"fsspec!=2026.2.0",
"packaging",
"typing_extensions>=4.1.0; python_version < '3.11'"
]
description = "ROOT I/O in pure Python and NumPy."
dynamic = [
"version"
]
license = "BSD-3-Clause"
name = "uproot"
readme = "README.md"
requires-python = ">=3.10"
[project.optional-dependencies]
gds-cu12 = [
"kvikio-cu12",
"nvidia-nvcomp-cu12"
]
gds-cu13 = [
"kvikio-cu13",
"nvidia-nvcomp-cu13"
]
http = ["aiohttp"]
s3 = ["s3fs"]
xrootd = ["fsspec-xrootd>=0.5.0"]
[project.urls]
Download = "https://github.com/scikit-hep/uproot5/releases"
Homepage = "https://github.com/scikit-hep/uproot5"
[tool.hatch.build.hooks.vcs]
version-file = "src/uproot/version.py"
[tool.hatch.version]
source = "vcs"
[tool.pytest.ini_options]
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
filterwarnings = [
"error",
"default:module 'sre_.*' is deprecated:DeprecationWarning",
"ignore:unclosed transport <asyncio.sslproto._SSLProtocolTransport" # https://github.com/aio-libs/aiohttp/issues/1115
]
log_level = "INFO"
markers = [
"slow",
"network",
"distributed",
"xrootd"
]
minversion = "6.0"
testpaths = ["tests"]
timeout = 600
xfail_strict = true
[tool.repo-review]
ignore = ["PY004"]
[tool.ruff]
exclude = [
"tests/*.py",
"tests-cuda/*.py",
"src/uproot/__init__.py",
"docs-sphinx/*.py"
]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
# "ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT" # flake8-2020
]
ignore = [
"PGH003", # too-broad type ignore
"PLC0415", # imports outside top level
"PLC1901", # empty string is falsey (but I don't want to rely on such weak typing)
"PLR",
"PLW0120", # else on loop without break
"PLW1641", # __eq__ without __hash__
"RUF012", # enforces type annotations on a codebase that lacks type annotations
"S307", # no eval allowed
"SIM103", # interferes with my if-elif-elif-else blocks
"SIM114", # combine `if` branches using logical `or` operator
"SIM118" # key in dict, broken since uproot doesn't behave like a dict
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"dev/*" = ["T20", "T201"]
"src/uproot/*/file.py" = ["SIM115"]
[tool.setuptools_scm]
write_to = "src/uproot/_version.py"