-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (144 loc) · 3.43 KB
/
pyproject.toml
File metadata and controls
161 lines (144 loc) · 3.43 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
[build-system]
requires = [
"setuptools_scm[toml]>=3.4",
"pybind11>=2.6.1",
"scikit-build-core>=0.8",
]
build-backend = "scikit_build_core.build"
[project]
name = "correctionlib"
dynamic = ["version"]
authors = [
{name = "Nick Smith", email = "nick.smith@cern.ch"},
]
maintainers = [
{name = "Nick Smith", email = "nick.smith@cern.ch"},
]
description = "A generic correction library"
readme = "README.md"
license = {text = "BSD-3-Clause"}
# keywords = []
classifiers = [
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"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",
"Development Status :: 5 - Production/Stable",
]
requires-python = ">=3.9"
dependencies = [
"numpy >=1.13.3",
"pydantic >=2",
"rich",
"packaging",
]
[project.optional-dependencies]
convert = [
"pandas",
"uproot >=4.0.4",
"requests",
"scipy",
]
[dependency-groups]
test = [
"pandas",
"uproot >=4.0.4",
"requests",
"scipy",
"pytest >=6.0",
"pytest-run-parallel",
"awkward >=2.2.2",
"dask-awkward >=2024.1.1",
"pytest-benchmark",
]
docs = [
"recommonmark >=0.5.0",
"Sphinx >=3.0.0",
"sphinx_copybutton",
"sphinx_rtd_theme >=0.5.0",
"sphinx-jsonschema",
"myst-parser",
"nbsphinx",
# to match binder/requirements.txt
"awkward",
"hist[plot]",
"matplotlib",
"ipykernel",
]
dev = [
{include-group = "test"},
{include-group = "docs"},
"pre-commit",
"mypy",
"ruff",
"uhi",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra"]
testpaths = ["tests"]
markers = [
"cvmfs: tests that require CVMFS",
]
[tool.check-manifest]
ignore = [
".github/**",
"docs/**",
".pre-commit-config.yaml",
".readthedocs.yml",
"src/*/version.py",
"data/**",
"Makefile",
"cpp-peglib/**",
"pybind11/**",
"rapidjson/**",
]
[tool.mypy]
python_version = "3.9"
files = ["src"]
[[tool.mypy.overrides]]
module = ["awkward.*", "uproot.*"]
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = ["cppyy.*", "scipy.*"]
ignore_missing_imports = true
[tool.ruff.lint]
select = [
"E", # all errors
"F", # all pyflakes checks
"I", # import-related checks
]
ignore = [
"E501", # line too long (comments and docstrings, code will be formatted with ruff)
]
[project.scripts]
correction = "correctionlib.cli:main"
[project.urls]
Homepage = "https://github.com/cms-nanoAOD/correctionlib"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
cmake.version = ">=3.11.0"
sdist.include = ["src/correctionlib/version.py"]
[tool.scikit-build.cmake.define]
BUILD_DEMO = "OFF"
[tool.setuptools_scm]
write_to = "src/correctionlib/version.py"
[tool.cibuildwheel]
skip = ["cp3{9,10}*-win_arm64"]
test-groups = ["test"]
test-command = "python -m pytest {package}/tests"
test-skip = ["*-musllinux_*", "cp3{10,11,12}-win32", "cp*-win_arm64"]
[tool.cibuildwheel.environment]
# this makes sure that we build only on platforms that have a corresponding numpy wheel
PIP_ONLY_BINARY = ":all:"
[tool.codespell]
ignore-regex = "[A-Za-z0-9+/]{100,}" # ignore long base64 strings