diff --git a/_multibuild b/_multibuild
index 73ab5e8..8cf2769 100644
--- a/_multibuild
+++ b/_multibuild
@@ -1,5 +1,5 @@
- test-py38
test-py39
test-py310
+ test-py311
diff --git a/python-pythran.changes b/python-pythran.changes
index 9df2350..aa7cced 100644
--- a/python-pythran.changes
+++ b/python-pythran.changes
@@ -1,3 +1,25 @@
+-------------------------------------------------------------------
+Mon May 15 15:19:41 UTC 2023 - Dirk Müller
+
+- update to 0.13.1:
+ * Bump xsimd dependency to 11.0.0, with a backported patch.
+ * Improve performance of functions revieving scalar arguments.
+ This changes the internal function call API.
+ * Improve performance of fix-stride slicing, using a new slice
+ representation.
+ * Improve numpy.copyto performance, and detect copyto pattern usage.
+ * Force internal linkage of generated functions, which gives more
+ optimization room to the C++ compiler.
+ * Provide entry points pythran.import_pythrancode and
+ pythran.import_pythranfile, as a poor man JIT option.
+ * Optimize numpy.argmax(cst * val) into numpy.argmax(val) when cst is
+ positive.
+ * Avoid copies upon numpy.array_split
+ * 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 fc18da0..ca1a173 100644
--- a/python-pythran.spec
+++ b/python-pythran.spec
@@ -17,35 +17,35 @@
%global flavor @BUILD_FLAVOR@%{nil}
-%if "%{flavor}" == "test-py38"
-%define psuffix -test-py38
-%define skip_python39 1
-%define skip_python310 1
-%bcond_without test
-ExclusiveArch: x86_64
-%endif
%if "%{flavor}" == "test-py39"
%define psuffix -test-py39
%define skip_python38 1
%define skip_python310 1
-%bcond_without test
-ExclusiveArch: x86_64
+%define skip_python311 1
%endif
%if "%{flavor}" == "test-py310"
%define psuffix -test-py310
%define skip_python38 1
%define skip_python39 1
-%bcond_without test
-ExclusiveArch: x86_64
+%define skip_python311 1
+%endif
+%if "%{flavor}" == "test-py311"
+%define psuffix -test-py311
+%define skip_python38 1
+%define skip_python39 1
+%define skip_python310 1
%endif
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
+%else
+%bcond_without test
+ExclusiveArch: x86_64
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-pythran%{psuffix}
-Version: 0.12.1
+Version: 0.13.1
Release: 0
Summary: Ahead of Time compiler for numeric kernels
License: BSD-3-Clause
@@ -129,7 +129,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}
diff --git a/pythran-0.12.1-gh.tar.gz b/pythran-0.12.1-gh.tar.gz
deleted file mode 100644
index 61a4486..0000000
--- a/pythran-0.12.1-gh.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6aef4ca34eb4823c25aa52a8b8a6467a6b6f163bb52d9db8f1e20a2d62fc7e93
-size 3631063
diff --git a/pythran-0.13.1-gh.tar.gz b/pythran-0.13.1-gh.tar.gz
new file mode 100644
index 0000000..135e785
--- /dev/null
+++ b/pythran-0.13.1-gh.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0328a848bfa5aead55449c0b7de42cebb88ad8c1a3db9d2e3e6a56194b995599
+size 3639196