Skip to content

PROJECT_ROOT in requirements uses the working directory #3271

@jamesbraza

Description

@jamesbraza

I have a setuptools.build_meta backend monorepo with a pyproject.toml package named packagename in a subfolder. I specify its dependency in a requirements.txt at the repo root: package-name @ file://${PROJECT_ROOT}/packagename

In /Users/user/code/repo-root, running uv pip install --no-cache . works fine.

Moving up one directory to /Users/user/code and running uv pip install --no-cache ./repo fails:

error: Distribution not found at: file:///Users/user/code/packagename

Can we somehow know PROJECT_ROOT should be ./repo, instead of ./ in this case?


I am using uv 0.1.38 (0b23caa18 2024-04-24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-designNeeds discussion, investigation, or design

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions