Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Explicit installation of Sphinx versions #1971

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

trallard
Copy link
Collaborator

@trallard trallard commented Sep 2, 2024

Partially closes #1938

Inspecting the GitHub actions, I realized we had already been running our tests against the latest version of Sphinx (8.2), but since we are doing this implicitly, it is easy to miss.

I have updated the tox.ini so that the Sphinx version is always explicitly set. This makes it easier to track which version we are building docs and running tests against.

@trallard trallard added tag: dependencies Pull requests that update a dependency file kind: maintenance Improving maintainability and reducing technical debt tag: CI Pull requests that update GitHub Actions code labels Sep 2, 2024
- os: ubuntu-latest
python-version: "3.9"
sphinx-version: "6.1"
# newest Python version with the newest Sphinx version
sphinx-version: "6.2"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have been installing 6.1, but I think we should bump it to 6.2

Comment on lines -226 to -228

# to run the tests only without pre-compiling the assets and without coverage (for example if you recently compiled the assets)
$ tox run -e tests-no-cov
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the compilation is required, let's remove this

Comment on lines +65 to +72
sphinx61: Sphinx>=6.1,<6.2
sphinx62: Sphinx>=6.2,<6.3
sphinx70: Sphinx>=7.0,<7.1
sphinx71: Sphinx>=7.1,<7.2
sphinx72: Sphinx>=7.2,<7.3
sphinx80: Sphinx>=8.0,<8.1
sphinxlatest: Sphinx
sphinxdev: sphinx[test] @ git+https://github.com/sphinx-doc/sphinx.git@master
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I erred on adding all versions here but since we are not running tests against all of them I can remove some of them.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the latest point-release of 6.x, 7.x, 8.x, plus current main is enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: maintenance Improving maintainability and reducing technical debt tag: CI Pull requests that update GitHub Actions code tag: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adapt to sphinx 8 release
2 participants