Skip to content
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

uv sync: project dev dependencies does not get installed #8353

Closed
bugzpodder opened this issue Oct 19, 2024 · 3 comments
Closed

uv sync: project dev dependencies does not get installed #8353

bugzpodder opened this issue Oct 19, 2024 · 3 comments

Comments

@bugzpodder
Copy link

bugzpodder commented Oct 19, 2024

prior to uv 0.4.9, if i do uv sync in workspace, both dev-dependencies in worspace and project gets installed. after uv 0.4.10+ uv sync in workspace removes project dev-dependencies

root workspace pyproject.yaml

[project]
name = "workspace"
version = "0.1.0"
dependencies = ["project"]

[tool.uv.sources]
project = { workspace = true }

[tool.uv.workspace]
members = ["project"]

[tool.uv]
package=false
dev-dependencies = [
    "coverage==7.5.3",
]

project pyproject.yaml

[project]
name = "project"
version = "0.1.0"
description = ""
dependencies = [
    ...
]

[tool.uv]
dev-dependencies = [
    "basedpyright==1.17.0"
]

[tools.uv]
package=false

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["workspace"]
@bugzpodder bugzpodder changed the title dev dependencies two layers of dev dependencies does not get installed Oct 19, 2024
@bugzpodder bugzpodder changed the title two layers of dev dependencies does not get installed uv sync: project dev dependencies does not get installed Oct 19, 2024
@FishAlchemist
Copy link
Contributor

I believe this is related to modification #7318.
The PR and its related issue should provide you with more details.

Please note that I am not a member of the UV team, so I can only provide PR that I believe are relevant for your reference. If you have any other ideas, I am not in a position to make decisions.

@zanieb
Copy link
Member

zanieb commented Oct 19, 2024

That sounds correct, thanks @FishAlchemist.

cc @charliermarsh

@bugzpodder
Copy link
Author

closing as a dupe of #7541. thanks for the quick feedback guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants