[arch-commits] Commit in sagemath/trunk (PKGBUILD sagemath-jedi-0.16.patch)
Antonio Rojas
arojas at archlinux.org
Thu Mar 26 13:41:56 UTC 2020
Date: Thursday, March 26, 2020 @ 13:41:56
Author: arojas
Revision: 604450
Fix deprecation warnings with jedi 0.16
Added:
sagemath/trunk/sagemath-jedi-0.16.patch
Modified:
sagemath/trunk/PKGBUILD
--------------------------+
PKGBUILD | 10 +++++++---
sagemath-jedi-0.16.patch | 13 +++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-26 13:33:07 UTC (rev 604449)
+++ PKGBUILD 2020-03-26 13:41:56 UTC (rev 604450)
@@ -8,7 +8,7 @@
pkgbase=sagemath
pkgname=(sagemath sagemath-jupyter)
pkgver=9.0
-pkgrel=11
+pkgrel=12
pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab"
arch=(x86_64)
url="http://www.sagemath.org"
@@ -43,7 +43,8 @@
sagemath-ipython7.patch
sagemath-rpy-3.patch
sagemath-python-3.8.patch
- sagemath-gap-4.11.patch)
+ sagemath-gap-4.11.patch
+ sagemath-jedi-0.16.patch)
sha256sums=('6f5d42b306a2c03073dd95086f80602bd1a0b929b8ad19c6d219c8ca8e96da26'
'496da0fa42cdfc92b43f5d85610bb462ca9bdc2f4d80fd316e8e9d068dba3b0b'
'6a5470d7044a50a35a6478f57c19adf72fe54aefebeea8a095915b63f9e219ac'
@@ -54,7 +55,8 @@
'7821813d3f104566ca6487de9857acf2bc7fc236a48a77000f04f2dc17b75536'
'9062b412595e81a5ca560a5ae789f8b7318981689cb8d076b30d8c54a4fc4495'
'd430e76c5cdebed9bd1cde0f05e74fba620c736c68c018d70d84dc7b3e3c9049'
- '7123af05c79f76b94c89aa97da13dd1c1a796cdf10a9486e0974c88054eb3037')
+ '7123af05c79f76b94c89aa97da13dd1c1a796cdf10a9486e0974c88054eb3037'
+ 'efb5e8b314b0c29eca79f29d70cd302ef9565813fd331a9f1ecb4ac70f416f94')
prepare(){
cd sage-$pkgver
@@ -76,6 +78,8 @@
sed -e 's|mathjax|mathjax2|g' -i src/sage/env.py
# Fix gap.version() with GAP 4.11
patch -p1 -i ../sagemath-gap-4.11.patch
+# Fix deprecation warnings on autocompletion with jedi 0.16
+ patch -p1 -i ../sagemath-jedi-0.16.patch
# Upstream patches
# use Features to detect Cremona databases https://trac.sagemath.org/ticket/25825
Added: sagemath-jedi-0.16.patch
===================================================================
--- sagemath-jedi-0.16.patch (rev 0)
+++ sagemath-jedi-0.16.patch 2020-03-26 13:41:56 UTC (rev 604450)
@@ -0,0 +1,13 @@
+--- a/src/sage/all.py
++++ b/src/sage/all.py
+@@ -324,6 +324,9 @@ warnings.filterwarnings('ignore', category=DeprecationWarning,
+ # However, be sure to keep OUR deprecation warnings
+ warnings.filterwarnings('default', category=DeprecationWarning,
+ message=r'[\s\S]*See https\?://trac\.sagemath\.org/[0-9]* for details.')
++# jedi 0.16 deprecation warnings
++warnings.filterwarnings('ignore', category=DeprecationWarning,
++ message='.*Use get_signatures().*')
+ # Python 3.8 deprecation warnings
+ warnings.filterwarnings('ignore', category=DeprecationWarning,
+ message='.*PY_SSIZE_T_CLEAN.*')
+
More information about the arch-commits
mailing list