summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Padilla <jpadilla@users.noreply.github.com>2023-05-09 10:57:41 -0400
committerJosé Padilla <jpadilla@users.noreply.github.com>2023-05-09 10:57:41 -0400
commitabeeacb99a30a5c2ae60c1696bb7ead012405349 (patch)
tree770bd036d4b907428bf3fa93528e4ea2c96f96e3
parentd8b12421654840418fd25b86553795c0c09ed0a9 (diff)
downloadpyjwt-abeeacb99a30a5c2ae60c1696bb7ead012405349.tar.gz
bump up version to 2.7.0
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--CHANGELOG.rst34
-rw-r--r--jwt/__init__.py2
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 <https://semver.org/>`__.
-`Unreleased <https://github.com/jpadilla/pyjwt/compare/2.6.0...HEAD>`__
+`Unreleased <https://github.com/jpadilla/pyjwt/compare/2.7.0...HEAD>`__
+-----------------------------------------------------------------------
+
+Changed
+~~~~~~~
+
+Fixed
+~~~~~
+
+Added
+~~~~~
+
+`v2.7.0 <https://github.com/jpadilla/pyjwt/compare/2.6.0...2.7.0>`__
-----------------------------------------------------------------------
Changed
~~~~~~~
- Changed the error message when the token audience doesn't match the expected audience by @irdkwmnsb `#809 <https://github.com/jpadilla/pyjwt/pull/809>`__
+- Improve error messages when cryptography isn't installed by @Viicos in `#846 <https://github.com/jpadilla/pyjwt/pull/846>`__
+- Make `Algorithm` an abstract base class by @Viicos in `#845 <https://github.com/jpadilla/pyjwt/pull/845>`__
Fixed
~~~~~
-- Add classifier for Python 3.11 by @eseifert in `#818 <https://github.com/jpadilla/pyjwt/pull/818>`_
-- Fix ``_validate_iat`` validation by @Viicos in `#847 <https://github.com/jpadilla/pyjwt/pull/847>`_
+- Add classifier for Python 3.11 by @eseifert in `#818 <https://github.com/jpadilla/pyjwt/pull/818>`__
+- Fix ``_validate_iat`` validation by @Viicos in `#847 <https://github.com/jpadilla/pyjwt/pull/847>`__
+- fix: use datetime.datetime.timestamp function to have a milliseconds by @daillouf `#821 <https://github.com/jpadilla/pyjwt/pull/821>`__
+- docs: correct mistake in the changelog about verify param by @gbillig in `#866 <https://github.com/jpadilla/pyjwt/pull/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 <https://github.com/jpadilla/pyjwt/pull/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 <https://github.com/jpadilla/pyjwt/pull/823>`__
+- Add PyJWT._{de,en}code_payload hooks by @akx in `#829 <https://github.com/jpadilla/pyjwt/pull/829>`__
+- Add `sort_headers` parameter to `api_jwt.encode` by @evroon in `#832 <https://github.com/jpadilla/pyjwt/pull/832>`__
+- Make mypy configuration stricter and improve typing by @akx in `#830 <https://github.com/jpadilla/pyjwt/pull/830>`__
+- Add more types by @Viicos in `#843 <https://github.com/jpadilla/pyjwt/pull/843>`__
+- Add a timeout for PyJWKClient requests by @daviddavis in `#875 <https://github.com/jpadilla/pyjwt/pull/875>`__
+- Add client connection error exception by @daviddavis in `#876 <https://github.com/jpadilla/pyjwt/pull/876>`__
+- Add complete types to take all allowed keys into account by @Viicos in `#873 <https://github.com/jpadilla/pyjwt/pull/873>`__
+
`v2.6.0 <https://github.com/jpadilla/pyjwt/compare/2.5.0...2.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"