Commit f10f3f6
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
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments