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

Append delocate version to wheel metadata #234

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HexDecimal
Copy link
Collaborator

@HexDecimal HexDecimal commented Dec 17, 2024

Adds the delocate version used to wheel metadata as suggested by the Binary distribution format guidelines. The format is delocate {version} as shown in the guideline but I've seen other tools use name ({version}) instead.

Tagging wheels like this will help with future issues if there's ever a long term problem with a specific version of delocate.

There seemed to be cases where rewrite_record could be called before modifications were done, this has been resolved.

Was also able to move .coveragerc into pyproject.toml so that's one less config file.

Pull Request Checklist

  • Read and follow the CONTRIBUTING.md guide
  • Mentioned relevant issues
  • Append public facing changes to Changelog.md
  • Ensure new features are covered by tests
  • Ensure fixes are verified by tests

@HexDecimal HexDecimal marked this pull request as draft December 17, 2024 08:59
@HexDecimal
Copy link
Collaborator Author

HexDecimal commented Dec 17, 2024

After some consideration I want to rewrite this to not use importlib.metadata.

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.25%. Comparing base (9169a66) to head (82fc494).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
+ Coverage   97.18%   97.25%   +0.06%     
==========================================
  Files          16       16              
  Lines        1350     1348       -2     
==========================================
- Hits         1312     1311       -1     
+ Misses         38       37       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HexDecimal HexDecimal marked this pull request as ready for review December 17, 2024 09:35
Refactor wheel record updater

Using `delocate.__version__` would cause a cyclic import
Importlib works better for type checkers

Tests need to be changed to work with updated metadata

Check for delocate generator header in tests

Add to changelog
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.

1 participant