Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use keyword-only args for API functions #459

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Oct 2, 2024

Import API functions no longer accept positional arguments and only support keyword arguments. This makes the code more reliable, readable, and prepares the functions for the timeit decorator.

Related: #408
Related: #445

@mergify mergify bot added the ci label Oct 2, 2024
Import API functions no longer accept positional arguments and only
support keyword arguments. This makes the code more reliable, readable,
and prepares the functions for the `timeit` decorator.

Related: python-wheel-build#408
Related: python-wheel-build#445
Signed-off-by: Christian Heimes <[email protected]>
Copy link
Collaborator

@shubhbapna shubhbapna left a comment

Choose a reason for hiding this comment

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

LGTM, but will wait for @dhellmann review since this is a breaking change

@shubhbapna shubhbapna requested a review from dhellmann October 2, 2024 14:35
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

This will make upgrades downstream harder again, but long-term it's a good change.

When is the best time to merge this?

@shubhbapna
Copy link
Collaborator

When is the best time to merge this?

I think now is good. I don't see a new fromager release landing downstream while we have code freeze. Worst case if we do a need a release with a specific bug fix we create a branch of the 0.31 tag

@mergify mergify bot merged commit db8129d into python-wheel-build:main Oct 2, 2024
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants