Skip to content

Fix calc_constraints for older python versions - #1059

Merged
mdellweg merged 1 commit into
pulp:mainfrom
mdellweg:bindings_gen
Oct 27, 2026
Merged

mdellweg merged 1 commit into
pulp:mainfrom
mdellweg:bindings_gen

Conversation

@mdellweg

Copy link
Copy Markdown
Member

This fixes the script running.
But we may still run into dependency issues actually installing pulp to generate the api.json on some old branches using older python versions.

# /// script
# requires-python = ">=3.9"
# dependencies = [
# "packaging>=26.0,<26.1",

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.

Do we need specifically 26.0? Could the range be packaging>=26.0,<27.0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess we can relax that.
It's a tradeof between maintenance and surprise... (with this package i expect very little of both).

@mdellweg
mdellweg merged commit 7f608fb into pulp:main Oct 27, 2026
13 checks passed
@mdellweg
mdellweg deleted the bindings_gen branch October 27, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants