13 Commits

Author SHA256 Message Date
5c97d95ce0 Accepting request 1267105 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267105
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyJWT?expand=0&rev=36
2025-04-11 14:45:29 +00:00
394f441df0 Accepting request 1266958 from home:darix:apps
- Just use a wildcard for the dist-info metadata to make it
  properly work on all setuptools versions.

OBS-URL: https://build.opensuse.org/request/show/1266958
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=81
2025-04-04 10:51:07 +00:00
8892bd0fd9 - Wrap the metadata directory name in a distro-based conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=80
2025-04-01 12:53:05 +00:00
891f918fef - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=79
2025-03-25 04:35:15 +00:00
f80ecb73cc Accepting request 1227953 from devel:languages:python
- Update to version 2.10.1 (bsc#1234038, CVE-2024-53861):
  * Prevent partial matching of iss claim. Thanks @fabianbadoi!
    (See: GHSA-75c5-xw7c-p5pm)

OBS-URL: https://build.opensuse.org/request/show/1227953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyJWT?expand=0&rev=35
2024-12-03 19:45:59 +00:00
1f7eb024ce - Update to version 2.10.1 (bsc#1234038, CVE-2024-53861):
* Prevent partial matching of iss claim. Thanks @fabianbadoi!
    (See: GHSA-75c5-xw7c-p5pm)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=77
2024-12-03 09:44:15 +00:00
62c135819c Accepting request 1225415 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1225415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyJWT?expand=0&rev=34
2024-11-21 14:13:33 +00:00
8bf63f728c Accepting request 1225220 from system:homeautomation:home-assistant:unstable
- Update to version 2.10.0
  * chore: use sequence for typing rather than list
  * Add support for Python 3.13
  * [pre-commit.ci] pre-commit autoupdate
  * Add an RTD config file to resolve RTD build failures
  * docs: Update iat exception docs
  * Remove algorithm requirement for JWT API
  * [pre-commit.ci] pre-commit autoupdate
  * Create SECURITY.md
  * docs fix: decode_complete scope and algorithms
  * fix doctest for docs/usage.rst
  * fix test_utils.py not to xfail
  * Correct jwt.decode audience param doc expression
  * Add PS256 encoding and decoding usage
  * Add API docs for PyJWK
  * Refactor project configuration files from setup.cfg to pyproject.toml PEP-518
  * Add JWK support to JWT encode
  * Update pre-commit hooks to lint pyproject.toml
  * Add EdDSA algorithm encoding/decoding usage
  * Ruff linter and formatter changes
  * Validate sub and jti claims for the token
  * Add ES256 usage
  * Encode EC keys with a fixed bit length
  * [pre-commit.ci] pre-commit autoupdate
  * Drop support for Python 3.8
  * Prepare 2.10.0 release
  * Bump codecov/codecov-action from 4 to 5
  * [pre-commit.ci] pre-commit autoupdate

OBS-URL: https://build.opensuse.org/request/show/1225220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=75
2024-11-20 22:52:08 +00:00
97262c1a9f Accepting request 1206126 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1206126
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyJWT?expand=0&rev=33
2024-10-08 15:22:54 +00:00
2736cf9bfd Accepting request 1206114 from home:bnavigator:branches:devel:languages:python
- Fix requirements

OBS-URL: https://build.opensuse.org/request/show/1206114
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=73
2024-10-07 14:42:42 +00:00
38a74d14c7 Accepting request 1193642 from devel:languages:python
- Skip failing test gh#jpadilla/pyjwt#802

- Update to version 2.9.0
  * Drop support for Python 3.7 (EOL) by @hugovk in #910
  * Allow JWT issuer claim validation to accept a list of
    strings too by @mattpollak in #913
  * Fix unnecessary string concatenation by @sirosen in #904
  * Fix docs for ``jwt.decode_complete`` to include ``strict_aud``
    option by @woodruffw in #923
  * Fix docs step by @jpadilla in #950
  * Fix: Remove an unused variable from example code block
    by @kenkoooo in #958
  * Add support for Python 3.12 by @hugovk in #910
  * Improve performance of ``is_ssh_key`` + add unit test by @bdraco in #940
  * Allow ``jwt.decode()`` to accept a PyJWK object by @luhn in #886
  * Make ``algorithm_name`` attribute available on PyJWK by @luhn in #886
  * Raise ``InvalidKeyError`` on invalid PEM keys to be compatible
    with cryptography 42.x.x by @CollinEMac in #952
  * Raise an exception when required cryptography dependency
    is missing by @tobloef in #963

OBS-URL: https://build.opensuse.org/request/show/1193642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyJWT?expand=0&rev=32
2024-08-13 11:22:56 +00:00
bf49918e05 - Skip failing test gh#jpadilla/pyjwt#802
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=71
2024-08-13 07:09:57 +00:00
e87c3ff565 Accepting request 1191645 from home:glaubitz:branches:devel:languages:python
- Update to version 2.9.0
  * Drop support for Python 3.7 (EOL) by @hugovk in #910
  * Allow JWT issuer claim validation to accept a list of
    strings too by @mattpollak in #913
  * Fix unnecessary string concatenation by @sirosen in #904
  * Fix docs for ``jwt.decode_complete`` to include ``strict_aud``
    option by @woodruffw in #923
  * Fix docs step by @jpadilla in #950
  * Fix: Remove an unused variable from example code block
    by @kenkoooo in #958
  * Add support for Python 3.12 by @hugovk in #910
  * Improve performance of ``is_ssh_key`` + add unit test by @bdraco in #940
  * Allow ``jwt.decode()`` to accept a PyJWK object by @luhn in #886
  * Make ``algorithm_name`` attribute available on PyJWK by @luhn in #886
  * Raise ``InvalidKeyError`` on invalid PEM keys to be compatible
    with cryptography 42.x.x by @CollinEMac in #952
  * Raise an exception when required cryptography dependency
    is missing by @tobloef in #963

OBS-URL: https://build.opensuse.org/request/show/1191645
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=70
2024-08-05 11:56:46 +00:00
4 changed files with 102 additions and 15 deletions

BIN
PyJWT-2.8.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pyjwt-2.10.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,90 @@
-------------------------------------------------------------------
Thu Apr 3 19:47:31 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
- Just use a wildcard for the dist-info metadata to make it
properly work on all setuptools versions.
-------------------------------------------------------------------
Tue Apr 1 12:52:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Wrap the metadata directory name in a distro-based conditional
-------------------------------------------------------------------
Tue Mar 25 04:34:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Tue Dec 3 09:42:44 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update to version 2.10.1 (bsc#1234038, CVE-2024-53861):
* Prevent partial matching of iss claim. Thanks @fabianbadoi!
(See: GHSA-75c5-xw7c-p5pm)
-------------------------------------------------------------------
Wed Nov 20 07:59:12 UTC 2024 - Adrian Schröter <adrian@suse.de>
- Update to version 2.10.0
* chore: use sequence for typing rather than list
* Add support for Python 3.13
* [pre-commit.ci] pre-commit autoupdate
* Add an RTD config file to resolve RTD build failures
* docs: Update iat exception docs
* Remove algorithm requirement for JWT API
* [pre-commit.ci] pre-commit autoupdate
* Create SECURITY.md
* docs fix: decode_complete scope and algorithms
* fix doctest for docs/usage.rst
* fix test_utils.py not to xfail
* Correct jwt.decode audience param doc expression
* Add PS256 encoding and decoding usage
* Add API docs for PyJWK
* Refactor project configuration files from setup.cfg to pyproject.toml PEP-518
* Add JWK support to JWT encode
* Update pre-commit hooks to lint pyproject.toml
* Add EdDSA algorithm encoding/decoding usage
* Ruff linter and formatter changes
* Validate sub and jti claims for the token
* Add ES256 usage
* Encode EC keys with a fixed bit length
* [pre-commit.ci] pre-commit autoupdate
* Drop support for Python 3.8
* Prepare 2.10.0 release
* Bump codecov/codecov-action from 4 to 5
* [pre-commit.ci] pre-commit autoupdate
-------------------------------------------------------------------
Mon Oct 7 13:53:47 UTC 2024 - Benjamin Greiner <code@bnavigator.de>
- Fix requirements
-------------------------------------------------------------------
Tue Aug 13 07:09:23 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Skip failing test gh#jpadilla/pyjwt#802
-------------------------------------------------------------------
Mon Aug 5 11:16:57 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.9.0
* Drop support for Python 3.7 (EOL) by @hugovk in #910
* Allow JWT issuer claim validation to accept a list of
strings too by @mattpollak in #913
* Fix unnecessary string concatenation by @sirosen in #904
* Fix docs for ``jwt.decode_complete`` to include ``strict_aud``
option by @woodruffw in #923
* Fix docs step by @jpadilla in #950
* Fix: Remove an unused variable from example code block
by @kenkoooo in #958
* Add support for Python 3.12 by @hugovk in #910
* Improve performance of ``is_ssh_key`` + add unit test by @bdraco in #940
* Allow ``jwt.decode()`` to accept a PyJWK object by @luhn in #886
* Make ``algorithm_name`` attribute available on PyJWK by @luhn in #886
* Raise ``InvalidKeyError`` on invalid PEM keys to be compatible
with cryptography 42.x.x by @CollinEMac in #952
* Raise an exception when required cryptography dependency
is missing by @tobloef in #963
-------------------------------------------------------------------
Mon Sep 4 17:36:39 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyJWT
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,27 +16,24 @@
#
%global skip_python2 1
%{?sle15_python_module_pythons}
Name: python-PyJWT
Version: 2.8.0
Version: 2.10.1
Release: 0
Summary: JSON Web Token implementation in Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/progrium/pyjwt
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 3.3.1}
Source: https://files.pythonhosted.org/packages/source/p/pyjwt/pyjwt-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 3.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typing-extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 3.3.1
Requires: python-typing-extensions
Recommends: python-cryptography >= 3.4
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -44,7 +41,7 @@ BuildArch: noarch
A Python implementation of JSON Web Token draft 01.
%prep
%setup -q -n PyJWT-%{version}
%setup -q -n pyjwt-%{version}
%build
%pyproject_wheel
@@ -57,12 +54,15 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k "not test_verify_false_deprecated" -k "not test_get_jwt_set_sslcontext_default"
donttest="test_verify_false_deprecated or test_get_jwt_set_sslcontext_default"
# Failing test: gh#jpadilla/pyjwt#802
donttest+=" or test_ec_to_jwk_with_invalid_curve"
%pytest -k "not ($donttest)"
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst CHANGELOG.rst README.rst
%{python_sitelib}/jwt
%{python_sitelib}/PyJWT-%{version}*-info
%{python_sitelib}/*-%{version}.dist-info
%changelog