forked from pool/python-social-auth-core
Accepting request 693027 from home:jayvdb:django
- Remove build dependency on unittest2, as this was also a missing runtime dependency on both Python 2 and 3 as the tests are distributed in the runtime package, and are used by the test suite of other packages. - Suggest python3-saml dependency for both Python 2 & 3, and activate the SAML tests, adding missing saml_config.json for tests. Not recommended due to dependency chain including libxmlsec, which at the moment is unsupported v1.2.20 - Add README.md to %doc OBS-URL: https://build.opensuse.org/request/show/693027 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-social-auth-core?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
ebe7992e43
commit
1c2599c964
@@ -26,6 +26,9 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/python-social-auth/social-core
|
||||
Source: https://files.pythonhosted.org/packages/source/s/social-auth-core/social-auth-core-%{version}.tar.gz
|
||||
# Missing test data https://github.com/python-social-auth/social-core/pull/351
|
||||
Source1: https://raw.githubusercontent.com/python-social-auth/social-core/master/social_core/tests/backends/data/saml_config.json
|
||||
Patch0: remove-unittest2.patch
|
||||
BuildRequires: %{python_module PyJWT >= 1.4.0}
|
||||
BuildRequires: %{python_module coverage >= 3.6}
|
||||
BuildRequires: %{python_module cryptography >= 2.1.1}
|
||||
@@ -34,12 +37,12 @@ BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose >= 1.2.1}
|
||||
BuildRequires: %{python_module oauthlib >= 1.0.3}
|
||||
BuildRequires: %{python_module python-jose >= 3.0.0}
|
||||
BuildRequires: %{python_module python3-saml}
|
||||
BuildRequires: %{python_module rednose >= 0.4.1}
|
||||
BuildRequires: %{python_module requests >= 2.9.1}
|
||||
BuildRequires: %{python_module requests-oauthlib >= 0.6.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six >= 1.10.0}
|
||||
BuildRequires: %{python_module unittest2}
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -54,6 +57,7 @@ Requires: python-python-jose >= 3.0.0
|
||||
Requires: python-requests >= 2.9.1
|
||||
Requires: python-requests-oauthlib >= 0.6.1
|
||||
Requires: python-six >= 1.10.0
|
||||
Suggests: python-python3-saml
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python2-python-openid >= 2.2.5
|
||||
@@ -76,6 +80,8 @@ storage solutions.
|
||||
|
||||
%prep
|
||||
%setup -q -n social-auth-core-%{version}
|
||||
%patch0 -p1
|
||||
cp %{SOURCE1} social_core/tests/backends/data/
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -85,10 +91,10 @@ storage solutions.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand %{_bindir}/nosetests-%{$python_bin_suffix} --ignore-files test_saml.py
|
||||
%python_expand %{_bindir}/nosetests-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
Reference in New Issue
Block a user