Skip to content

Commit

Permalink
CI: Fix pip install problem with Pygments version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adrienverge committed Oct 26, 2022
1 parent eb7b7ca commit a6e0e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a6e0e12

Please sign in to comment.