-
Notifications
You must be signed in to change notification settings - Fork 68
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
RFE: please provide support for jinja2
>= 3.0.0
#166
Comments
Actually just found that this install time dependency cen be dropped [tkloczko@devel-g2v sphinx-tabs-3.4.0]$ grep -r jinja2
setup.py: install_requires=["sphinx>=2,<6", "pygments", "docutils~=0.17.0", "jinja2<3.1.0"], |
This was added in #164 because later versions of jinja2 seem to be incompatible with older versions of sphinx. Running the tests without that dependency specified shows that sphinx imports a depreciated jinja2 object. We could make the requirement more specific if we can identify when the breaking change was included? Otherwise, this might be an issue for sphinx to support the latest versions of jinja2? |
So it looks like this has already been addressed in the latest versions of sphinx. I think our solution would be to follow sphinx and only officially support their latest version, because it would be too much faff to manage the dependencies for older sphinx versions There's a comment on there suggesting that sphinx should pin the jinja2 version in older sphinx versions, but lack of this causes the issue here |
[tkloczko@devel-g2v g2v]$ pip show sphinx
Name: Sphinx
Version: 5.0.2
Summary: Python documentation generator
Home-page: https://www.sphinx-doc.org/
Author: Georg Brandl
Author-email: [email protected]
License: BSD
Location: /usr/lib/python3.8/site-packages
Requires: alabaster, babel, docutils, imagesize, importlib-metadata, Jinja2, packaging, Pygments, requests, snowballstemmer, sphinxcontrib-applehelp, sphinxcontrib-devhelp, sphinxcontrib-htmlhelp, sphinxcontrib-jsmath, sphinxcontrib-qthelp, sphinxcontrib-serializinghtml
Required-by: As you see |
The issue here was due to |
IIRC it is possible to make conditional dependencies. |
Jinja2 version no longer pinned from v3.4.1 👍🏻 |
Thank you. |
sphinx-tabs/setup.py
Line 28 in b9fd7d8
The text was updated successfully, but these errors were encountered: