jupyter-server / jupyter_server

The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications.
https://jupyter-server.readthedocs.io
BSD 3-Clause "New" or "Revised" License
489 stars 307 forks source link

CI fails due to jsonschema.RefResolver being deprecated #1302

Open andrii-i opened 1 year ago

andrii-i commented 1 year ago

Description

Test jupyterlab_server CI step fails (see all latest runs on main, for example this) because jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library:

DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.

Affects downstream extensions, for example https://github.com/jupyter-server/jupyter-scheduler/pull/387 (CI run).

Reproduce

See latest jupyterlab_server CI Job runs, for example this

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

blink1073 commented 1 year ago

Fixed by https://github.com/jupyterlab/jupyterlab_server/releases/tag/v2.24.0

andrii-i commented 1 year ago

Thank you @blink1073

blink1073 commented 1 year ago

Hmm, we're still seeing this in recent PRs

blink1073 commented 1 year ago

I believe this will be fixed by https://github.com/jupyter/jupyter_events/pull/80 once I cut a release tomorrow.