Skip to content

Commit d8b2f79

Browse files
committed
v1.0.0 — Overhaul
- Removed deprecated functionality: - `DistributionPackage.get_digests()` - `PyPISimple.get_projects()` - `PyPISimple.get_project_files()` - `parse_simple_index()` - `parse_project_page()` - `parse_links()` - Drop support for Python 3.6 - Support Python 3.11 - `IndexPage`, `ProjectPage`, `DistributionPackage`, and `Link` have been changed from NamedTuples to dataclasses - Replaced `DistributionPackage.yanked` with separate `is_yanked` and `yanked_reason` attributes - `parse_filename()` now raises an `UnparsableFilenameError` on unparsable filenames instead of returning a triple of `None`s - `PyPISimple.get_project_page()` now raises a `NoSuchProjectError` on 404 responses instead of returning `None` - The functions for parsing data into `IndexPage` and `ProjectPage` instances have been replaced with classmethods: - `parse_repo_index_page()` → `IndexPage.from_html()` - `parse_repo_index_json()` → `IndexPage.from_json_data()` - `parse_repo_index_response()` → `IndexPage.from_response()` - `parse_repo_links()` → `RepositoryPage.from_html()` - `parse_repo_project_page()` → `ProjectPage.from_html()` - `parse_repo_project_json()` → `ProjectPage.from_json_data()` - `parse_repo_project_response()` → `ProjectPage.from_response()` - Add a `RepositoryPage` class for representing the return value of `parse_repo_links()` (now called `RepositoryPage.from_html()`) - Renamed `DistributionPackage.from_pep691_details()` to `from_json_data()` - `PyPISimple.stream_project_names()` now accepts JSON responses - Use pydantic internally to parse JSON responses - Added constants for passing to `PyPISimple` and its methods in order to specify the `Accept` header to send
1 parent 9c9338b commit d8b2f79

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-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.0.0 (in development)
2-
-----------------------
1+
v1.0.0 (2022-10-31)
2+
-------------------
33
- Removed deprecated functionality:
44
- `DistributionPackage.get_digests()`
55
- `PyPISimple.get_projects()`

docs/changelog.rst

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

6-
v1.0.0 (in development)
7-
-----------------------
6+
v1.0.0 (2022-10-31)
7+
-------------------
88
- Removed deprecated functionality:
99

1010
- ``DistributionPackage.get_digests()``
@@ -46,6 +46,7 @@ v1.0.0 (in development)
4646
- Added constants for passing to `PyPISimple` and its methods in order to
4747
specify the :mailheader:`Accept` header to send
4848

49+
4950
v0.10.0 (2022-06-30)
5051
--------------------
5152
- Support Python 3.10

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.0.0.dev1"
17+
__version__ = "1.0.0"
1818
__author__ = "John Thorvald Wodder II"
1919
__author_email__ = "[email protected]"
2020
__license__ = "MIT"

0 commit comments

Comments
 (0)