Skip to content

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Aug 13, 2025

The build commands like build-sequence were not using pbi.wheel_server_url. Under some conditions they were using wheels from an upstream server or requirement URL instead of the configured package wheel server.

The wheels.get_wheel_server_urls() handles this case correctly, but the current implementation is not usable for build command.

Refactor code:

  • modify get_wheel_server_urls() to accept a cache wheel server url instead of a hard-coded URL.
  • pass cache_wheel_server_url instead of wheel_server_urls in build commands
  • use get_wheel_server_urls() in build commands

Fixes: #704

@tiran
Copy link
Collaborator Author

tiran commented Aug 13, 2025

This PR refactors some code so bootstrap and build can shaer the same logic for wheel server urls. The bug could be fixed with a simpler change.

The build commands like `build-sequence` were not using
`pbi.wheel_server_url`. Under some conditions they were using wheels
from an upstream server or requirement URL instead of the configured
package wheel server.

The `wheels.get_wheel_server_urls()` handles this case correctly, but
the current implementation is not usable for build command.

Refactor code:

- modify `get_wheel_server_urls()` to accept a cache wheel server url
  instead of a hard-coded URL.
- pass `cache_wheel_server_url` instead of `wheel_server_urls` in build
  commands
- use `get_wheel_server_urls()` in build commands

Fixes: python-wheel-build#704
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran force-pushed the get_wheel_server_urls branch from de5059c to 22299e2 Compare August 13, 2025 08:52
@tiran tiran marked this pull request as ready for review August 13, 2025 09:38
@tiran tiran requested a review from a team as a code owner August 13, 2025 09:38
@mergify mergify bot merged commit 8809ac7 into python-wheel-build:main Aug 13, 2025
111 checks passed
@tiran tiran deleted the get_wheel_server_urls branch October 6, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build-sequence job uses wrong download URL for pre-built wheel

2 participants