fix(build): support flit-core 4 - #99
Open
stanislavlevin wants to merge 1 commit into
Open
Conversation
flit-core 4 removed the old `[tool.flit.metadata]` table, so the build failed with the pinned `flit_core ==3.12.0` lifted to 4.x. Migrate the metadata to the PEP 621 `[project]` table: - widen the build requirement to `flit_core >=3.12,<5` - move `module` to `[tool.flit.module]` - take `version` and `description` from the package docstring and `__version__` via `dynamic` - declare the license as the SPDX expression `Apache-2.0` and drop the now-conflicting `License :: OSI Approved` classifier - add a `Homepage` project URL Verified `python -m build` produces an sdist and a wheel with correct metadata under both flit-core 4.0.2 and 3.12.0. Docs: - https://flit.pypa.io/en/stable/history.html#version-4-0 - https://flit.pypa.io/en/stable/pyproject_toml.html#pyproject-toml-project Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Stanislav Levin <slev@altlinux.org>
⛔ Snyk checks have failed. 5 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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.
flit-core 4 removed the old
[tool.flit.metadata]table, so the build failed with the pinnedflit_core ==3.12.0lifted to 4.x.Migrate the metadata to the PEP 621
[project]table:flit_core >=3.12,<5moduleto[tool.flit.module]versionanddescriptionfrom the package docstring and__version__viadynamicApache-2.0and drop the now-conflictingLicense :: OSI ApprovedclassifierHomepageproject URLVerified
python -m buildproduces an sdist and a wheel with correct metadata under both flit-core 4.0.2 and 3.12.0.Docs: