From 68549c21a692e8e0b3fd6cb4311c5cccf2c0678be2c56173e6aa40962d06da1c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 13 Jan 2021 08:17:07 +0000 Subject: [PATCH] - Dr. Strangelove or: How I Learned to Stop Worrying and Love pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=94 --- python-M2Crypto.changes | 5 +++++ python-M2Crypto.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index 57668ad..89abf6c 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 13 08:16:04 UTC 2021 - Matej Cepl + +- Dr. Strangelove or: How I Learned to Stop Worrying and Love pytest + ------------------------------------------------------------------- Tue Dec 8 17:58:23 UTC 2020 - Matej Cepl diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index 4561a41..9857fa7 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -1,7 +1,7 @@ # # spec file for package python-M2Crypto # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ URL: https://gitlab.com/m2crypto/m2crypto Source: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module parameterized} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing} BuildRequires: %{python_module xml} @@ -89,9 +90,8 @@ export CFLAGS="%{optflags}" %check %python_expand ls -l %{buildroot}%{$python_sitearch}/M2Crypto/*.so* -# gh#pypa/setuptools#2476 -# %%pyunittest_arch discover -v -s tests -%python_exec setup.py test +export PYTEST_ADDOPTS="--import-mode=append" +%pytest_arch tests %files %{python_files} %doc CHANGES LICENCE README.rst