From 1c67f56b21a2d325ebf5a57629956ab27ba983b1 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 1 Nov 2024 02:11:27 -0600 Subject: [PATCH] build: Prefer binary installs in cibuildwheel options * Enable PIP_PREFER_BINARY to ensure wheels are used if possible. * Use 'build[uv]' as build frontend to speed up installs when possible. * Revise the test command to explicitly target the tests/ directory. --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 45b76ad..3436012 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,7 +102,11 @@ version = "${version}" ''' [tool.cibuildwheel] +build-frontend = "build[uv]" skip = "pp* *musllinux* cp313-*" before-test = "pip install cython" -test-command = "pytest {package}" +test-extras = "test" +test-command = "pytest {project}/tests" test-requires = ["pytest", "numpy", "pot", "energyflow"] +environment.PIP_ONLY_BINARY = "numpy" +environment.PIP_PREFER_BINARY = "1"