mirror of https://github.com/Qiskit/qiskit.git
Relax constraints on jupyter-core and ipywidgets (#9364)
* Relax constraints on jupyter-core and ipywidgets These were originally added in #9105 and #9272 respectively, but the original problem package `seaborn` has released since then, which may have fixed things. * Fix suppressions for Jupyter warnings This removes some now-unnecessary suppressions from image-related packages, and adds the new suppression for the pyzmq problem, which is Jupyter's domain to handle. The extra environment variable in the images test run is to eagerly move to new default behaviour starting in jupyter-core 6; there is no need for us to pin the package too low, since this warning is just encouraging people to proactively test the new behaviour, and it doesn't cause our suite problems. * Use correct YAML syntax One day I'll remember this when writing environment variables in YAML files, but it's not this day.
This commit is contained in:
parent
7955d92d3e
commit
dce9fdaadf
|
@ -163,3 +163,8 @@ jobs:
|
||||||
|
|
||||||
- bash: image_tests/bin/python -m unittest discover -v test/ipynb
|
- bash: image_tests/bin/python -m unittest discover -v test/ipynb
|
||||||
displayName: 'Run image test'
|
displayName: 'Run image test'
|
||||||
|
env:
|
||||||
|
# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
|
||||||
|
# a new internal interface that will be the default in jupyter-core 6.x.
|
||||||
|
# This variable should become redundant on release of jupyter-core 6.
|
||||||
|
JUPYTER_PLATFORM_DIRS: 1
|
||||||
|
|
|
@ -1,12 +1,3 @@
|
||||||
# jsonschema pinning needed due nbformat==5.1.3 using deprecated behaviour in
|
# jsonschema pinning needed due nbformat==5.1.3 using deprecated behaviour in
|
||||||
# 4.0+. The pin can be removed after nbformat is updated.
|
# 4.0+. The pin can be removed after nbformat is updated.
|
||||||
jsonschema==3.2.0
|
jsonschema==3.2.0
|
||||||
|
|
||||||
# jupyter-core 5.0.0 started emitting deprecation warnings with ipywidgets via
|
|
||||||
# a seaborn import. This pin can be removed when compatibility with those
|
|
||||||
# packages is fixed
|
|
||||||
jupyter-core==4.11.2
|
|
||||||
|
|
||||||
# ipywidgets 8.0.3 started emitting deprecation warnings via a seaborn import.
|
|
||||||
# This pin can be removed when compatibility with those packages is fixed.
|
|
||||||
ipywidgets<8.0.3
|
|
||||||
|
|
|
@ -216,13 +216,13 @@ class QiskitTestCase(BaseQiskitTestCase):
|
||||||
r"Back-references to from Bit instances.*",
|
r"Back-references to from Bit instances.*",
|
||||||
r"The CXDirection pass has been deprecated",
|
r"The CXDirection pass has been deprecated",
|
||||||
r"The pauli_basis function with PauliTable.*",
|
r"The pauli_basis function with PauliTable.*",
|
||||||
# TODO: remove the following ignore after seaborn 0.12.0 releases
|
|
||||||
r"distutils Version classes are deprecated. Use packaging\.version",
|
|
||||||
# Internal deprecation warning emitted by jupyter client when
|
|
||||||
# calling nbconvert in python 3.10
|
|
||||||
r"There is no current event loop",
|
|
||||||
# Caused by internal scikit-learn scipy usage
|
# Caused by internal scikit-learn scipy usage
|
||||||
r"The 'sym_pos' keyword is deprecated and should be replaced by using",
|
r"The 'sym_pos' keyword is deprecated and should be replaced by using",
|
||||||
|
# jupyter_client 7.4.8 uses deprecated shims in pyzmq that raise warnings with pyzmq 25.
|
||||||
|
# These are due to be fixed by jupyter_client 8, see:
|
||||||
|
# - https://github.com/jupyter/jupyter_client/issues/913
|
||||||
|
# - https://github.com/jupyter/jupyter_client/pull/842
|
||||||
|
r"zmq\.eventloop\.ioloop is deprecated in pyzmq .*",
|
||||||
]
|
]
|
||||||
for msg in allow_DeprecationWarning_message:
|
for msg in allow_DeprecationWarning_message:
|
||||||
warnings.filterwarnings("default", category=DeprecationWarning, message=msg)
|
warnings.filterwarnings("default", category=DeprecationWarning, message=msg)
|
||||||
|
|
Loading…
Reference in New Issue