From 5a68ea8fbe2e1acb88e039ca60b7d1e27820d9215fa661ece7dab627da70a98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 31 Mar 2020 07:05:27 +0000 Subject: [PATCH 1/3] Accepting request 789797 from home:polslinux:branches:devel:languages:python - Use pytest instead of nose OBS-URL: https://build.opensuse.org/request/show/789797 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cytoolz?expand=0&rev=7 --- python-cytoolz.changes | 5 +++++ python-cytoolz.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-cytoolz.changes b/python-cytoolz.changes index 2e171c1..aba0faf 100644 --- a/python-cytoolz.changes +++ b/python-cytoolz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 30 14:32:52 UTC 2020 - Paolo Stivanin + +- Use pytest instead of nose + ------------------------------------------------------------------- Fri Nov 8 18:10:49 UTC 2019 - marec@detebe.org diff --git a/python-cytoolz.spec b/python-cytoolz.spec index 7b51bfb..530fd01 100644 --- a/python-cytoolz.spec +++ b/python-cytoolz.spec @@ -1,7 +1,7 @@ # # spec file for package python-cytoolz # -# Copyright (c) 2019 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 @@ -23,10 +23,10 @@ Release: 0 Summary: High performance python functional utilities in Cython License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/pytoolz/cytoolz +URL: https://github.com/pytoolz/cytoolz Source: https://files.pythonhosted.org/packages/source/c/cytoolz/cytoolz-%{version}.tar.gz BuildRequires: %{python_module devel} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toolz} BuildRequires: fdupes @@ -52,7 +52,7 @@ export CFLAGS="%{optflags}" %check %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} - $python setup.py nosetests --with-coverage -vvv + %pytest %{buildroot}%{$python_sitearch}/cytoolz } %files %{python_files} From 5cfad4aaf6be019c9a437c1dd6b2687d9a1983491b2f3d68a6630f9244ed4c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 31 Mar 2020 07:08:39 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cytoolz?expand=0&rev=8 --- python-cytoolz.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-cytoolz.spec b/python-cytoolz.spec index 530fd01..fbe7d4a 100644 --- a/python-cytoolz.spec +++ b/python-cytoolz.spec @@ -22,7 +22,6 @@ Version: 0.10.1 Release: 0 Summary: High performance python functional utilities in Cython License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/pytoolz/cytoolz Source: https://files.pythonhosted.org/packages/source/c/cytoolz/cytoolz-%{version}.tar.gz BuildRequires: %{python_module devel} @@ -48,15 +47,16 @@ export CFLAGS="%{optflags}" %install %python_install +%python_expand rm -r %{buildroot}%{$python_sitearch}/cytoolz/tests %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} - %pytest %{buildroot}%{$python_sitearch}/cytoolz -} +mkdir testing +pushd testing +%pytest_arch ../cytoolz/tests +popd %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE.txt %{python_sitearch}/cytoolz/ From 74bec26c724efe49c36d4c0fe87f246514314a4dd0bfa573cd8b8295b0a10fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 31 Mar 2020 07:09:08 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cytoolz?expand=0&rev=9 --- python-cytoolz.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-cytoolz.spec b/python-cytoolz.spec index fbe7d4a..504be58 100644 --- a/python-cytoolz.spec +++ b/python-cytoolz.spec @@ -53,6 +53,7 @@ export CFLAGS="%{optflags}" %check mkdir testing pushd testing +export PYTHONDONTWRITEBYTECODE=1 %pytest_arch ../cytoolz/tests popd