-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv publish fails to upload package to nexus in CI but is able to push to nexus locally. #11469
Comments
Does the error message include any additional info? (And have you verified that the secrets are being set / propagated correctly in your CI pipeline? Like, that |
yes the username and password, seem to work as expected, to test it I also ran the publish using poetry to make sure I was able to publish using the same secrets, I could.
|
Just so you have the full CI here, it is
|
It looks like it's failing on |
that actually fixed it thanks, I didnt think building would need access to nexus, thought that would happen within CI and then pushed to nexus, which indeed not the case. |
I have follow up question though, would I need to then have |
I understand that during build uv isnt only packaging my code, its verifying and resolving the dependency as well and hence needs index username and password. |
We're building the source distribution (packaging your code) and that requires a build system, in this case, |
Question
I am in the process of migrating over to uv from poetry. The last piece I am testing is publishing packages. My current issue is that while I am able to publish to nexus (uses the index from pyproject.toml) when I am testing locally but fails to do so during CI (github actions), now all permissions are set and I can able to push packages using poetry, so its some issue with CI permission in general.
Below is snippet of GH action job and the associated pyproject.toml
here is the snippet from my pyproject.toml, I expect uv publish to respect my publish index within pyproject.toml even in CI.
So my key question is why does it fail to publish when it can locally, I did try passing --publish-url but that hasnt worked. Any help would be appreciated. Please let me know if further details are needed.
Platform
macos (Darwin 24.3.0 arm64)
Version
uv 0.5.29 (Homebrew 2025-02-06)
The text was updated successfully, but these errors were encountered: