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

Update supported pkg-info metadata and fix data export #487

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

itziakos
Copy link
Member

@itziakos itziakos commented Feb 5, 2025

  • Add support for pkginfo metadata versions 2.2, 2.3 and 2.4
  • Parse License-File field from broken setuptools metadata
  • Do not export max metadata version by default but respect the instance version
  • Make default metadata version to 2.1 (when not defined)
  • Support exporting the description as the metadata body
  • Try to produce a sensible layout at export
  • Rename pkg_info.platforms -> pkg_info.platform
  • Rename pkg_info.supported_platforms -> pkg_info.support_platform
  • Augment and update tests

fixes #483

- Add support for pkginfo metadata versions 2.2, 2.3 and 2.4
- Parse License-File field from broken setuptools metadata
- Do not export max metadata version by default
- Make default metadata version to 2.1 (when not defined)
- Support exporting the description as the metadata body
- Try to produce a sensible layout at export
- Rename pkg_info.platforms -> pkg_info.platform
- Rename pkg_info.supported_platforms -> pkg_info.support_platform
Copy link
Member

@dpinte dpinte left a comment

Choose a reason for hiding this comment

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

👍

@itziakos itziakos merged commit 30c07fa into main Feb 6, 2025
17 checks passed
@itziakos itziakos deleted the support-pkg-info-2.4 branch February 6, 2025 17:26
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.

PKG-INFO metadata 2.2 is not supported
2 participants