-
Notifications
You must be signed in to change notification settings - Fork 996
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 lock
doesn't work with packages containing period in name
#6832
Comments
It’s normal for us to normalize the name like that. (Those are equivalent names from the perspective of the standards — they map to the exact same package.) Though it’s confusing that you aren’t seeing it in the environment at all? I’ll try to repro. |
Sounds good, though ideally the names exactly match for debugging ease.
Yeah when I run |
Oh sorry, just to clarify, is [project]
name = "albatross"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = ["albatross.seeds"] |
Yeah it is included as a dependency 👍 thanks for checking. That's not it in this case |
Ok thanks! I’ll take a look tomorrow. |
Does |
Yes it does, here's a minimal [build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]
[project]
dependencies = ["albatross"]
dynamic = ["version"]
name = "albatross.seeds"
[tool.ruff]
extend = "../../pyproject.toml"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
root = "../.."
version_file = "src/seeds/albatross/version.py" |
Thanks. Sorry for all the back-and-forth, I'm just having trouble reproducing:
Are you using |
Both Here is my [build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]
[project]
dependencies = []
dynamic = ["version"]
name = "albatross"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_file = "src/albatross/version.py"
[tool.uv]
dev-dependencies = [
"build", # TODO: remove after https://github.com/astral-sh/uv/issues/6278
"pytest>=8", # Pin to keep recent
]
[tool.uv.sources]
"albatross.seeds" = {workspace = true}
albatross = {workspace = true}
[tool.uv.workspace]
members = ["packages/*"] Does that help? What I can do to force the install is: uv sync
uv pip install -e packages/seeds |
Try this: [build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]
[project]
dependencies = ["albatross.seeds"]
dynamic = ["version"]
name = "albatross"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_file = "src/albatross/version.py"
[tool.uv]
dev-dependencies = [
"build", # TODO: remove after https://github.com/astral-sh/uv/issues/6278
"pytest>=8", # Pin to keep recent
]
[tool.uv.sources]
"albatross" = { workspace = true }
"albatross.seeds" = { workspace = true }
[tool.uv.workspace]
members = ["packages/*"] |
I believe you're missing |
Oh but If you can't repro, I can add you to the private repo to take a look. Are you open to that? |
Sure, I'm happy to take a look! Can you clarify which command you're running, and from which directory, that you expect to get |
Ahhhhh okay that was my misunderstanding, I was thinking for workspaces that Do you think:
Or we should document in the workspaces docs that Two workaround are:
|
On that first question, see: #5727. I just reopened it since it's now come up a few times. |
I have a workspace that looks like this:
And the name of the
seeds
package isalbatross.seeds
.In my repo root's
pyproject.toml
, I have:Running
uv lock
, it:albatross-seeds
notalbatross.seeds
pip list
I don't seealbatross-seeds
oralbatross.seeds
anywhereHere's a subset of the
uv.lock
:The text was updated successfully, but these errors were encountered: