You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm maintaining various libraries inside a monorepo using uv's wonderful workspaces feature.
Our pyproject.toml looks something like this:
[project]
name = "monorepo"
version = "0.1.0"
dependencies = ["mymodule[tests]"]
[tool.uv.workspace]
members = ["src/*"]
[tool.uv.sources]
mymodule = { workspace = true }
mymodule uses git-based versioning using setuptools-git-versioning. This gives it a new version like 0.1.post31+git.fc7087bf which we want for various internal reasons which I won't go into here. Unfortunately since that version is linked to the repository, making any change will result in its uv sync thinking it needs to update version of the module. The relevant section in uv.lock which continuously gets updated is:
[[package]]
name = "mymodule"
version = "0.1.post31+git.fc7087bf"
source = { editable = "src/mymodule" }
dependencies = [ ... ]
It would be great if we could somehow just skip writing the version for editable modules inside uv.lock, since it really shouldn't matter (they're just going to get installed via the filesystem anyway).
The text was updated successfully, but these errors were encountered:
I'm maintaining various libraries inside a monorepo using uv's wonderful workspaces feature.
Our pyproject.toml looks something like this:
mymodule
uses git-based versioning using setuptools-git-versioning. This gives it a new version like0.1.post31+git.fc7087bf
which we want for various internal reasons which I won't go into here. Unfortunately since that version is linked to the repository, making any change will result in itsuv sync
thinking it needs to update version of the module. The relevant section inuv.lock
which continuously gets updated is:It would be great if we could somehow just skip writing the version for editable modules inside
uv.lock
, since it really shouldn't matter (they're just going to get installed via the filesystem anyway).The text was updated successfully, but these errors were encountered: