Skip to content

Keep compatibility with setuptools tagging wheels with py2.py3 #1286

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

webknjaz
Copy link
Contributor

Modern versions of setuptools emit a warning when the universal = 1 option of bdist_wheel is used. This warning will turn into an error on Aug 30, 2025.

The only function of universal = 1 is assigning the dual py2.py3 tag to the wheels. It does not perform any content or metadata compatibility validation that might be related to this.

It is possible to keep producing same-tagged wheels by setting the non-deprecated python_tag option instead, which is what this PR does.

Fixes #1283

Ref pypa/setuptools#4939

@moreati moreati changed the title Keep comatibility with setuptools tagging wheels with py2.py3 Keep compatibility with setuptools tagging wheels with py2.py3 Jun 18, 2025
Modern versions of `setuptools` emit a warning when the `universal = 1` option of `bdist_wheel` is used. This warning will turn into an error on Aug 30, 2025.

The only function of `universal = 1` is assigning the dual `py2.py3` tag to the wheels. It does not perform any content or metadata compatibility validation that might be related to this.

It is possible to keep producing same-tagged wheels by setting the non-deprecated `python_tag` option instead, which is what this PR does.

Fixes mitogen-hq#1283

Ref pypa/setuptools#4939
@moreati moreati merged commit 08f0eca into mitogen-hq:master Jun 18, 2025
26 checks passed
@moreati
Copy link
Member

moreati commented Jun 18, 2025

Thank you. It'll probably be in a release later this month.

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.

setuptools bdist_wheel.universal is deprecated, removal expected 2025-08-30
2 participants