Skip to content

Commit f10f3f6

Browse files
committed
v1.5.0 — Custom headers and decoding metadata
- **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))
1 parent 7642c13 commit f10f3f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
v1.5.0 (in development)
2-
-----------------------
1+
v1.5.0 (2024-02-24)
2+
-------------------
33
- **Bugfix**: Fix parsing of "true" `data-core-metadata` attributes and
44
handling of the attribute's absence (contributed by
55
[@thatch](https://github.com/thatch))

docs/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Changelog
44
=========
55

6-
v1.5.0 (in development)
7-
-----------------------
6+
v1.5.0 (2024-02-24)
7+
-------------------
88
- **Bugfix**: Fix parsing of "true" ``data-core-metadata`` attributes and
99
handling of the attribute's absence (contributed by `@thatch
1010
<https://github.com/thatch>`_)

src/pypi_simple/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
for more information.
1515
"""
1616

17-
__version__ = "1.5.0.dev1"
17+
__version__ = "1.5.0"
1818
__author__ = "John Thorvald Wodder II"
1919
__author_email__ = "[email protected]"
2020
__license__ = "MIT"

0 commit comments

Comments
 (0)