Skip to content

v0.10.0 — PEP 691 and downloading packages

Compare
Choose a tag to compare
@jwodder jwodder released this 30 Jun 14:49
· 116 commits to master since this release
v0.10.0
  • Support Python 3.10
  • Support PEP 691
    • Send "Accept" headers in requests (except for stream_project_names()) listing both the new JSON format and the old HTML format
    • parse_repo_project_response() and parse_repo_index_response() now support both the JSON and HTML formats
    • Add parse_repo_index_json() and parse_repo_project_json() functions
    • Gave DistributionPackage a from_pep691_details() classmethod
    • DistributionPackage.has_metadata will now be None if not specified by a JSON response
    • DistributionPackage.metadata_url is now always non-None
  • Gave DistributionPackage a digests attribute
    • The get_digests() method of DistributionPackage is now deprecated; use digests instead
    • Digest fragments are now removed from DistributionPackage.url when parsing HTML responses
  • Warn on encountering a repository version with a greater minor version than expected
  • Gave PyPISimple a download_package() method