From a6e0e1213a94affdb3ba87789c9d2a26b6fa1224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Wed, 26 Oct 2022 16:25:16 +0200 Subject: [PATCH] CI: Fix pip install problem with Pygments version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recently `python setup.py build_sphinx` started failing with: pkg_resources.VersionConflict: (Pygments 2.3.1 (/usr/lib/python3/dist-packages), Requirement.parse('Pygments>=2.12')) The reason is that `doc8` 1.0.0 installs `Pygments` 2.3.1, then `Sphinx` 5.3.0 needs `Pygments` ≥ 2.12. The easiest fix is to change the install order. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ac52e9bb..d11ccb9f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,8 +21,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 - run: - python -m pip install flake8 flake8-import-order doc8 sphinx - rstcheck[sphinx] + python -m pip install flake8 flake8-import-order sphinx + rstcheck[sphinx] doc8 - run: python -m pip install . - run: flake8 . - run: doc8 $(git ls-files '*.rst')