From 4dcbfd8a48189f75ffdce798ff77597d1e49dff144200240207c77c9c36f6cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 3 Jun 2020 12:56:22 +0000 Subject: [PATCH] Accepting request 811106 from home:mcalabkova:branches:devel:languages:python - replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/811106 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlitedict?expand=0&rev=13 --- python-sqlitedict.changes | 5 +++++ python-sqlitedict.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-sqlitedict.changes b/python-sqlitedict.changes index 00fc2ee..07c632e 100644 --- a/python-sqlitedict.changes +++ b/python-sqlitedict.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 3 09:28:59 UTC 2020 - Marketa Calabkova + +- replace nose with pytest + ------------------------------------------------------------------- Wed Dec 11 08:05:54 UTC 2019 - Tomáš Chvátal diff --git a/python-sqlitedict.spec b/python-sqlitedict.spec index 64d9ca5..484004b 100644 --- a/python-sqlitedict.spec +++ b/python-sqlitedict.spec @@ -1,7 +1,7 @@ # # spec file for package python-sqlitedict # -# Copyright (c) 2019 SUSE LLC +# 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 @@ -24,7 +24,7 @@ Summary: Persistent dict in Python backed by sqlite3 License: Apache-2.0 URL: https://github.com/piskvorky/sqlitedict Source: https://files.pythonhosted.org/packages/source/s/sqlitedict/sqlitedict-%{version}.tar.gz -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{pythons} BuildRequires: fdupes @@ -52,7 +52,7 @@ sed -i -e '/^#!\//, 1d' sqlitedict.py %{python_expand # db needs to be regenerated rm -rf tests/db mkdir -p tests/db -nosetests-%{$python_bin_suffix} -v +PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} } %files %{python_files}