From abeeacb99a30a5c2ae60c1696bb7ead012405349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Tue, 9 May 2023 10:57:41 -0400 Subject: bump up version to 2.7.0 --- .pre-commit-config.yaml | 2 +- CHANGELOG.rst | 34 +++++++++++++++++++++++++++++----- jwt/__init__.py | 2 +- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b55f4a..878b786 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: rev: 6.0.0 hooks: - id: flake8 - language_version: python3.8 + language_version: python3.9 - repo: https://github.com/PyCQA/isort rev: 5.12.0 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 25bd427..ee40ff4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,28 +4,52 @@ Changelog All notable changes to this project will be documented in this file. This project adheres to `Semantic Versioning `__. -`Unreleased `__ +`Unreleased `__ +----------------------------------------------------------------------- + +Changed +~~~~~~~ + +Fixed +~~~~~ + +Added +~~~~~ + +`v2.7.0 `__ ----------------------------------------------------------------------- Changed ~~~~~~~ - Changed the error message when the token audience doesn't match the expected audience by @irdkwmnsb `#809 `__ +- Improve error messages when cryptography isn't installed by @Viicos in `#846 `__ +- Make `Algorithm` an abstract base class by @Viicos in `#845 `__ Fixed ~~~~~ -- Add classifier for Python 3.11 by @eseifert in `#818 `_ -- Fix ``_validate_iat`` validation by @Viicos in `#847 `_ +- Add classifier for Python 3.11 by @eseifert in `#818 `__ +- Fix ``_validate_iat`` validation by @Viicos in `#847 `__ +- fix: use datetime.datetime.timestamp function to have a milliseconds by @daillouf `#821 `__ +- docs: correct mistake in the changelog about verify param by @gbillig in `#866 `__ Added ~~~~~ - Add ``compute_hash_digest`` as a method of ``Algorithm`` objects, which uses the underlying hash algorithm to compute a digest. If there is no appropriate - hash algorithm, a ``NotImplementedError`` will be raised + hash algorithm, a ``NotImplementedError`` will be raised in `#775 `__ - Add optional ``headers`` argument to ``PyJWKClient``. If provided, the headers - will be included in requests that the client uses when fetching the JWK set. + will be included in requests that the client uses when fetching the JWK set by @thundercat1 in `#823 `__ +- Add PyJWT._{de,en}code_payload hooks by @akx in `#829 `__ +- Add `sort_headers` parameter to `api_jwt.encode` by @evroon in `#832 `__ +- Make mypy configuration stricter and improve typing by @akx in `#830 `__ +- Add more types by @Viicos in `#843 `__ +- Add a timeout for PyJWKClient requests by @daviddavis in `#875 `__ +- Add client connection error exception by @daviddavis in `#876 `__ +- Add complete types to take all allowed keys into account by @Viicos in `#873 `__ + `v2.6.0 `__ ----------------------------------------------------------------------- diff --git a/jwt/__init__.py b/jwt/__init__.py index 26c79b2..914b4db 100644 --- a/jwt/__init__.py +++ b/jwt/__init__.py @@ -26,7 +26,7 @@ from .exceptions import ( ) from .jwks_client import PyJWKClient -__version__ = "2.6.0" +__version__ = "2.7.0" __title__ = "PyJWT" __description__ = "JSON Web Token implementation in Python" -- cgit v1.2.1