Skip to content

Add parsing of pyproject.toml #1590

@NSPC911

Description

@NSPC911

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions