From 7c9e5cf3b60ea0d27bf9974ca0bdf25b11981654 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Thu, 30 Jun 2022 14:48:41 +0000 Subject: [PATCH] =?UTF-8?q?v0.10.0=20=E2=80=94=20PEP=20691=20and=20downloa?= =?UTF-8?q?ding=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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()` method --- CHANGELOG.md | 4 ++-- LICENSE | 2 +- docs/changelog.rst | 4 ++-- docs/conf.py | 2 +- src/pypi_simple/__init__.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f788c4b..a94b13a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ -v0.10.0 (in development) ------------------------- +v0.10.0 (2022-06-30) +-------------------- - Support Python 3.10 - Support PEP 691 - Send "Accept" headers in requests (except for `stream_project_names()`) diff --git a/LICENSE b/LICENSE index b77b49c..333e95b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018-2021 John Thorvald Wodder II +Copyright (c) 2018-2022 John Thorvald Wodder II Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/changelog.rst b/docs/changelog.rst index 755ff96..873488d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -3,8 +3,8 @@ Changelog ========= -v0.10.0 (in development) ------------------------- +v0.10.0 (2022-06-30) +-------------------- - Support Python 3.10 - Support :pep:`691` diff --git a/docs/conf.py b/docs/conf.py index 23e6e1b..fdf6ad9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,7 @@ project = "pypi-simple" author = "John T. Wodder II" -copyright = "2018-2021 John T. Wodder II" +copyright = "2018-2022 John T. Wodder II" extensions = [ "sphinx.ext.autodoc", diff --git a/src/pypi_simple/__init__.py b/src/pypi_simple/__init__.py index 6a796fa..9ecdffb 100644 --- a/src/pypi_simple/__init__.py +++ b/src/pypi_simple/__init__.py @@ -14,7 +14,7 @@ for more information. """ -__version__ = "0.10.0.dev1" +__version__ = "0.10.0" __author__ = "John Thorvald Wodder II" __author_email__ = "pypi-simple@varonathe.org" __license__ = "MIT"