Skip to content

fix(build): support flit-core 4 - #99

Open
stanislavlevin wants to merge 1 commit into
DelineaXPM:mainfrom
stanislavlevin:flit_4
Open

fix(build): support flit-core 4#99
stanislavlevin wants to merge 1 commit into
DelineaXPM:mainfrom
stanislavlevin:flit_4

Conversation

@stanislavlevin

Copy link
Copy Markdown

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:

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-io

snyk-io Bot commented Aug 25, 2026

Copy link
Copy Markdown

Snyk checks have failed. 5 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (5)
Open Source Security 0 5 0 0 5 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant