Skip to content

Pin "hatchling" with Python compatibility requirements - #895

Merged
eramongodb merged 1 commit into
mongodb-labs:masterfrom
eramongodb:det-dependabot-hatchling
Oct 27, 2026
Merged

eramongodb merged 1 commit into
mongodb-labs:masterfrom
eramongodb:det-dependabot-hatchling

Conversation

@eramongodb

Copy link
Copy Markdown
Contributor

Followup to #893 (break) and #894 (revert).

Updates the dependency specification for hatchling such that DET scripts' Python 3.9 compatibility is not compromised by hatchling 1.28.0 or newer, which raised its requires-python to >=3.10. Requiring hatchling 1.28.0 or newer prematurely raised the effective minimum Python version to v3.10 despite certain EVG distros (notably rhel8-zseries) being limited to Python 3.9. This PR aims to prevent this breaking change from occurring again by explicitly documenting this compatibility requirement in [build-system] by hatchling release version.

As a drive-by improvement, the specifiers are updated from >= (any newer) to == (pinned version) to improve script reliability. Note that build-system requirements are deliberately excluded from uv.lock by uv (no mention of "hatchling") because the requirement pertains only to the isolated build environment (used to build the package) and not the installed environment (as used by consumers).

Also considered adding "hatchling" to Dependabot ignore options, but opted against it for now to still allow Dependabot to bump the patch version when one is available.

@eramongodb
eramongodb requested a review from blink1073 October 26, 2026 18:51
@eramongodb eramongodb self-assigned this Oct 26, 2026
@eramongodb
eramongodb requested a review from a team as a code owner October 26, 2026 18:51

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PavelSafronov PavelSafronov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@eramongodb
eramongodb merged commit aa43e22 into mongodb-labs:master Oct 27, 2026
80 of 83 checks passed
@eramongodb
eramongodb deleted the det-dependabot-hatchling branch October 27, 2026 14:12
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.

3 participants