From cb5b659f907b1089b8862f16ab931296c1b1c95de5c80e39870d38362f49e09a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 5 Dec 2022 17:35:59 +0000 Subject: [PATCH] Accepting request 1040193 from home:Simmphonie:branches:devel:languages:python - drop python-fido2-no-mock.patch - Update to version 1.1.0 * Bugfix: Fix name of "crossOrigin" in CollectedClientData.create(). * Bugfix: Some incorrect type hints in the MDS3 classes were fixed. * Stricter checking of dataclass field types. * Add support for JSON-serialization of WebAuthn data classes. This changes the objects dict representation to align with new additions in the WebAuthn specification. As this may break compatibility, the new behavior requires explicit opt-in until python-fido2 2.0 is released. * Update server example to use JSON serialization. * Server: Add support for passing RegistrationResponse/AuthenticationResponse (or their deserialized JSON data) to register_complete/authenticate_complete. * Add new "hybrid" AuthenticatorTransport. * Add new AuthenticatorData flags, and use 2-letter names as in the WebAuthn spec (long names are still available as aliases). - version 1.0.0 * Release Candidate 1 of first stable release. * Require Python 3.7 or later. * APIs have updated to align with WebAuthn level 2. * Several CTAP 2.1 features have been implemented. OBS-URL: https://build.opensuse.org/request/show/1040193 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fido2?expand=0&rev=26 --- fido2-0.9.3.tar.gz | 3 -- fido2-0.9.3.tar.gz.sig | Bin 310 -> 0 bytes fido2-1.1.0.tar.gz | 3 ++ fido2-1.1.0.tar.gz.asc | 11 +++++++ python-fido2-no-mock.patch | 52 -------------------------------- python-fido2.changes | 25 ++++++++++++++++ python-fido2.keyring | 59 +++++++++++++++++++++++++++++++++++++ python-fido2.spec | 26 +++++++--------- 8 files changed, 108 insertions(+), 71 deletions(-) delete mode 100644 fido2-0.9.3.tar.gz delete mode 100644 fido2-0.9.3.tar.gz.sig create mode 100644 fido2-1.1.0.tar.gz create mode 100644 fido2-1.1.0.tar.gz.asc delete mode 100644 python-fido2-no-mock.patch create mode 100644 python-fido2.keyring diff --git a/fido2-0.9.3.tar.gz b/fido2-0.9.3.tar.gz deleted file mode 100644 index d0b4cd5..0000000 --- a/fido2-0.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b45e89a6109cfcb7f1bb513776aa2d6408e95c4822f83a253918b944083466ec -size 217894 diff --git a/fido2-0.9.3.tar.gz.sig b/fido2-0.9.3.tar.gz.sig deleted file mode 100644 index 3740131f5ac34f3e98779279273d44b458604aa7de3ff319d86d9dd88aa0a014..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SW*e79j*6?lN13s2j`E#A0@L7Xr*F8hSe~WV>R~4v_Z-DCdCJ7bfc^ zM{6C(cvUbJ~#eRGYkOd-ea!@*r6=FK>oMw~Q z4<1<`sM3$ZIQ4WKdke0Wnpc-$aBX%zBl95!t~-!>Ih8ElLtX%jQR|P!?upRpOr+a) zm`1}cOcOzvcRiI+l)~xEFyqsn+vt|-?hr6Ur3SsXkvUObBlhLh0bWV4EKNKPC;jY# zc))o@Pgoh5!Hn diff --git a/fido2-1.1.0.tar.gz b/fido2-1.1.0.tar.gz new file mode 100644 index 0000000..340ee06 --- /dev/null +++ b/fido2-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b4b4e620c2100442c20678e0e951ad6d1efb3ba5ca8ebb720c4c8d543293674 +size 243526 diff --git a/fido2-1.1.0.tar.gz.asc b/fido2-1.1.0.tar.gz.asc new file mode 100644 index 0000000..ba75b7a --- /dev/null +++ b/fido2-1.1.0.tar.gz.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCgAdFiEEIO4yW4aoG8vT5WeY8ENnCW+6legFAmNNW8kACgkQ8ENnCW+6 +legiTgf/dLbhcsaJfy6eHvtZwXfVu9LuvYuqJ1P3DPACybpMkgQhQkmjl8rxRKUD +6dJA84hY1bsOJi1W/8Y61UGKGyC/0x+qgPeb0b7F6Vd9zkIcdQajELKVNL05FyUu +Z51XKzHrY+XjHy2Qaq/8z94aJLnlrwS55n8NHiY6g2SKaq5MaPAEStxURVns5qyP +p3TaB8Do3kmmOxVtyM5j7kSxkHe3noWPXevcjNOaeCW2rxtXmZtNZ1SV1SK85w86 +qcVlVLAaCF17uoJXwq5O3XTuO8OBEOe3JBp7dkFrCaL6OFo2QFzH1RFSm4l/axCS +d1HX7EZdfERPyhHQe+hzpeyaxMHeSQ== +=gXrG +-----END PGP SIGNATURE----- diff --git a/python-fido2-no-mock.patch b/python-fido2-no-mock.patch deleted file mode 100644 index 42d7348..0000000 --- a/python-fido2-no-mock.patch +++ /dev/null @@ -1,52 +0,0 @@ -Index: fido2-0.9.3/test/test_client.py -=================================================================== ---- fido2-0.9.3.orig/test/test_client.py 2021-11-09 11:45:37.000000000 +0100 -+++ fido2-0.9.3/test/test_client.py 2022-03-21 11:33:24.574736097 +0100 -@@ -29,7 +29,7 @@ - - from __future__ import absolute_import, unicode_literals - --import mock -+import unittest.mock as mock - import unittest - from threading import Event, Timer - from binascii import a2b_hex -Index: fido2-0.9.3/test/test_ctap1.py -=================================================================== ---- fido2-0.9.3.orig/test/test_ctap1.py 2021-11-09 11:45:37.000000000 +0100 -+++ fido2-0.9.3/test/test_ctap1.py 2022-03-21 11:33:53.026894591 +0100 -@@ -30,7 +30,7 @@ from __future__ import absolute_import, - from fido2.ctap1 import Ctap1, ApduError - from binascii import a2b_hex - import unittest --import mock -+import unittest.mock as mock - - - class TestCtap1(unittest.TestCase): -Index: fido2-0.9.3/test/test_ctap2.py -=================================================================== ---- fido2-0.9.3.orig/test/test_ctap2.py 2021-11-09 11:45:37.000000000 +0100 -+++ fido2-0.9.3/test/test_ctap2.py 2022-03-21 11:34:20.103045403 +0100 -@@ -45,7 +45,7 @@ from cryptography.hazmat.backends import - from cryptography.hazmat.primitives.asymmetric import ec - - import unittest --import mock -+import unittest.mock as mock - - _AAGUID = a2b_hex("F8A011F38C0A4D15800617111F9EDC7D") - _INFO = a2b_hex( -Index: fido2-0.9.3/test/test_pcsc.py -=================================================================== ---- fido2-0.9.3.orig/test/test_pcsc.py 2021-11-09 11:45:37.000000000 +0100 -+++ fido2-0.9.3/test/test_pcsc.py 2022-03-21 11:34:37.963144879 +0100 -@@ -28,7 +28,7 @@ - from __future__ import absolute_import, unicode_literals - - import unittest --import mock -+import unittest.mock as mock - import sys - from fido2.hid import CTAPHID - diff --git a/python-fido2.changes b/python-fido2.changes index c5a1f51..f53d604 100644 --- a/python-fido2.changes +++ b/python-fido2.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Dec 5 09:06:02 UTC 2022 - Torsten Gruner + +- drop python-fido2-no-mock.patch +- Update to version 1.1.0 + * Bugfix: Fix name of "crossOrigin" in CollectedClientData.create(). + * Bugfix: Some incorrect type hints in the MDS3 classes were fixed. + * Stricter checking of dataclass field types. + * Add support for JSON-serialization of WebAuthn data classes. + This changes the objects dict representation to align with new additions in the + WebAuthn specification. As this may break compatibility, the new behavior + requires explicit opt-in until python-fido2 2.0 is released. + * Update server example to use JSON serialization. + * Server: Add support for passing RegistrationResponse/AuthenticationResponse (or + their deserialized JSON data) to register_complete/authenticate_complete. + * Add new "hybrid" AuthenticatorTransport. + * Add new AuthenticatorData flags, and use 2-letter names as in the WebAuthn spec + (long names are still available as aliases). + +- version 1.0.0 + * Release Candidate 1 of first stable release. + * Require Python 3.7 or later. + * APIs have updated to align with WebAuthn level 2. + * Several CTAP 2.1 features have been implemented. + ------------------------------------------------------------------- Mon Mar 21 10:44:41 UTC 2022 - pgajdos@suse.com diff --git a/python-fido2.keyring b/python-fido2.keyring new file mode 100644 index 0000000..51a512e --- /dev/null +++ b/python-fido2.keyring @@ -0,0 +1,59 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBFLP7UQBCACbOjmf0DRdtSjxFpTk+a5+Wa0syMbOc90IyRB9BXldK5FhMESt +EuGw2uuXqzu45VRGslCl3h4Hyo2ogcyNT1dZQT9IcG/k/m15gZRRnyIiKftI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LzlM1kULq4Zvw/UAS0Bq9oreQn6lztIwYewWPo87vTa8 +rFXQYth8pHb/OQkK8QuudJjYKu6NbV0nTrrQ0nIeNeqGV4879hpqeNU8LDzMvxiJ +WGaGux9vcR64cNhJQLbdAHKyLpl9xTtPzZc4vrMvz/2/ncU1Zlkel7ROmFrMxnm3 +ew9d6kJCSusregK1RymHdLhYcsrhhrbpX7NDBnf+omNYP2krIfbFnA== +=liBr +-----END PGP PUBLIC KEY BLOCK----- diff --git a/python-fido2.spec b/python-fido2.spec index 2e57113..dcfa4dc 100644 --- a/python-fido2.spec +++ b/python-fido2.spec @@ -16,34 +16,28 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 Name: python-fido2 -Version: 0.9.3 +Version: 1.1.0 Release: 0 Summary: Python-based FIDO 2.0 library License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MPL-2.0 Group: Development/Languages/Python URL: https://github.com/Yubico/python-fido2 Source0: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz -Source1: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz.sig -# https://github.com/Yubico/python-fido2/issues/135 -Patch0: python-fido2-no-mock.patch -BuildRequires: %{python_module cryptography >= 1.5} +Source1: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz.asc +Source2: %{name}.keyring +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module cryptography >= 2.6} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1.0} BuildRequires: %{python_module pyfakefs >= 3.4} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-cryptography >= 1.5 +Requires: python-cryptography >= 2.6 Requires: python-six BuildArch: noarch -%if %{with python2} -BuildRequires: python2-enum34 -%endif -%ifpython2 -Requires: python2-enum34 -%endif %python_subpackages %description @@ -56,10 +50,10 @@ implement higher level device operations. %autosetup -p1 -n fido2-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check