14
0

Accepting request 811893 from home:mcalabkova:branches:devel:languages:python

OK, now it works somehow...

- replace nose (and launch tests)

OBS-URL: https://build.opensuse.org/request/show/811893
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python3-openid?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2020-06-08 06:44:25 +00:00
committed by Git OBS Bridge
parent 45b0ea1d0b
commit caf7a2ce4e
2 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python3-openid
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
# tests are partly broken
%bcond_with tests
%bcond_without test
Name: python-python3-openid
Version: 3.1.0
Release: 0
Summary: OpenID support for modern servers and consumers
License: Apache-2.0
Group: Development/Languages/Python
URL: http://github.com/necaris/python3-openid
URL: https://github.com/necaris/python3-openid
Source: https://files.pythonhosted.org/packages/source/p/python3-openid/python3-openid-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -34,8 +34,10 @@ BuildRequires: python-rpm-macros
Requires: python-defusedxml
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Django}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module mysqlclient}
BuildRequires: %{python_module psycopg2}
%endif
%python_subpackages
@@ -58,7 +60,7 @@ Includes example code and support for a variety of storage back-ends.
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix} --where=openid/test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest openid.test.test_suite
%endif
%files %{python_files}