packaging: Try uv path dependencies in projects

This commit is contained in:
Andrew Hamilton 2024-12-20 22:46:22 +10:00
parent b140bc9752
commit b1eb3d30f5
7 changed files with 43 additions and 15 deletions

View file

@ -5,6 +5,9 @@ build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv.sources]
termstr = { path = "../termstr" }
[project]
name = "lscolors"
version = "v2024.12.18"
@ -14,7 +17,7 @@ authors = [
]
requires-python = ">=3.11"
dependencies = [
"termstr @ git+https://gitlab.com/ahamilton/eris@v2024.12.18#subdirectory=termstr",
"termstr",
]
[project.urls]

7
lscolors/uv.lock generated
View file

@ -16,12 +16,15 @@ dependencies = [
]
[package.metadata]
requires-dist = [{ name = "termstr", git = "https://gitlab.com/ahamilton/eris?subdirectory=termstr&rev=v2024.12.18" }]
requires-dist = [{ name = "termstr", virtual = "../termstr" }]
[[package]]
name = "termstr"
version = "2024.12.18"
source = { git = "https://gitlab.com/ahamilton/eris?subdirectory=termstr&rev=v2024.12.18#42acd6db75cfb366e4f6b5de0bf7c7508eec6796" }
source = { virtual = "../termstr" }
dependencies = [
{ name = "cwcwidth" },
]
[package.metadata]
requires-dist = [{ name = "cwcwidth", specifier = "==0.1.5" }]