Repository navigation
Conversation
…the wheel The SPDX string form of `project.license` (PEP 639) needs setuptools>=77. The Debian package build runs with the distribution's python3-setuptools, 68 on Ubuntu 24.04, which rejects it: ValueError: invalid pyproject.toml config: `project.license`. so `python3-flagsparse` cannot be built from v0.3.0. The table form is accepted by every setuptools from 61 to the current 84 (with a deprecation warning on new ones, removal not before 2027-02-18). setuptools includes LICENSE by default, so the `license-files` key, which old versions also reject, is not needed.
Contributor
Author
|
Note on when this reaches the package repositories:
|
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
pyproject.tomldeclareslicense = "Apache-2.0"andlicense-files = ["LICENSE"], the PEP 639 form that needs setuptools>=77. The Debian package build uses the distribution'spython3-setuptools(68.1.2 on Ubuntu 24.04), which rejects it:The rpm build for openEuler 24.03 (python3-setuptools 65, pip fallback path) fails the same way at
Preparing metadata (pyproject.toml); Fedora 43 passes because its setuptools is new enough. Sopython3-flagsparsedeb and the openEuler rpm cannot be built fromv0.3.0(the FlagOS 2.2 release tag) or frommain; thev0.3.0-rc2.post1package built because that tag still had the table form.Change
license = { text = "Apache-2.0" }, with thelicense-fileskey dropped: setuptools includesLICENSEby default, and old versions reject that key as well.Verified
python3-setuptools)LICENSEis indist-infoTest
tests/ci/test_packaging_metadata.py::test_license_metadata_is_apache_2asserted the string form; it now expects the table form, with the reason next to it. The rest of that file is unchanged (test_package_version_matches_metadataneeds the package installed and is not affected).Also built through the central release path (flagos-ai/build-infra) at this PR head: noarch-deb run 38678034771 (build plus ubuntu22.04/24.04 install verification), passed.
This PR was written in part with the assistance of generative AI.