forked from pool/python-social-auth-core
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-social-auth-core?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
1747bec5d2
commit
f0cd57542b
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 23 11:40:46 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 17 07:17:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Fri Apr 17 07:17:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-social-auth-core
|
Name: python-social-auth-core
|
||||||
Version: 3.3.3
|
Version: 3.3.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -48,7 +49,9 @@ BuildRequires: %{python_module six >= 1.10.0}
|
|||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with python2}
|
||||||
BuildRequires: python2-python-openid >= 2.2.5
|
BuildRequires: python2-python-openid >= 2.2.5
|
||||||
|
%endif
|
||||||
BuildRequires: python3-defusedxml >= 0.5.0
|
BuildRequires: python3-defusedxml >= 0.5.0
|
||||||
BuildRequires: python3-python3-openid >= 3.0.10
|
BuildRequires: python3-python3-openid >= 3.0.10
|
||||||
Requires: python-PyJWT >= 1.4.0
|
Requires: python-PyJWT >= 1.4.0
|
||||||
@@ -94,7 +97,7 @@ cp %{SOURCE1} social_core/tests/backends/data/
|
|||||||
%check
|
%check
|
||||||
# python3 only: assertRaisesRegexp -> assertRaisesRegex
|
# python3 only: assertRaisesRegexp -> assertRaisesRegex
|
||||||
# skipped tests are online based
|
# 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)'
|
python3 -m pytest -v -k 'not (test_login or test_partial_pipeline)'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
Reference in New Issue
Block a user