-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
129 lines (119 loc) · 2.99 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
[build-system]
requires = [
"scikit-build-core",
"cython>=3",
"numpy>=2.0.0",
]
build-backend = "scikit_build_core.build"
[project]
name = "blosc2"
description = "Python wrapper for the C-Blosc2 library"
readme = "README.rst"
authors = [{name = "Blosc Development Team", email = "[email protected]"}]
maintainers = [{ name = "Blosc Development Team", email = "[email protected]"}]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.11"
# Follow guidelines from https://scientific-python.org/specs/spec-0000/
dependencies = [
"numpy>=1.25.0",
"ndindex",
"msgpack",
"numexpr",
"py-cpuinfo",
"httpx",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"h5py",
"hdf5plugin",
"jupyterlab",
"matplotlib",
"pandas",
"plotly",
"pre-commit",
"pyarrow",
"ruff",
"s3fs",
"xarray",
"zarr",
]
test = [
"pytest",
"psutil",
"torch",
]
doc = [
"sphinx",
"pydata-sphinx-theme",
"numpydoc",
"myst-parser",
"sphinx-paramlinks",
"nbsphinx",
"sphinx-panels",
]
[project.urls]
homepage = "https://github.com/Blosc/python-blosc2"
documentation = "https://www.blosc.org/python-blosc2/python-blosc2.html"
[tool.cibuildwheel]
build-verbosity = 1
# Skip unsupported python versions as well as 32-bit platforms, which are not supported anymore.
skip = "*-manylinux_i686 cp*-win32 *_ppc64le *_s390x *musllinux*"
# We won't require torch when testing wheels to avoid building/running torch on slow platforms
test-requires = "pytest psutil"
test-command = "pytest {project}/tests"
# Manylinux 2014 will be the default for x86_64 and aarch64
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/blosc2/_version.py"]
[tool.setuptools_scm]
write_to = "src/blosc2/_version.py"
[tool.ruff]
line-length = 109
extend-exclude = ["bench"]
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"C90",
"I",
"NPY",
"PT",
"RET",
"RUF",
"SIM",
"TCH",
"UP",
]
ignore = [
"B028",
"PT004", # deprecated
"PT005", # deprecated
"PT011",
"RET505",
"RET508",
"RUF005",
"RUF015",
"SIM108",
"UP027", # deprecated
"UP038", # https://github.com/astral-sh/ruff/issues/7871
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**" = ["F841"]