Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions.
Project Links
Meta
Author: Dominic Davis-Foster
Requires Python: >=3.6
Classifiers
Development Status
- 3 - Alpha
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3 :: Only
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Documentation
- Documentation :: Sphinx
- Software Development :: Documentation
Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions.
Also makes some Sphinx versions work correctly on Python 3.10.
The patches can be disabled by setting the environment variable NO_SPHINX_JINJA2_COMPAT to 1. (v0.2.0 and newer only)
Tests |
|
|---|---|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Installation
sphinx-jinja2-compat can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install sphinx-jinja2-compat
To install with conda:
First add the required channels
$ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
$ conda install sphinx-jinja2-compat
0.4.1
Aug 06, 2025
0.4.0
Aug 05, 2025
0.3.0
Jun 19, 2024
0.2.0.post1
Nov 22, 2023
0.2.0
Sep 08, 2022
0.2.0b1
May 16, 2022
0.1.2
Mar 30, 2022
0.1.1
Mar 30, 2022
0.1.0
Mar 29, 2022