Repository navigation
setuptools → flit - #4075
Open
DimitriPapadopoulos wants to merge 1 commit into
Open
setuptools → flit#4075DimitriPapadopoulos wants to merge 1 commit into
DimitriPapadopoulos wants to merge 1 commit into
Conversation
- pyproject.toml: use flit_scm:buildapi (flit_core + flit_scm) as the PEP 517 build backend; replace [tool.setuptools.*] with [tool.flit.module] (package data inside codespell_lib/ is included in sdist and wheel automatically); keep [tool.setuptools_scm] so the SCM version is written to codespell_lib/_version.py at build time, which flit needs to resolve the dynamic version in isolated builds - codespell_lib: resolve __version__ at runtime via importlib.metadata instead of importing the generated _version.py - drop twine from the dev dependency group, Makefile check-dist, and the release workflow: twine was only used for `twine check --strict` (publishing goes through pypa/gh-action-pypi-publish with trusted publishing), and flit validates the core metadata at build time (SPDX license expression, PEP 440 version, project name, entry points), refusing to build invalid artifacts. The check we lose is `twine check`'s rendering of README.rst through readme_renderer, which was the only reason docutils was installed in tests.yml; flit only verifies the readme file exists and its content type - tests.yml, README.rst, .devcontainer: no longer install setuptools, setuptools_scm, docutils, or twine explicitly Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
DimitriPapadopoulos
force-pushed
the
flit
branch
from
November 22, 2026 23:04
2037295 to
c616c9e
Compare
DimitriPapadopoulos
marked this pull request as ready for review
November 22, 2026 23:05
DimitriPapadopoulos
requested review from
larsoner and
peternewman
as code owners
November 22, 2026 23:05
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.
The switch removes lines from configuration files:
twine check --strict(publishing goes through pypa/gh-action-pypi-publish with trusted publishing), and flit validates the core metadata at build time (SPDX license expression, PEP 440 version, project name, entry points), refusing to build invalid artifacts. The check we lose istwine check's rendering of README.rst through readme_renderer, which was the only reason docutils was installed in tests.yml; flit only verifies the readme file exists and its content type