diff --git a/2046-fix-cli-doc-test.patch b/2046-fix-cli-doc-test.patch deleted file mode 100644 index 1e11feb..0000000 --- a/2046-fix-cli-doc-test.patch +++ /dev/null @@ -1,30 +0,0 @@ -From c6bc9aa1e0dcc0a94fe9bd1c938a180c46ca60f2 Mon Sep 17 00:00:00 2001 -From: serge-sans-paille -Date: Fri, 25 Nov 2022 22:12:55 +0100 -Subject: [PATCH] Fix cli doc test - -Should fix #2044, I don't understand why this was validating before ---- - docs/CLI.rst | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) - ---- a/docs/CLI.rst -+++ b/docs/CLI.rst -@@ -64,11 +64,12 @@ That's some heavily templated code ;-) P - - Pythran can also generate raw C++ code, using the ``-e`` switch:: - -- $> printf 'msg = \"hello world\"\ndef foo(): print(msg)' > cli_foo.py -- $> pythran -e cli_foo.py -o cli_foo.hpp -- $> printf '#include \"cli_foo.hpp\"\nusing namespace __pythran_cli_foo ; int main() { foo()(); return 0 ; }' > cli_foo.cpp -- $> `pythran-config --compiler --cflags` -std=c++11 cli_foo.cpp -o cli_foo -- $> ./cli_foo -+ $> printf 'msg = \"hello world\"\ndef bar(): print(msg)' > cli_bar.py -+ $> pythran -e cli_bar.py -o cli_bar.hpp -+ No pythran specification, nothing will be exported -+ $> printf '#include \"cli_bar.hpp\"\nusing namespace __pythran_cli_bar ; int main() { bar()(); return 0 ; }' > cli_bar.cpp -+ $> `pythran-config --compiler --cflags` -std=c++11 cli_bar.cpp -o cli_bar -+ $> ./cli_bar - hello world - - To know more options about Pythran, you can check:: diff --git a/python-pythran.changes b/python-pythran.changes index ff10fe4..0c120c2 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 25 11:01:09 UTC 2022 - Ben Greiner + +- Revert. 2046-fix-cli-doc-test.patch did not fix the tests. + gh#serge-sans-paille/pythran#2046 + ------------------------------------------------------------------- Sat Dec 17 14:32:56 UTC 2022 - Matej Cepl diff --git a/python-pythran.spec b/python-pythran.spec index 5589e20..974f8db 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -53,8 +53,6 @@ URL: https://github.com/serge-sans-paille/pythran # Tests are only availble in github archive Source0: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz Source99: python-pythran-rpmlintrc -# PATCH-FIX-UPSTREAM 2046-fix-cli-doc-test.patch gh#serge-sans-paille/pythran#2044 mcepl@suse.com -Patch0: 2046-fix-cli-doc-test.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -129,6 +127,8 @@ sed -i -e 's/-O0/-O1/g' -e 's/-Werror/-w/g' pythran/tests/__init__.py export CFLAGS="%{optflags}" # crashes the xdist workers 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" %endif