From b90c3a8dd3214926f77385abc4e0e5c51f4564ab8ed06474e2d913ddce3911c4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 11 Mar 2022 09:26:09 +0000 Subject: [PATCH] Accepting request 960739 from home:pgajdos:python - do not use setup.py test construct https://trello.com/c/me9Z4sIv/121-setuppy-test-leftovers OBS-URL: https://build.opensuse.org/request/show/960739 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodome?expand=0&rev=46 --- python-pycryptodome.changes | 6 ++++++ python-pycryptodome.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-pycryptodome.changes b/python-pycryptodome.changes index f0eb354..11065d5 100644 --- a/python-pycryptodome.changes +++ b/python-pycryptodome.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 9 13:31:35 UTC 2022 - pgajdos@suse.com + +- do not use setup.py test construct + https://trello.com/c/me9Z4sIv/121-setuppy-test-leftovers + ------------------------------------------------------------------- Tue Feb 15 08:52:41 UTC 2022 - Dirk Müller diff --git a/python-pycryptodome.spec b/python-pycryptodome.spec index bf7c8be..49d959a 100644 --- a/python-pycryptodome.spec +++ b/python-pycryptodome.spec @@ -94,7 +94,9 @@ export LC_ALL=en_US.UTF-8 %check export LC_ALL=en_US.UTF-8 -%python_exec setup.py test +%{python_expand pushd %{buildroot}%{$python_sitearch} +PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m Crypto.SelfTest +popd} %files %{python_files} %license LICENSE.rst