Skip to content

Commit

Permalink
v0.10.0 — PEP 691 and downloading packages
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
jwodder committed Jun 30, 2022
1 parent 6928b20 commit 7c9e5cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.10.0 (in development)
------------------------
v0.10.0 (2022-06-30)
--------------------
- Support Python 3.10
- Support PEP 691
- Send "Accept" headers in requests (except for `stream_project_names()`)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018-2021 John Thorvald Wodder II
Copyright (c) 2018-2022 John Thorvald Wodder II

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Changelog
=========

v0.10.0 (in development)
------------------------
v0.10.0 (2022-06-30)
--------------------
- Support Python 3.10
- Support :pep:`691`

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

project = "pypi-simple"
author = "John T. Wodder II"
copyright = "2018-2021 John T. Wodder II"
copyright = "2018-2022 John T. Wodder II"

extensions = [
"sphinx.ext.autodoc",
Expand Down
2 changes: 1 addition & 1 deletion src/pypi_simple/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
for more information.
"""

__version__ = "0.10.0.dev1"
__version__ = "0.10.0"
__author__ = "John Thorvald Wodder II"
__author_email__ = "pypi-simple@varonathe.org"
__license__ = "MIT"
Expand Down

0 comments on commit 7c9e5cf

Please sign in to comment.