Commit 7c9e5cf
committed
v0.10.0 — PEP 691 and downloading packages
- 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()` method1 parent 6928b20 commit 7c9e5cf
File tree
5 files changed
+7
-7
lines changed- docs
- src/pypi_simple
5 files changed
+7
-7
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| 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