Skip to content

v1.5.0 — Custom headers and decoding metadata

Compare
Choose a tag to compare
@jwodder jwodder released this 24 Feb 21:08
· 25 commits to master since this release
v1.5.0
  • Bugfix: Fix parsing of "true" data-core-metadata attributes and handling of the attribute's absence (contributed by @thatch)
    • DistributionPackage.has_metadata will now be None if this attribute was absent in the HTML returned by PyPI. Previously, it would be False under this circumstance.
  • Added PyPISimple.get_package_metadata_bytes() (contributed by @thatch)
  • PyPISimple.get_package_metadata() now always decodes responses as UTF-8 (contributed by @thatch)
  • Request methods now take optional headers arguments (contributed by @thatch)