Skip to content

⬆️ Update flit-core requirement from <4,>=3.4 to >=3.4,<5 - #414

Merged
chrisjsewell merged 2 commits into
masterfrom
dependabot/pip/flit-core-gte-3.4-and-lt-5
Sep 8, 2026
Merged

chrisjsewell merged 2 commits into
masterfrom
dependabot/pip/flit-core-gte-3.4-and-lt-5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on flit-core to permit the latest version.

Changelog

Sourced from flit-core's changelog.

Version 4.0.2

  • Fix invalid metadata files with Import-Name (:ghissue:813).

Version 4.0.1

No changes, but a new tag to trigger an upload to PyPI now that twine will accept it.

Version 4.0

This version contains breaking changes, but most projects which are already using the [project] table for metadata shouldn't be affected, and can simply change the flit_core <4 constraint to <5.

  • The [tool.flit.metadata] table is no longer used for project metadata (:ghpull:771). Use the newer :ref:[project] table <pyproject_toml_project> instead (or if that is not possible, build with flit_core <4).
  • :ref:build_cmd and :ref:publish_cmd no longer include files in the sdist based on what is committed in git or Mercurial (:ghpull:772). These commands now build packages more like Flit does when called as a backend by e.g. python -m build. Specify :ref:sdist include & exclude patterns <pyproject_toml_sdist> instead (Flit can help to generate these), or pass the --use-vcs option to get the old behaviour back.
  • flit_core now requires Python 3.8 or above (:ghpull:738)
  • The --setup-py option to generate sdists containing a setup.py file is no longer available (:ghpull:776).
  • Making typing stubs packages with a -stubs suffix will now work (:ghpull:742).
  • The default glob patterns for license files have been extended to include NOTICE* and AUTHORS* (:ghpull:758).
  • license-files glob patterns can contain spaces (:ghpull:797).
  • Fix a bug where license files could be found twice on Windows (:ghpull:752).
  • The new Import-Name and Import-Namespace metadata fields (metadata 2.5) are now supported (:ghpull:774). In most cases no new input is required, as Flit will create this metadata automatically.
  • Fix creating RECORD files when file names include commas (:ghpull:744).
  • The --use-vcs option now correctly recognises git from inside a git worktree folder (:ghpull:799).
  • On Python 3.12 and above, flit build now uses the 'data' filter when extracting the just-created sdist prior to building a wheel (:ghpull:775). This restricts some special features of tar files, but sdists are unlikely to use these features, and they would probably break in other scenarios if you did.
  • The vendorised readme_renderer package was updated to version 44.0 (:ghpull:760).

... (truncated)

Commits
  • 60c0b3d Merge pull request #814 from pypa/i813
  • 58e7f41 Bump version: 4.0.1 → 4.0.2
  • 666e3c2 Fix METADATA format issue
  • 81ac51d Merge pull request #812 from pypa/prepare-4.0.1
  • 41bdff1 Add release note about 4.0.1
  • ff5bfad Bump version: 4.0.0 → 4.0.1
  • 8faf734 Bump actions/setup-python from 6 to 7 (#807)
  • ef7f319 Merge pull request #800 from pypa/prepare-4.0
  • 431fbaf Remind people in release notes to allow flit_core <5
  • 38297e7 Version number -> 4.0.0
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [flit-core](https://github.com/pypa/flit) to permit the latest version.
- [Changelog](https://github.com/pypa/flit/blob/main/doc/history.rst)
- [Commits](pypa/flit@3.4.0...4.0.2)

---
updated-dependencies:
- dependency-name: flit-core
  dependency-version: 4.0.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 10, 2026
@chrisjsewell
chrisjsewell merged commit 780892c into master Sep 8, 2026
14 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/flit-core-gte-3.4-and-lt-5 branch September 8, 2026 11:58
chrisjsewell added a commit that referenced this pull request Sep 9, 2026
## Summary

Supersedes #420 by @BetterAndBetterII (GitHub refused to update that
fork branch because the merge would carry workflow-file changes); their
commits are carried here verbatim with authorship preserved (thank
you!). Closes #261, open since 2023 from a distro packager.

PyPI sdists shipped `tox.ini` but omitted `tests/`, so packagers could
not run the suite from the tarball. `tests/` is moved out of
`[tool.flit.sdist] exclude` and `tests/` plus `tox.ini` are explicitly
included; `docs/` and `benchmarking/` stay excluded.

## Commits

1. `fix: include tests/ (and tox.ini) in the flit sdist` and the
pre-commit.ci autofix — the contributor's commits, unchanged.
2. `🧪 TEST: Assert sdist contents by building the sdist` — the original
test only string-matched `pyproject.toml`. It now builds a real sdist
with `flit_core` (no network, ~0.15 s) and asserts
`markdown_it/__init__.py`, `tests/test_api/test_main.py` and `tox.ini`
are members and nothing under `docs/` or `benchmarking/` is. It skips
cleanly when `flit_core` is unavailable or when not run from a source
checkout. Verified negative: with the `include` reverted, the test fails
on `tests/test_api/test_main.py`.

## Verification

- 994 tests pass; the sdist test runs (not skipped) with flit_core
4.0.2, which is what `pyproject.toml` now allows after #414.
- All pre-commit hooks pass under the new pins.
- No changelog entry in the commits; suggest adding one at release time
under 🔧.

---------

Co-authored-by: Yuzhong Zhang <BetterAndBetterII@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant