From 1d82aa061b291dfaed49921aa581d290bc9a2cd6fb34e541b4e9c00b790e8439 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 11 Mar 2022 09:26:36 +0000 Subject: [PATCH] Accepting request 960740 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/960740 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=45 --- python-PyYAML.changes | 6 ++++++ python-PyYAML.spec | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-PyYAML.changes b/python-PyYAML.changes index 08c8ec9..e22b133 100644 --- a/python-PyYAML.changes +++ b/python-PyYAML.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 9 12:51:17 UTC 2022 - pgajdos@suse.com + +- do not use setup.py test construct + https://trello.com/c/me9Z4sIv/121-setuppy-test-leftovers + ------------------------------------------------------------------- Mon Nov 1 20:36:13 UTC 2021 - Tina Müller diff --git a/python-PyYAML.spec b/python-PyYAML.spec index 37338b6..7915a1c 100644 --- a/python-PyYAML.spec +++ b/python-PyYAML.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyYAML # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -68,7 +68,7 @@ find examples/ -type f | xargs chmod a-x %ifarch ppc ppc64 s390 s390x ulimit -Sn 2048 %endif -%python_exec setup.py test +%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/lib/test_all.py} %files %{python_files} %license LICENSE