Skip to content

Commit 66f3508

Browse files
committed
use scikit-build-core and drop setup.[py,cfg]
1 parent cddd95c commit 66f3508

File tree

136 files changed

+66
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+66
-94
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
4747
- name: Run mypy
4848
run: |
49-
python -m mypy cubed
49+
python -m mypy src/cubed

pyproject.toml

Lines changed: 65 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["scikit-build-core>=0.11"]
3+
build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "cubed"
7-
version = "0.21.0"
7+
dynamic = ["version"]
88
authors = [
99
{name = "Tom White", email = "[email protected]"},
1010
]
@@ -94,11 +94,21 @@ homepage = "https://github.com/cubed-dev/cubed"
9494
documentation = "https://tomwhite.github.io/cubed"
9595
repository = "https://github.com/cubed-dev/cubed"
9696

97+
[tool.scikit-build]
98+
minimum-version = "build-system.requires"
99+
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
100+
sdist.include = ["src/cubed/version.py"]
101+
wheel.install-dir = "cubed"
102+
wheel.cmake = false
103+
104+
[tool.setuptools_scm]
105+
write_to = "src/cubed/version.py"
106+
97107
[tool.pytest.ini_options]
98108
filterwarnings = [
99109
"error::UserWarning",
100110
]
101-
testpaths = "cubed/tests"
111+
testpaths = "src/cubed/tests"
102112

103113
[tool.ruff]
104114
target-version = "py311"
@@ -145,3 +155,54 @@ known-third-party = [
145155
"toolz",
146156
"zarr",
147157
]
158+
159+
[tool.mypy]
160+
exclude = "tests|doc"
161+
files = "src/"
162+
show_error_codes = true
163+
allow_redefinition = true
164+
165+
[[tool.mypy.overrides]]
166+
# Ignore vendored libraries
167+
modules = "mypy-cubed.vendor.*"
168+
ignore_errors = true
169+
170+
[[tool.mypy.overrides]]
171+
# Most of the numerical computing stack doesn't have type annotations yet.
172+
module = [
173+
"mypy-apache_beam.*",
174+
"mypy-aiostream.*",
175+
"mypy-array_api_compat.*",
176+
"mypy-cloudpickle.*",
177+
"mypy-coiled.*",
178+
"mypy-dask.*",
179+
"mypy-donfig.*",
180+
"mypy-distributed.*",
181+
"mypy-fsspec.*",
182+
"mypy-icechunk.*",
183+
"mypy-lithops.*",
184+
"mypy-IPython.*",
185+
"mypy-memray.*",
186+
"mypy-modal.*",
187+
"mypy-matplotlib.*",
188+
"mypy-ndindex.*",
189+
"mypy-networkx.*",
190+
"mypy-numcodecs.*",
191+
"mypy-numpy.*",
192+
"mypy-obstore.*",
193+
"mypy-pandas.*",
194+
"mypy-psutil.*",
195+
"mypy-pytest.*",
196+
"mypy-ray.*",
197+
"mypy-rechunker.*",
198+
"mypy-seaborn.*",
199+
"mypy-six.*",
200+
"mypy-tenacity.*",
201+
"mypy-tensorstore.*",
202+
"mypy-tlz.*",
203+
"mypy-toolz.*",
204+
"mypy-tqdm.*",
205+
"mypy-zarr.*",
206+
"mypy-pyspark.*",
207+
]
208+
ignore_missing_imports = true

setup.cfg

Lines changed: 0 additions & 79 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)