Skip to content

Commit

Permalink
Improve pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed May 21, 2024
1 parent cac2204 commit 4e145ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
# __init__.py interferes with the tests and is included as local file instead of
# used from wheel
CIBW_BEFORE_TEST: rm {project}/tiledb/__init__.py
CIBW_TEST_REQUIRES: pytest hypothesis psutil pyarrow
CIBW_TEST_COMMAND: pytest {project}/tiledb/tests
CIBW_ENVIRONMENT: TILEDB_REST_TOKEN=${{ secrets.TILEDB_CLOUD_HELPER_VAR }}
SYSTEM_VERSION_COMPAT: ${{ startsWith(matrix.os, 'macos-') }}
with:
output-dir: wheelhouse

Expand Down
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ version_file = "tiledb/_generated_version.py"
wheel.expand-macos-universal-tags = true
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = ["tiledb"]
wheel.exclude = ["tiledb/cc/", "tiledb/*.cc", "tiledb/*.cmake"]
wheel.exclude = [
"tiledb/cc/",
"tiledb/*.cc",
"tiledb/*.cmake",
"tiledb/*.pyx",
"tiledb/*.pxd",
"tiledb/*.pxi",
]

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

[tool.ruff.per-file-ignores]
"tiledb/__init__.py" = ["F401"]

[tool.cibuildwheel]
test-requires = [
"pytest",
"hypothesis",
"psutil",
"pyarrow",
]
test-command = "pytest {project}"

0 comments on commit 4e145ba

Please sign in to comment.