From a8d0f4e3f3ecf174b0f8bf6dc21e75a4ae07d89dc0a75e5b33ff6945f48a7c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 14 Jun 2022 12:26:54 +0000 Subject: [PATCH] Accepting request 982447 from home:bnavigator:branches:devel:languages:python - Update to 4.3.0 * Add backend for Hashicorp Vault OIDC backend * Add generic OpenID Connect backend * Add Grafana OAuth2 backend * Add MusicBrainz OAuth2 backend * Fixed redirect state for Keycloak backend * Add fallback to RSA256 in OpenID Connect when alg is not set * Fixed Azure backend so it can be used with all Azure authority hosts - Don't test extra saml for which the distro does not have the right packages OBS-URL: https://build.opensuse.org/request/show/982447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-social-auth-core?expand=0&rev=33 --- python-social-auth-core.changes | 15 +++++++++++++ python-social-auth-core.spec | 40 ++++++++++++++++++++------------- social-core-4.2.0.tar.gz | 3 --- social-core-4.3.0.tar.gz | 3 +++ 4 files changed, 42 insertions(+), 19 deletions(-) delete mode 100644 social-core-4.2.0.tar.gz create mode 100644 social-core-4.3.0.tar.gz diff --git a/python-social-auth-core.changes b/python-social-auth-core.changes index f0e49be..4d31a0e 100644 --- a/python-social-auth-core.changes +++ b/python-social-auth-core.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Mon Jun 13 10:44:07 UTC 2022 - Ben Greiner + +- Update to 4.3.0 + * Add backend for Hashicorp Vault OIDC backend + * Add generic OpenID Connect backend + * Add Grafana OAuth2 backend + * Add MusicBrainz OAuth2 backend + * Fixed redirect state for Keycloak backend + * Add fallback to RSA256 in OpenID Connect when alg is not set + * Fixed Azure backend so it can be used with all Azure authority + hosts +- Don't test extra saml for which the distro does not have the right + packages + ------------------------------------------------------------------- Wed Apr 20 09:49:25 UTC 2022 - pgajdos@suse.com diff --git a/python-social-auth-core.spec b/python-social-auth-core.spec index ba92e0a..913cfdf 100644 --- a/python-social-auth-core.spec +++ b/python-social-auth-core.spec @@ -17,42 +17,49 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define modname social-core +# saml is optional: packages in TW and Leap not compatible +%bcond_with saml + Name: python-social-auth-core -Version: 4.2.0 +Version: 4.3.0 Release: 0 Summary: Python Social Auth Core License: BSD-3-Clause URL: https://github.com/python-social-auth/social-core Source: https://github.com/python-social-auth/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz BuildRequires: %{python_module PyJWT >= 2.0.0} -BuildRequires: %{python_module coverage >= 3.6} BuildRequires: %{python_module cryptography >= 2.1.1} BuildRequires: %{python_module defusedxml >= 0.5.0} -BuildRequires: %{python_module httpretty} BuildRequires: %{python_module oauthlib >= 1.0.3} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-jose >= 3.0.0} BuildRequires: %{python_module python3-openid >= 3.0.10} -BuildRequires: %{python_module python3-saml >= 1.2.1} BuildRequires: %{python_module requests >= 2.9.1} BuildRequires: %{python_module requests-oauthlib >= 0.6.1} BuildRequires: %{python_module setuptools} BuildRequires: ca-certificates BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module httpretty >= 0.9.6} +#/SECTION +# SECTION optional requirements for tests +BuildRequires: %{python_module python-jose >= 3.0.0} +%if %{with saml} +BuildRequires: %{python_module lxml < 4.7} +BuildRequires: %{python_module python3-saml >= 1.2.1} +%endif +#/SECTION Requires: python-PyJWT >= 2.0.0 Requires: python-cryptography >= 2.1.1 +Requires: python-defusedxml >= 0.5.0 Requires: python-oauthlib >= 1.0.3 -Requires: python-python-jose >= 3.0.0 +Requires: python-python3-openid >= 3.0.10 Requires: python-requests >= 2.9.1 Requires: python-requests-oauthlib >= 0.6.1 +Recommends: python-python-jose >= 3.0.0 BuildArch: noarch -Requires: python-defusedxml >= 0.5.0 -Requires: python-python3-openid >= 3.0.10 -Recommends: python-python3-saml >= 1.2.1 %python_subpackages %description @@ -75,14 +82,15 @@ storage solutions. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# python3 only: assertRaisesRegexp -> assertRaisesRegex -# skipped tests are online based -rm -rf _build.python2 -%pytest -k 'not (test_login or test_partial_pipeline)' +%if !%{with saml} +donttest+=" or test_saml" +%endif +%pytest -k "not (dummyprefix $donttest)" %files %{python_files} %doc CHANGELOG.md README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/social_core +%{python_sitelib}/social_auth_core-%{version}*-info %changelog diff --git a/social-core-4.2.0.tar.gz b/social-core-4.2.0.tar.gz deleted file mode 100644 index f8206d1..0000000 --- a/social-core-4.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c192943c738bb97a9fb679c4edc71c6ac8355509d60c6084bb4c844814fb8a1f -size 193508 diff --git a/social-core-4.3.0.tar.gz b/social-core-4.3.0.tar.gz new file mode 100644 index 0000000..07045c9 --- /dev/null +++ b/social-core-4.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baf792268f4a928cd5f02bd538e7b6f80af493411e1ea223f0a98d50dd894d03 +size 195616