Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Oct 23, 2024
1 parent de0f6c9 commit c04d0df
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
tags:
- "v*.*.*"

pull_request:
paths:
Expand Down Expand Up @@ -250,8 +248,6 @@ jobs:
CIBW_ENVIRONMENT_PASS_LINUX: >
CONAN_HOME
HICTKPY_CONAN_INSTALL_ARGS
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
- name: Verify clean directory
run: git diff --exit-code
Expand Down Expand Up @@ -309,7 +305,6 @@ jobs:
uses: actions/download-artifact@v4
with:
name: dist
path: dist
merge-multiple: true

- name: Extract dist.tar
Expand Down
20 changes: 19 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ optional-dependencies.dev = [
]

[tool.scikit-build]
minimum-version = "0.10"
build-dir = "build/{wheel_tag}"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/_version.py"]
wheel.expand-macos-universal-tags = true
Expand Down Expand Up @@ -107,6 +109,16 @@ testpaths = [
]

[tool.cibuildwheel]
build-frontend = "build"
manylinux-x86_64-image = "manylinux_2_28"
manylinux-i686-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
manylinux-ppc64le-image = "manylinux_2_28"
manylinux-s390x-image = "manylinux_2_28"
manylinux-pypy_x86_64-image = "manylinux_2_28"
manylinux-pypy_i686-image = "manylinux_2_28"
manylinux-pypy_aarch64-image = "manylinux_2_28"

skip = ["cp313*", "cp314*", "*musllinux*", "pp*"]
test-command = "python -m pytest {project}/test"
test-extras = ["test", "numpy", "pandas", "pyarrow", "scipy"]
Expand All @@ -117,7 +129,13 @@ before-build = [
"rm -rf '{project}/build'",
]

# We are using static linking, thus repairing wheels is not necessary.
# We are using static linking, thus repairing wheels should not be necessary.
# Exception being when building portable Linux wheels.
# See https://github.com/scikit-build/scikit-build-core/pull/698#issuecomment-2082991257
[tool.cibuildwheel.macos]
repair-wheel-command = ""

[tool.cibuildwheel.windows]
repair-wheel-command = ""

[tool.ruff]
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ find_package(
3.9
COMPONENTS
Interpreter
Development.Module
NumPy
REQUIRED
)
Expand Down

0 comments on commit c04d0df

Please sign in to comment.