Skip to content

UV: Using a private repository incorrectly uses the dev repository settings #427

@epwilkins

Description

@epwilkins

Description

When a private repository is added to a UV project, the pyproject.toml file is updated with the private index. To do so, two url's are set: url and publish-url. Though the base URL used to construct the search and publish URLs is pulled from pypiRepoUrl, the suffix settings for the publish URL are pulled from the dev* settings. I didn't test the search URL to see if it was using the correct set of settings.

Steps to Reproduce

  1. Create a uv project built by Habushu
  2. Set the pypiRepoUrl to something other than pypi.org (doesn't have to exist)
  3. Run mvn clean install

Expected result:

the following is added to the pyproject.toml file:

[[tool.uv.index]]
name = "local-repo"
url = "http://localhost:7000/simple/"
publish-url = "http://localhost:7000/"

Actual result:

the following is added to the pyproject.toml file:

[[tool.uv.index]]
name = "local-repo"
url = "http://localhost:7000/simple/"
publish-url = "http://localhost:7000/legacy/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions