From cbb6e21bc1383e24f5073f9f2530af40effb3ce7b8b58dbe73de3b452f18547e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 15:49:14 +0000 Subject: [PATCH] - fix the test-flavor splitting for python311 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=20 --- python-pythran.changes | 1 + python-pythran.spec | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/python-pythran.changes b/python-pythran.changes index 546b964..aa7cced 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -18,6 +18,7 @@ Mon May 15 15:19:41 UTC 2023 - Dirk Müller * Get rid of unused functions C++ warnings * Avoid generating a loop footer when the loop index is not used outside of the loop. +- fix the test-flavor splitting for python311 ------------------------------------------------------------------- Wed Jan 25 10:22:53 UTC 2023 - Dirk Müller diff --git a/python-pythran.spec b/python-pythran.spec index 9be9672..ff7489b 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -21,6 +21,7 @@ %define psuffix -test-py38 %define skip_python39 1 %define skip_python310 1 +%define skip_python311 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -28,6 +29,7 @@ ExclusiveArch: x86_64 %define psuffix -test-py39 %define skip_python38 1 %define skip_python310 1 +%define skip_python311 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -35,6 +37,15 @@ ExclusiveArch: x86_64 %define psuffix -test-py310 %define skip_python38 1 %define skip_python39 1 +%define skip_python311 1 +%bcond_without test +ExclusiveArch: x86_64 +%endif +%if "%{flavor}" == "test-py311" +%define psuffix -test-py311 +%define skip_python38 1 +%define skip_python39 1 +%define skip_python310 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -129,7 +140,7 @@ export CFLAGS="%{optflags}" donttest="test_operator_intersection" # gh#serge-sans-paille/pythran#2044 NOT FIXED by gh#serge-sans-paille/pythran#2046 donttest="$donttest or test_toolchain or test_cli" -%pytest -n auto -k "not ($donttest)" -m "not module" +%pytest %{?jobs:-n %jobs} -k "not ($donttest)" -m "not module" %endif %if !%{with test}