Skip to content

Commit 4e145ba

Browse files
committed
Improve pyproject.toml
1 parent cac2204 commit 4e145ba

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/build-wheels.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ jobs:
4949
# __init__.py interferes with the tests and is included as local file instead of
5050
# used from wheel
5151
CIBW_BEFORE_TEST: rm {project}/tiledb/__init__.py
52-
CIBW_TEST_REQUIRES: pytest hypothesis psutil pyarrow
53-
CIBW_TEST_COMMAND: pytest {project}/tiledb/tests
54-
CIBW_ENVIRONMENT: TILEDB_REST_TOKEN=${{ secrets.TILEDB_CLOUD_HELPER_VAR }}
55-
SYSTEM_VERSION_COMPAT: ${{ startsWith(matrix.os, 'macos-') }}
5652
with:
5753
output-dir: wheelhouse
5854

pyproject.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ version_file = "tiledb/_generated_version.py"
5151
wheel.expand-macos-universal-tags = true
5252
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
5353
wheel.packages = ["tiledb"]
54-
wheel.exclude = ["tiledb/cc/", "tiledb/*.cc", "tiledb/*.cmake"]
54+
wheel.exclude = [
55+
"tiledb/cc/",
56+
"tiledb/*.cc",
57+
"tiledb/*.cmake",
58+
"tiledb/*.pyx",
59+
"tiledb/*.pxd",
60+
"tiledb/*.pxi",
61+
]
5562

5663
[tool.pytest.ini_options]
5764
python_classes = "*Test*"
@@ -75,3 +82,12 @@ fix = true
7582

7683
[tool.ruff.per-file-ignores]
7784
"tiledb/__init__.py" = ["F401"]
85+
86+
[tool.cibuildwheel]
87+
test-requires = [
88+
"pytest",
89+
"hypothesis",
90+
"psutil",
91+
"pyarrow",
92+
]
93+
test-command = "pytest {project}"

0 commit comments

Comments
 (0)