Skip to content

PRP: Extractor for pyproject.toml (PEP 621, not covered in #984) #2276

Description

@rahulhoysala
  • Software distribution method or binary type: pyproject.toml (PEP 621)
  • Popularity of distribution method: PyPI hosts over 600,000 projects, where pyproject.toml is the default project file. Projects which ship only pyproject.toml without a lockfile seem to be currently off the radar of SCALIBR's Python extraction.
  • Any critical, emergent vulnerability associated with software from the distribution method: The PyPI ecosystem has been a constant target for supply chain attacks. A popular example is the Ultralytics library (around 60 million downloads at the time) was compromised in December 2024, injecting a cryptominer into four published versions.
  • Resources:
    https://peps.python.org/pep-0621/
    https://packaging.python.org/en/latest/specifications/pyproject-toml/
    https://www.guvi.in/blog/python-packaging-with-pyproject-toml/
  • Additional notes: PRP: Extractor for PDM, Poetry, and uv #984 seems to cover sections of pyproject.toml specific to individual tools like Poetry, PDM and UV. This proposal targets complementary tables defined by PEP 621 like [project.dependencies] and [project.optional-dependencies].

Metadata

Metadata

Assignees

Labels

PRPPatch Reward Program: This label is added to all PRP related issues for easy filteringPRP:AcceptedPatch Reward Program: This issue has been accepted as a PRP entry.PRP:RequestPatch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions