Skip to content

Commit

Permalink
v1.5.0 — Custom headers and decoding metadata
Browse files Browse the repository at this point in the history
- **Bugfix**: Fix parsing of "true" `data-core-metadata` attributes and handling of the attribute's absence (contributed by [@thatch](https://github.com/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](https://github.com/thatch))
- `PyPISimple.get_package_metadata()` now always decodes responses as UTF-8 (contributed by [@thatch](https://github.com/thatch))
- Request methods now take optional `headers` arguments (contributed by [@thatch](https://github.com/thatch))
  • Loading branch information
jwodder committed Feb 24, 2024
1 parent 7642c13 commit f10f3f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v1.5.0 (in development)
-----------------------
v1.5.0 (2024-02-24)
-------------------
- **Bugfix**: Fix parsing of "true" `data-core-metadata` attributes and
handling of the attribute's absence (contributed by
[@thatch](https://github.com/thatch))
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
=========

v1.5.0 (in development)
-----------------------
v1.5.0 (2024-02-24)
-------------------
- **Bugfix**: Fix parsing of "true" ``data-core-metadata`` attributes and
handling of the attribute's absence (contributed by `@thatch
<https://github.com/thatch>`_)
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__ = "1.5.0.dev1"
__version__ = "1.5.0"
__author__ = "John Thorvald Wodder II"
__author_email__ = "[email protected]"
__license__ = "MIT"
Expand Down

0 comments on commit f10f3f6

Please sign in to comment.