From 87c1f754dea05d456cab654b51dfc821a11bdf6f61a064e27a547f4a607913a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 17 Aug 2020 06:16:40 +0000 Subject: [PATCH] Accepting request 827110 from home:jayvdb:py-submit Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827110 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-signedjson?expand=0&rev=14 --- python-signedjson.changes | 5 +++++ python-signedjson.spec | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/python-signedjson.changes b/python-signedjson.changes index 4842b60..6a5d92a 100644 --- a/python-signedjson.changes +++ b/python-signedjson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Aug 16 20:48:03 UTC 2020 - John Vandenberg + +- Replace nose with pytest + ------------------------------------------------------------------- Wed Apr 15 13:50:16 UTC 2020 - Marketa Calabkova diff --git a/python-signedjson.spec b/python-signedjson.spec index 49095af..ebee37a 100644 --- a/python-signedjson.spec +++ b/python-signedjson.spec @@ -28,13 +28,7 @@ Group: Development/Languages/Python URL: https://github.com/matrix-org/%{name} Source0: https://files.pythonhosted.org/packages/source/s/signedjson/%{modname}-%{version}.tar.gz Patch0: no-importlib-on-py38.patch -BuildRequires: %{python_module PyNaCl >= 0.3.0} -BuildRequires: %{python_module canonicaljson >= 1.0.0} -BuildRequires: %{python_module importlib-metadata} -BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module typing_extensions >= 3.5} -BuildRequires: %{python_module unpaddedbase64 >= 1.0.1} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyNaCl >= 0.3.0 @@ -43,6 +37,14 @@ Requires: python-importlib-metadata Requires: python-typing_extensions >= 3.5 Requires: python-unpaddedbase64 >= 1.0.1 BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module PyNaCl >= 0.3.0} +BuildRequires: %{python_module canonicaljson >= 1.0.0} +BuildRequires: %{python_module importlib-metadata} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing_extensions >= 3.5} +BuildRequires: %{python_module unpaddedbase64 >= 1.0.1} +# /SECTION %if %{with python2} BuildRequires: python2-typing >= 3.5 %endif @@ -69,10 +71,10 @@ Features: %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand nosetests-%{$python_bin_suffix} +%pytest %files %{python_files} %license LICENSE