- 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
This commit is contained in:
Matej Cepl 2021-01-13 08:17:07 +00:00 committed by Git OBS Bridge
parent 95872560fe
commit 68549c21a6
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 13 08:16:04 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Dr. Strangelove or: How I Learned to Stop Worrying and Love pytest
-------------------------------------------------------------------
Tue Dec 8 17:58:23 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -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