From 5d4a724b81753b3703ff27612ada398a73f733c5 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 19 Apr 2024 13:55:30 -0500 Subject: [PATCH] Install sphinx test dependencies in all CI testing jobs (#1772) * CI: install sphinx test deps always * fix it right this time * pin sphinx<7.3 for site builds * Fix Sphinx version * Pin Sphinx in pyproject.toml * bump ablog; unpin sphinx --------- Co-authored-by: Tania Allard --- .github/workflows/tests.yml | 4 +++- pyproject.toml | 4 ++-- tools/github_actions_install.sh | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c8381aa897..d9421ddf47 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,14 +45,16 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.9", "3.10", "3.11", "3.12"] - sphinx-version: [""] + sphinx-version: ["rls"] include: # macos test - os: macos-latest python-version: "3.12" + sphinx-version: "rls" # windows test - os: windows-latest python-version: "3.12" + sphinx-version: "rls" # old Sphinx test - os: ubuntu-latest python-version: "3.9" diff --git a/pyproject.toml b/pyproject.toml index 8d674125d5..b3e2847846 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dynamic = ["version"] readme = "README.md" requires-python = ">=3.9" dependencies = [ - "sphinx>=5.0", + "sphinx>=5", "beautifulsoup4", "docutils!=0.17.0", "packaging", @@ -59,7 +59,7 @@ doc = [ "sphinx-autoapi>=3.0.0", # For examples section "myst-parser", - "ablog>=0.11.0rc2", + "ablog>=0.11.8", "jupyter_sphinx", "pandas", "plotly", diff --git a/tools/github_actions_install.sh b/tools/github_actions_install.sh index fba8346eae..90e08f1b06 100755 --- a/tools/github_actions_install.sh +++ b/tools/github_actions_install.sh @@ -4,14 +4,14 @@ # ($2) is an extra dependency (currently just nox on one run) set -eo pipefail export PYTHONUTF8=1 -if [[ "$SPHINX_VERSION" == "" ]]; then - SPHINX_INSTALL="" +if [[ "$SPHINX_VERSION" == "rls" ]]; then + SPHINX_INSTALL="sphinx[test]" elif [[ "$SPHINX_VERSION" == "dev" ]]; then SPHINX_INSTALL="sphinx[test]@https://codeload.github.com/sphinx-doc/sphinx/zip/refs/heads/master" elif [[ "$SPHINX_VERSION" == "old" ]]; then SPHINX_INSTALL="sphinx[test]==6.1.0" -else # not used currently but easy enough - SPHINX_INSTALL="sphinx[test]==$SPHINX_VERSION" +else # for the "build site" jobs + SPHINX_INSTALL="sphinx<7.3" fi set -x # print commands python -m pip install --upgrade pip wheel setuptools