|
104 | 104 | message='The distutils(.sysconfig module| package) is deprecated',
|
105 | 105 | module='Cython|distutils|numpy|sage.env|sage.features')
|
106 | 106 |
|
| 107 | +# triggered by cython 0.29.32 |
| 108 | +warnings.filterwarnings('ignore', category=DeprecationWarning, |
| 109 | + message="'cgi' is deprecated and slated for removal in Python 3.13", |
| 110 | + module='Cython') |
| 111 | + |
| 112 | +# triggered by pyparsing 2.4.7 |
| 113 | +warnings.filterwarnings('ignore', category=DeprecationWarning, |
| 114 | + message="module 'sre_constants' is deprecated", |
| 115 | + module='pyparsing') |
| 116 | + |
| 117 | +# importlib.resources.path and ...read_binary are deprecated in python 3.11, |
| 118 | +# but the replacement importlib.resources.files needs python 3.9 |
| 119 | +warnings.filterwarnings('ignore', category=DeprecationWarning, |
| 120 | + message=r'(path|read_binary) is deprecated\. Use files\(\) instead\.', |
| 121 | + module='sage.repl.rich_output.output_(graphics|graphics3d|video)') |
| 122 | + |
| 123 | +# triggered by sphinx |
| 124 | +warnings.filterwarnings('ignore', category=DeprecationWarning, |
| 125 | + message="'imghdr' is deprecated and slated for removal in Python 3.13", |
| 126 | + module='sphinx.util.images') |
| 127 | + |
| 128 | +# triggered by docutils 0.19 on Python 3.11 |
| 129 | +warnings.filterwarnings('ignore', category=DeprecationWarning, |
| 130 | + message=r"Use setlocale\(\), getencoding\(\) and getlocale\(\) instead", |
| 131 | + module='docutils.io') |
| 132 | + |
107 | 133 | ################ end setup warnings ###############################
|
108 | 134 |
|
109 | 135 |
|
|
0 commit comments