Skip to content

Commit 713f371

Browse files
committed
build-numpy: set UV environment variables
The NumPy build itself doesn't need any of the packages from our registry, but when we use twine to publish the wheels, it tries to install cffi from source and fails. Add the UV variables to the environment so that the publish-to-gitlab action inherits them and uses them when invoking twine with uvx. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent cb2a039 commit 713f371

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build-numpy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ permissions:
2323
env:
2424
# `inputs.version` is empty on pull_request events; default to 2.5.0 there.
2525
NUMPY_VERSION: ${{ inputs.version || '2.5.0' }}
26+
UV_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/riseproject%2Fpython%2Fwheel_builder/packages/pypi/simple
27+
UV_INDEX_STRATEGY: unsafe-best-match
28+
UV_ONLY_BINARY: ':all:'
2629

2730
jobs:
2831
build_wheels:

0 commit comments

Comments
 (0)