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