public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Antonio Trande <sagitter@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/petsc] main: Avoid AssertionError with Python-3.15
Date: Tue, 23 Jun 2026 13:37:45 GMT	[thread overview]
Message-ID: <178222186547.1.16204840575398125257.rpms-petsc-0bda5bda29ce@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/petsc
Branch : main
Commit : 0bda5bda29cefee638b7e6b3d5dcdce41da494f0
Author : Antonio Trande <sagitter@fedoraproject.org>
Date   : 2026-06-23T15:37:31+02:00
Stats  : +8/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/petsc/c/0bda5bda29cefee638b7e6b3d5dcdce41da494f0?branch=main

Log:
Avoid AssertionError with Python-3.15

---
diff --git a/petsc.spec b/petsc.spec
index df434b6..97e3744 100644
--- a/petsc.spec
+++ b/petsc.spec
@@ -592,6 +592,12 @@ for i in `find . -name 'setup.py' -o -name 'configure' -o -name '*.py'`; do
 %py3_shebang_fix $i
 done
 %endif
+
+# Avoid AssertionError with Python-3.15*
+# See https://gitlab.com/petsc/petsc/-/work_items/1902
+%if 0%{?python3_version_nodots} > 313
+sed -n '325d' %{name}-%{version}/src/binding/petsc4py/test/test_mat_py.py
+%endif
 %endif
 
 pushd %{name}-%{version}
@@ -1011,7 +1017,7 @@ export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
 export MPIEXEC=lib/petsc/bin/petscmpiexec
 export PMIX_MCA_gds=hash
 export PMIX_MCA_psec=native
-make V=1 petsc4pytest PETSC4PY_NP=2 --exclude=test_mat_py
+make V=1 petsc4pytest PETSC4PY_NP=2
 unset PETSC_ARCH
 unset PETSC_DIR
 %{_openmpi_unload}
@@ -1064,7 +1070,7 @@ export MPIEXEC=lib/petsc/bin/petscmpiexec
 export PMIX_MCA_gds=hash
 export PMIX_MCA_psec=native
 # petsc4py test fails with MPICH
-make V=1 petsc4pytest PETSC4PY_NP=2 --exclude=test_mat_py
+make V=1 petsc4pytest PETSC4PY_NP=2
 unset PETSC_ARCH
 unset PETSC_DIR
 %{_mpich_unload}

                 reply	other threads:[~2026-06-23 13:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178222186547.1.16204840575398125257.rpms-petsc-0bda5bda29ce@fedoraproject.org \
    --to=sagitter@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox