From d6bd98d3eaa3e64545f7ccdbe05ec15505c097d9499407e928bcd75bd12fe9d6 Mon Sep 17 00:00:00 2001 From: Antoine Belvire Date: Sat, 11 Jul 2020 14:26:53 +0000 Subject: [PATCH] - Update to version 0.7.6: * Add ability to configure a fixed list of JWT access token keys, by passing them as an argument to `oauth.Client()` rather than fetching them at runtime from the server. * Fix verification of JWT access token `typ` header. * Fix verification of `scope` list obtained from a JWT access token. - Changes from version 0.7.5: * Add support for `reason` and `verification_method` keyword arguments to the `login` method. - Changes from version 0.7.4: * Perform more complete checking of the `state` parameter when authorizing an OAuth code. * When verifying OAuth access tokens, try to verify them locally as a JWT rather than passing them to the remote verification endpoint. - Add new dependency: PyJWT. - Update existing dependency: six >= 1.14. - Update list of excluded tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyFxA?expand=0&rev=18 --- PyFxA-0.7.3.tar.gz | 3 --- PyFxA-0.7.6.tar.gz | 3 +++ python-PyFxA.changes | 23 +++++++++++++++++++++++ python-PyFxA.spec | 20 +++++++++++++------- 4 files changed, 39 insertions(+), 10 deletions(-) delete mode 100644 PyFxA-0.7.3.tar.gz create mode 100644 PyFxA-0.7.6.tar.gz diff --git a/PyFxA-0.7.3.tar.gz b/PyFxA-0.7.3.tar.gz deleted file mode 100644 index 3fd53e5..0000000 --- a/PyFxA-0.7.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f47f4285629fa6c033c79adc3fb90926c0818a42cfddb04d32818547362f1627 -size 36859 diff --git a/PyFxA-0.7.6.tar.gz b/PyFxA-0.7.6.tar.gz new file mode 100644 index 0000000..c58fc52 --- /dev/null +++ b/PyFxA-0.7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:043883bdd4b5c53beecf3bcd8812712090298298e9bb1fe25c87493ca97808df +size 38806 diff --git a/python-PyFxA.changes b/python-PyFxA.changes index 41e6459..f92cf72 100644 --- a/python-PyFxA.changes +++ b/python-PyFxA.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Sat Jul 11 13:33:33 UTC 2020 - Antoine Belvire + +- Update to version 0.7.6: + * Add ability to configure a fixed list of JWT access token keys, + by passing them as an argument to `oauth.Client()` rather than + fetching them at runtime from the server. + * Fix verification of JWT access token `typ` header. + * Fix verification of `scope` list obtained from a JWT access + token. +- Changes from version 0.7.5: + * Add support for `reason` and `verification_method` keyword + arguments to the `login` method. +- Changes from version 0.7.4: + * Perform more complete checking of the `state` parameter when + authorizing an OAuth code. + * When verifying OAuth access tokens, try to verify them locally + as a JWT rather than passing them to the remote verification + endpoint. +- Add new dependency: PyJWT. +- Update existing dependency: six >= 1.14. +- Update list of excluded tests. + ------------------------------------------------------------------- Wed May 20 07:26:28 UTC 2020 - Petr Gajdos diff --git a/python-PyFxA.spec b/python-PyFxA.spec index 2ed4b18..4ce7a62 100644 --- a/python-PyFxA.spec +++ b/python-PyFxA.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyFxA -Version: 0.7.3 +Version: 0.7.6 Release: 0 Summary: Firefox Accounts client library for Python License: MPL-2.0 @@ -27,6 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/mozilla/PyFxA Source: https://files.pythonhosted.org/packages/source/P/PyFxA/PyFxA-%{version}.tar.gz BuildRequires: %{python_module PyBrowserID} +BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module hawkauthlib} BuildRequires: %{python_module mock} @@ -35,13 +36,13 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.4.2} BuildRequires: %{python_module responses} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module six >= 1.14} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyBrowserID Requires: python-cryptography Requires: python-requests >= 2.4.2 -Requires: python-six +Requires: python-six >= 1.14 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -56,8 +57,6 @@ This is python library for interacting with the Firefox Accounts ecosystem. %prep %setup -q -n PyFxA-%{version} sed -i -e '/^#!\/usr\/bin\/env python/d' fxa/__main__.py -# Remove online tests -rm -f fxa/tests/test_core.py find ./ -type f -exec chmod -x {} + %build @@ -69,8 +68,15 @@ find ./ -type f -exec chmod -x {} + %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# test_monkey_patch_for_gevent gevent no longer packaged as it is deprecated -%pytest -k 'not test_monkey_patch_for_gevent' fxa/tests/ +# Exclude tests which require network connection +includedTests='\ + not TestAuthClientAuthorizeToken and\ + not TestAuthClientVerifyCode and\ + not TestCachedClient and\ + not TestCoreClient and\ + not TestCoreClientSession and\ + not TestJwtToken' +%pytest -k "${includedTests}" fxa/tests/ %post %python_install_alternative fxa-client