From 03c7e1087d87027953254b9a19104091bb7fb69e Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 19 Mar 2024 19:02:53 -0500 Subject: [PATCH] fix: Use str object for jupyterlite-sphinx jupyterlite_dir config * To avoid warning WARNING: The config value `jupyterlite_dir' has type `PosixPath', defaults to `str'. use a str for the jupyterlite-sphinx v0.13.0+ jupyterlite_dir config option. * Update jupyterlite-spinx lower bound to v0.13.0 in 'docs' extra. * Reverts PR https://github.com/scikit-hep/pyhf/pull/ 2300 --- docs/conf.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 06ead2b2a7..60ab7b974d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -531,5 +531,5 @@ def setup(app): linkcheck_retries = 50 # JupyterLite configuration -# Use Path as jupyterlite-sphinx expects PosixPath -jupyterlite_dir = Path("lite") +# jupyterlite-sphinx v0.13.0+ expects str +jupyterlite_dir = str(Path("lite")) diff --git a/pyproject.toml b/pyproject.toml index fbc4f47d4d..b030767fcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,7 @@ docs = [ "ipywidgets", "sphinx-issues", "sphinx-copybutton>=0.3.2,!=0.5.1", - "jupyterlite-sphinx>=0.8.0", + "jupyterlite-sphinx>=0.13.0", "jupyterlite-pyodide-kernel>=0.0.7", "jupytext>=1.14.0", "ipython!=8.7.0", # c.f. https://github.com/scikit-hep/pyhf/pull/2068