diff --git a/python-social-auth-core.changes b/python-social-auth-core.changes index 3f65690..69d1e8a 100644 --- a/python-social-auth-core.changes +++ b/python-social-auth-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 11:40:46 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Apr 17 07:17:50 UTC 2020 - Tomáš Chvátal diff --git a/python-social-auth-core.spec b/python-social-auth-core.spec index ddfe1b4..8c72b2c 100644 --- a/python-social-auth-core.spec +++ b/python-social-auth-core.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-social-auth-core Version: 3.3.3 Release: 0 @@ -48,7 +49,9 @@ BuildRequires: %{python_module six >= 1.10.0} BuildRequires: ca-certificates BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with python2} BuildRequires: python2-python-openid >= 2.2.5 +%endif BuildRequires: python3-defusedxml >= 0.5.0 BuildRequires: python3-python3-openid >= 3.0.10 Requires: python-PyJWT >= 1.4.0 @@ -94,7 +97,7 @@ cp %{SOURCE1} social_core/tests/backends/data/ %check # python3 only: assertRaisesRegexp -> assertRaisesRegex # skipped tests are online based -rm -r _build.python2 +rm -rf _build.python2 python3 -m pytest -v -k 'not (test_login or test_partial_pipeline)' %files %{python_files}