Skip to content

"Can't combine URLs from both project.dependencies and tool.uv.sources" when combining GitHub link and local path #9682

@bersbersbers

Description

@bersbersbers

I would like to support editable installs of a package and one of its dependencies, if the dependencies are already checked out locally.

This is what I tried:

[project]
name = "Test"
version = "0.1"
dependencies = [
    "humanize @ git+https://github.com/python-humanize/humanize.git/",
]

[tool.uv.sources]
humanize = { path = "../humanize", editable = true }

Unfortunately, uv pip install . gives me

  × Failed to build `test @ file:///C:/Git/bug`
  ├─▶ Failed to parse entry: `humanize`
  ╰─▶ Can't combine URLs from both `project.dependencies` and `tool.uv.sources`

I read some documentation, but I must admit I was unable to figure out if the above should be supported or not.

uv 0.5.6 (b70c4f30e 2024-12-03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions