void-packages/srcpkgs/sagemath/patches/get_patches
Gonzalo Tornaría b34d0bbd28 sagemath: rebuild for singular update
Also fix doctests for pkg updates:
 - matplotlib 3.7
 - ipython 8.12
 - nauty 2.8.6
 - pythran 0.12.1

And add support for:
 - networkx 3.1

We use patches from upstream sagemath to fix all of these.

We also add pythran and sphinx to checkdepends to make sure doctests
pass when they are installed.
2023-05-01 00:15:47 +02:00

63 lines
1.4 KiB
Bash
Executable file

#! /bin/sh
URL_BASE_PR="https://github.com/sagemath/sage/pull/"
URL_BASE_COMPARE="https://github.com/sagemath/sage/compare/9.8..."
case "$1" in
-n) DO=echo ;;
esac
# get_pr <PR number> <description> [ext]
get_pr() {
pr=$1
desc=$(echo "$2" | sed -e 's/ /_/g')
ext=${3-diff}
$DO wget "$URL_BASE_PR$pr.$ext" -O "$pr-$desc.patch"
}
get_trac() {
ticket=$1
desc=$(echo "$2" | sed -e 's/ /_/g')
commit=$3
$DO wget "$URL_BASE_COMPARE$commit.diff" -O "$ticket-$desc-$commit.patch"
}
# run from patches dir
cd $(dirname "$0")
# merged in 10.0.beta0
get_trac 34851 "support singular 4.3.1.p3" 5e5737a0c
get_pr 35068 "fix tests giac 1.9.0.35" patch
# merged in 10.0.beta1
get_pr 35058 "skip unstable tests klyachko"
# merged in 10.0.beta2
get_pr 34994 "fix tests numpy 1.24"
get_pr 34997 "fix edge case of integer_check"
# merged in 10.0.beta3
get_pr 34995 "support tachyon 0.99.2"
# merged in 10.0.beta4
get_pr 34980 "avoid factoring in is_prime"
# merged in 10.0.beta5
get_pr 35094 "support gap 4.12" # includes PR 35093
# merged in 10.0.beta6
get_pr 35127 "fix very slow test stream.py"
get_pr 35177 "matplotlib 3.7"
get_pr 35195 "workaround ecl race"
get_pr 35204 "fix sage-cleaner"
# merged in 10.0.beta7
get_pr 35250 "nauty 2.8.6"
# merged in 10.0.beta8
#get_pr 35337 "ipython 8.11"
get_pr 35423 "ipython 8.12" # includes PR 35337
get_pr 35438 "pythran 0.12.1"
# needs review
get_pr 35584 "networkx 3.1"