chrisjsewell / pytest-notebook

A pytest plugin for regression testing and regenerating Jupyter Notebooks
https://pytest-notebook.readthedocs.io
BSD 3-Clause "New" or "Revised" License
49 stars 9 forks source link

Dependencies: Add support for Python 3.10 and 3.11 #37

Closed sphuber closed 1 year ago

sphuber commented 1 year ago

In Python 3.11, the read_text and path methods of the importlib.resources package of the standard library are deprecated. They should now be accessed through the files interface. This has only been added since Python 3.9 though, so for older versions we require the importlib_resources backport package to be installed.

sphuber commented 1 year ago

Documentation is failing because it is not accepting the new importlib.resources.files syntax, however, importlib_resources seems to be installed which backported this functionality.

sphuber commented 1 year ago

Cheers @chrisjsewell . Would it be ok to make a release? Then I can update plumpy as well, which is where I came across the problem.