Summary 💡
UV uses the PEP 518 and PEP 621 specs for its pyproject.toml
In pyproject.toml,
- The project's description is at
project.description
- Dependencies are at
project.dependencies, with dev dependencies at dependency-groups.dev
- License is at
project.license.text
- Version is at
project.version
However, if you want to add support for poetry,
- The project's description is at
tool.poetry.description
- Dependencies are at
tool.poetry.dependencies with dev dependencies at tool.poetry.group.dev.dependencies (these are formatted as a dictionary, with a <dependency> = <version> arrangement
- License is at
tool.poetry.license
- Version is at
tool.poetry.version
There are a couple other key-value pairs available, but these seem to be the main ones.
Motivation 🔦
Adding support for Python's pyproject.toml specification.
I noticed that #345 was opened for the same thing, but it was marked as completed even though I don't see it in the repository.
Summary 💡
UV uses the PEP 518 and PEP 621 specs for its
pyproject.tomlIn
pyproject.toml,project.descriptionproject.dependencies, with dev dependencies atdependency-groups.devproject.license.textproject.versionHowever, if you want to add support for poetry,
tool.poetry.descriptiontool.poetry.dependencieswith dev dependencies attool.poetry.group.dev.dependencies(these are formatted as a dictionary, with a<dependency> = <version>arrangementtool.poetry.licensetool.poetry.versionThere are a couple other key-value pairs available, but these seem to be the main ones.
Motivation 🔦
Adding support for Python's
pyproject.tomlspecification.I noticed that #345 was opened for the same thing, but it was marked as completed even though I don't see it in the repository.