Closed njgrisafi closed 4 days ago
Also we should support uv sources
[project]
name = "something"
requires-python = ">=3.11.0,<=3.11.8"
version = "0.0.1"
description = "Some project"
authors = []
dependencies = [
"babel==2.9.1",
"local-project",
]
[tool.uv]
dev-dependencies = [
"coverage==7.3.2",
]
[tool.uv.sources]
local-project = { path = "./local-project" }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
The dev-dependencies
thing should be pretty straightforward if you want to take a crack at it.
Is your feature request related to a problem? Please describe. Not really, Pants just needs to support parsing
[tool.uv]
section fordev-dependencies
Describe the solution you'd like Have something like
uv_requirements
similar topoetry_requirements
This should include the
dev-dependencies
section inpyproject.toml
Describe alternatives you've considered Exporting to a
requirements-dev.txt
but we lose benefits in uv doing this.Another approach just duplicate dependencies between pants and uv.
Additional context Here's an example
pyproject.toml