1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Running a tool with uvx from a private repo using an access token

Discussão em 'Python' iniciado por Stack, Novembro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I want to frequently test a Python application I'm developing with uv, which I publish to a private repository on a GitLab instance. I've generated an access token with read access to the repo and I want to run the tool directly from the latest commit. The documentation for uvx says that I should be able to do it like this:

    uvx --from "git+https://$TOOL_ACCESS_TOKEN@gitlab.instance/user/repo" tool


    However, I still get prompted to insert the login credentials to my account. Exiting from the process yields this error message:

    × Failed to resolve `--with` requirement
    ╰─▶ Git operation failed


    What is the correct way to run my tool in this scenario?

    Continue reading...

Compartilhe esta Página