Skip to content

Doctest: Pin sphinxext-opengraph==0.7.5 to prevent importing NumPy - #101642

Merged
ambv merged 1 commit into
python:mainfrom
hugovk:pin-sphinxext-opengraph
Feb 7, 2023
Merged

ambv merged 1 commit into
python:mainfrom
hugovk:pin-sphinxext-opengraph

Conversation

@hugovk

@hugovk hugovk commented Feb 7, 2023 •

Copy link
Copy Markdown
Member

We use a Sphinx extension to help with SEO metadata. They recently added (in 0.8.0) support for generating images for social media cards (sphinx-doc/sphinxext-opengraph#88). We're not using that feature, but it still attempts to install and import Matplotlib and its dependency NumPy, which can fail the doctest for 3.12/main due to incompatibilities.

For now, let's pin to the previous version, sphinxext-opengraph==0.7.5, and make another fix later (see: #101639 (comment)).

@hugovk
hugovk force-pushed the pin-sphinxext-opengraph branch from 1abf729 to 97040ec Compare February 7, 2023 13:46
@hugovk hugovk changed the title Doctest: Pin sphinxext-opengraph==0.7.9 to prevent importing NumPy Feb 7, 2023
@ambv
ambv merged commit a757d72 into python:main Feb 7, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @hugovk for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @hugovk and @ambv, I had trouble checking out the 3.11 backport branch.
Please retry by removing and re-adding the "needs backport to 3.11" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker a757d721271974c45e2feacef739af4e86ec7350 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants