Skip to content

uv publish package for the first time, "error: failed to query check URL" #10174

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

Closed
nbrinks opened this issue Dec 26, 2024 · 2 comments · Fixed by #10182
Closed

uv publish package for the first time, "error: failed to query check URL" #10174

nbrinks opened this issue Dec 26, 2024 · 2 comments · Fixed by #10182
Labels
bug Something isn't working

Comments

@nbrinks
Copy link

nbrinks commented Dec 26, 2024

I am trying to use uv publish to publish a new python package to a private registry.

I believe the private registry is a nexus repository.

pyproject.toml configuration

[project]
name = "my-example-package"
...

[[tool.uv.index]]
name = "pypi-publish-private"
url = "https:/mirrors.my-company.com/pypi/simple/"
publish-url = "https://pypi-publish.my-company.com/"
default = true

Command I am running:

uv publish -v --index pypi-publish-private

Output:

DEBUG uv 0.5.10
warning: `uv publish` is experimental and may change without warning
DEBUG Publishing with index pypi-publish-private
DEBUG Not a distribution filename: `.gitignore`
Publishing 2 files https://pypi-publish.my-company.com/
DEBUG Using request timeout of 900s
DEBUG Checking for my-example-package-0.1.0-py3-none-any.whl in the registry
DEBUG No cache entry for: https:/mirrors.my-company.com/pypi/simple/my-example-package/
DEBUG No netrc file found
error: Failed to query check URL
  Caused by: Package `my-example-package` was not found in the registry

I am a bit confused.

  • Is there something I am suppose to do before publishing the very first time?
  • Since the package has never been published before isn't it expected that the package is not found in the the registry?
  • Is my private registry not behaving as expected?

I was able to work around this by using twine to upload the package the very first time. Once the package has been uploaded once then uv publish appears to work as expected.

@charliermarsh
Copy link
Member

This might be a real problem -- tagging @konstin for when they're back from vacation.

@nbrinks
Copy link
Author

nbrinks commented Dec 27, 2024

Just tried the fix. Worked great! Thanks!

@konstin konstin removed their assignment Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants