Skip to content

Commit

Permalink
Add cibuildwheel test command
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 21, 2024
1 parent 413cf64 commit 58518d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyvips-binary/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ requires = [
# First version of setuptools to support pyproject.toml configuration
"setuptools>=61.0.0",
"wheel",
# Must be kept in sync with `project.dependencies`
"cffi>=1.0.0",
"pkgconfig>=1.5",
]
Expand Down Expand Up @@ -38,6 +39,10 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
# Must be kept in sync with `build-system.requires`
"cffi>=1.0.0",
]

[tool.setuptools]
include-package-data = false
Expand All @@ -54,6 +59,7 @@ build = [
]
build-frontend = "build"
before-build = "bash {package}/scripts/cibw_before_build.sh"
test-command = "python -c \"import _libvips; assert _libvips.lib.vips_version(0) == 8\""
environment-pass = ["RUNNER_OS"]

[tool.cibuildwheel.environment]
Expand Down

0 comments on commit 58518d6

Please sign in to comment.