Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BLD: Implement PEP639 licensing#28982

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
QuLogic wants to merge2 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromQuLogic:dynamic-license

Conversation

QuLogic
Copy link
Member

@QuLogicQuLogic commentedOct 16, 2024
edited
Loading

PR summary

Note that this would require meson-python 0.18.0, which was only released in May 2025, so we may not want to include this just yet.

It does fix the issue that that wheels do not include all licenses that we have in the sdist. Because of some discussion about the dynamicity of the license(-files) key, it doesnot automatically include the licenses of subprojects.

PR checklist

This allows developers to test out the build locally. With this, I wasable to fix the test command by setting `PIP_PREFER_BINARY` to avoidre-building Pillow, which accidentally dropped manylinux2014 wheels inthe latest release:python-pillow/Pillow#9057Note also that we previously set `CIBW_AFTER_BUILD`, but this doesn'tseem to be a valid setting. Thus I have dropped the `twine check`, whichonly tests the `README` rendering and so checking the sdist issufficient. Additionally, I have commented out the license check, as wecannot do multiple licenses with meson-python without PEP639 (matplotlib#28982).
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestJul 4, 2025
This allows developers to test out the build locally. With this, I wasable to fix the test command by setting `PIP_PREFER_BINARY` to avoidre-building Pillow, which accidentally dropped manylinux2014 wheels inthe latest release:python-pillow/Pillow#9057Note also that we previously set `CIBW_AFTER_BUILD`, but this doesn'tseem to be a valid setting. Thus I have dropped the `twine check`, whichonly tests the `README` rendering and so checking the sdist issufficient. Additionally, I have commented out the license check, as wecannot do multiple licenses with meson-python without PEP639 (matplotlib#28982).
@QuLogic
Copy link
MemberAuthor

Note, this is now working, I think, but it would require meson-python 0.18, which was only released in April of this year, and Meson 1.6, released October last year.

@rgommers
Copy link

This is looking pretty good to me.

it would require meson-python 0.18, which was only released in April of this year, and Meson 1.6, released October last year.

I wouldn't worry about that, using recent build dependencies is almost never a problem. The more relevant constraint is that this drops support for olderpip versions because of the bump in Core Metadata -pip 25.0 seems to be the first that supports it (didn't test that though, derived fromhttps://pip.pypa.io/en/stable/news/#v25-0).

@QuLogic
Copy link
MemberAuthor

I'm not sure if that's a problem; I used pip 24.3.1 to install from this branch and from the wheels generated in CI without any issues.

@rgommers
Copy link

Hmm interesting. The wheels do containMetadata-Version: 2.4, and support was added inpip 25.0 for that version. It looks like by default it's not validating metadata though:https://github.com/pypa/pip/blob/c3ad577ffd4b880434d0ec5c2a414908e7e14722/src/pip/_vendor/packaging/metadata.py#L702-L709. Good news then:)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
CI: Run cibuildwheelRun wheel building tests on a PR
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@QuLogic@rgommers

[8]ページ先頭

©2009-2025 Movatter.jp