From 12997f2c46514cb67d0b2cba34457da5e6373060cc6a6154f9f559305d24993b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 11 Mar 2022 09:25:43 +0000 Subject: [PATCH] Accepting request 960735 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/960735 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodomex?expand=0&rev=27 --- python-pycryptodomex.changes | 6 ++++++ python-pycryptodomex.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-pycryptodomex.changes b/python-pycryptodomex.changes index 022ff16..b19d4bd 100644 --- a/python-pycryptodomex.changes +++ b/python-pycryptodomex.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 9 13:23:31 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-pycryptodomex.spec b/python-pycryptodomex.spec index a6ed338..d6dc8de 100644 --- a/python-pycryptodomex.spec +++ b/python-pycryptodomex.spec @@ -90,7 +90,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 Cryptodome.SelfTest +popd} %files %{python_files} %license LICENSE.rst