Skip to content

Commit 58518d6

Browse files
committed
Add cibuildwheel test command
1 parent 413cf64 commit 58518d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyvips-binary/pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = [
33
# First version of setuptools to support pyproject.toml configuration
44
"setuptools>=61.0.0",
55
"wheel",
6+
# Must be kept in sync with `project.dependencies`
67
"cffi>=1.0.0",
78
"pkgconfig>=1.5",
89
]
@@ -38,6 +39,10 @@ classifiers = [
3839
"Programming Language :: Python :: Implementation :: CPython",
3940
"Programming Language :: Python :: Implementation :: PyPy",
4041
]
42+
dependencies = [
43+
# Must be kept in sync with `build-system.requires`
44+
"cffi>=1.0.0",
45+
]
4146

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

5965
[tool.cibuildwheel.environment]

0 commit comments

Comments
 (0)