Skip to content

Commit adaf3af

Browse files
author
Release Manager
committed
gh-35438: Ignore deprecation warnings triggered by pythran 0.12.1
These happen with python 3.11, setuptools 67.6.1, numpy 1.24.2. When pythran 0.12.1 is installed, I get 24 doctest failures due to deprecation warnings; they are all gone with this commit. ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] Current tests cover the changes. URL: #35438 Reported by: Gonzalo Tornaría Reviewer(s): Matthias Köppe
2 parents 50767c4 + 839a6e9 commit adaf3af

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

build/pkgs/configure/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=224fa9979ee6d884b708b6e96553c73b170fffcc
3-
md5=eead1165f89ae4b693dbdb252d4e940c
4-
cksum=1999003763
2+
sha1=b998c1d37a74b1abb29f6be8c091c5cbf3728064
3+
md5=da963ef9ed25e1a36b5dd9d774af7143
4+
cksum=1581756007
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ad0ea73c1df909186e435713f1c0d7d34d93cd84
1+
15027934d11e00039607d848697cd9da68bf0536

src/sage/all__sagemath_repl.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@
3737
warnings.filterwarnings('ignore', category=DeprecationWarning,
3838
module='(.*[.]_vendor[.])?packaging')
3939

40-
# Ignore numpy warnings triggered by pythran
40+
# Ignore a few warnings triggered by pythran 0.12.1
4141
warnings.filterwarnings('ignore', category=DeprecationWarning,
42-
module='pythran')
42+
message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0',
43+
module='pythran.dist')
44+
warnings.filterwarnings('ignore', category=DeprecationWarning,
45+
message='pkg_resources is deprecated as an API|'
46+
'Deprecated call to `pkg_resources.declare_namespace(.*)`',
47+
module='pkg_resources')
48+
warnings.filterwarnings('ignore', category=DeprecationWarning,
49+
message='msvccompiler is deprecated and slated to be removed',
50+
module='distutils.msvccompiler')
4351

4452
warnings.filterwarnings('ignore', category=DeprecationWarning,
4553
message='The distutils(.sysconfig module| package) is deprecated',

0 commit comments

Comments
 (0)