← Back to issue list

plugins: add support for pyproject.toml projects (lp:#2008237)

View original Github issue

Metadata

Project
craft-parts
Number
#435
Type
pull request
State
merged
Author
toabctl
Labels
—
Created
Updated
Closed

Current evaluation

Merged pyproject.toml project support for the Python plugin into main via commit 438951f7; a mistaken 1.19.x backport was reverted.

Resolution: closed resolved

Reason: PR #435 merged to main as commit 438951f7, enabling Python projects with either setup.py or pyproject.toml. Current main retains the support, and maintainers confirmed the mistaken 1.19.x backport was reverted.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Python projects move to pyproject.toml[0] instead of using setup.py so add support to craft-parts so snaps can be build using the python plugin. [0] https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/ - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged pyproject.toml project support for the Python plugin into main via commit 438951f7; a mistaken 1.19.x backport was reverted.
stealth/space-bunny-alpha — closed resolved Merged #435 as commit 438951f7, adding Python plugin support for pyproject.toml projects. Downstream support landed in snapcraft#4087 and shipped in Snapcraft 8.
stealth/space-bunny-alpha — closed resolved Merged #435 added pyproject.toml support for Python projects. Commit 438951f7 landed the feature; it remains in main despite an erroneous 1.19.x backport and revert.
qwen/qwen3.6-35b-a3b — — Merged to add pyproject.toml support to the craft-parts Python plugin. The change was mistakenly backported to the 1.19.x series and reverted, but remains in main and latest releases. Approved by two reviewers.
qwen3.6-35b-a3b-mtp-q6 — — Merged to enable pyproject.toml support in the craft-parts Python plugin. The change was mistakenly backported to the 1.19.x series and reverted as a feature, but remains integrated in current releases.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#457 Release 1.19.4 craft-parts merged Merged as release 1.19.4 (commit 806ff7e0), backporting pyproject.toml project support and pull/build subdirectory fixes from 1.20.0.
78%
#344 Support pyprojects.toml for metadata extraction craft-parts closed Python plugin pyproject.toml support merged in canonical/craft-parts#435 (438951f7) and released in 1.20.0; the issue was later closed as already complete.
75%
#2008237 python plugin doesn't work with pyproject.toml based projects snapcraft (launchpad) closed Added core20 support for pyproject.toml projects via #4087 and craft-parts#435; the fix shipped in Snapcraft 8 and restores packaging of console-script entry points.
73%
#4087 python v2 plugin: support building parts conforming to PEP 518 snapcraft merged Merged #4087 as 2d596621d, adding core20 Python v2 plugin support for building PEP 518 projects with pyproject.toml.
73%