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

Allow METADATA file to contain UTF-8 chars #489

Merged
merged 4 commits into from Nov 9, 2022

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Nov 9, 2022

setuptools produces UTF-8 PKG-INFO files. However, after processed by wheel, some serialization problems show up in the METADATA file (see pypa/setuptools#3663 (comment))

This PR attempts to allow UTF-8 in METADATA1 produced by wheel.

Closes #488.

Footnotes

  1. Initially, I was not 100% sure if the issue was related to standardization. PyPA specs do mention a bunch of old RFCs, but they are also clear state that "strings must be serialised using the UTF-8 encoding". Flit adopts the UTF-8 approach.

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Base: 68.28% // Head: 68.35% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (882dcb8) compared to base (7a633c9).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   68.28%   68.35%   +0.06%     
==========================================
  Files          12       12              
  Lines         927      929       +2     
==========================================
+ Hits          633      635       +2     
  Misses        294      294              
Impacted Files Coverage Δ
src/wheel/__init__.py 100.00% <100.00%> (ø)
src/wheel/bdist_wheel.py 52.83% <100.00%> (+0.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@abravalheri abravalheri marked this pull request as ready for review November 9, 2022 18:52
@abravalheri
Copy link
Contributor Author

abravalheri commented Nov 9, 2022

Please let me know if you think there is a different root cause for the problem and if it should be tackled elsewhere.

@agronholm agronholm merged commit 3f8bdf1 into pypa:main Nov 9, 2022
@agronholm
Copy link
Contributor

I think this is good enough to fix the issue. Thanks!

agronholm added a commit that referenced this pull request Nov 9, 2022
@abravalheri abravalheri deleted the issue-488 branch November 10, 2022 00:06
@dholth
Copy link
Member

dholth commented Nov 16, 2022

This is great! When we first wrote this EmailPolicy wasn't available in all our target Pythons.

agronholm added a commit that referenced this pull request Nov 26, 2022
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.

Incorrect summary in produced wheels starting from 0.38.1
3 participants