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

Require Python 3.10 and Sphinx 7.3 #221

Merged
merged 8 commits into from
Feb 13, 2025
Merged

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Feb 2, 2025

See also python/cpython#129576. This would mean this theme is no longer installable with the 3.10 or 3.11 branches, which require sphinx==3.4.3 and sphinx~=7.2.0 respectively.

Changes:

  • Require Python 3.10 (used on the docs server)
  • Require Sphinx 7.3
  • Drop _add_asset_hashes patch
  • Drop CSS for Sphinx 4.x
  • Drop sidebar.js_t for Sphinx 4.x
  • Add static type annotations to setup()
  • Convert theme.conf to the new theme.toml (via python -m sphinx.theming conf_to_toml python_docs_theme)
  • Define the version extension metadata field.
  • Replace @import url(...) with an entry in the sidebars list, to allow parallel stylesheet fetching by the user agent

A


📚 Documentation preview 📚: https://python-docs-theme-previews--221.org.readthedocs.build/

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

(There's a conflict after merging #219.)

Looking good, although before merging and pinning 3.11 to 2024.12 in python/cpython#129576, it might be nice to get #218 merged and released in 2025.2, and then pinning 3.11 to 2025.2?

@AA-Turner AA-Turner mentioned this pull request Feb 4, 2025
# Conflicts:
#	python_docs_theme/__init__.py
#	python_docs_theme/static/pydoctheme.css
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks!

@AA-Turner
Copy link
Member Author

3.10 & 3.11 are now pinned to 2025.2, so merging this.

A

@AA-Turner AA-Turner merged commit f5d080f into python:main Feb 13, 2025
14 checks passed
@AA-Turner AA-Turner deleted the drop-reqs branch February 13, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants