FIX: Replace minimum required Python for hatchling v1.18.0+ #901
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.
https://github.com/conda-forge/hatchling-feedstock has broken metadata for the minimum Python version required from
v1.18.0
onwards (currentlyv1.25.0
). The last version ofhatchling
that was compatible with Python 3.7 wasv1.17.1
as after that pypa/hatch#1386 introduced Python 3.8+ syntax that made its way into hatchlingv1.23.0
onward, thoughhatchling
v1.18.0
was the first version to require Python 3.8+ (c.f. https://github.com/pypa/hatch/releases/tag/hatchling-v1.18.0).c.f. conda-forge/pyhf-feedstock#28 (comment)
This is getting patched for
hatchling
v1.25.0
(rebuild) and future versions in conda-forge/hatchling-feedstock#59, so only apply thispython
replacement patch for releases created prior to now (1731056098000
which in human readable metadata is on 2024-11-08.)Checklist
generate_patch_json.py
if absolutely necessary.pre-commit run -a
and ensured all files pass the linting checks.version_in
is split across multiple lines to passyamllint
python show_diff.py
and posted the output as part of the PR.I use
to ensure that this only affects packages built in the past of today (2024-11-08).