8000 doc: add social cards generation support in sphinxext-opengraph by FFY00 · Pull Request #129085 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

doc: add social cards generation support in sphinxext-opengraph #129085

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

Merged
merged 6 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix when using the local Python
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Jan 20, 2025
commit 05084a8d041eac981cf433d94ef2e852e013cb7b
8 changes: 8 additions & 0 deletions Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ JOBS = auto
PAPER =
SOURCES =
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
IS_PYTHON_BUILD = $(if $(shell $(PYTHON) -c 'import sys, sysconfig; sys.exit(sysconfig.is_python_build())'), true, false)
REQUIREMENTS = requirements.txt
REQUIREMENTS_NO_BUILD = requirements-no-build.txt
SPHINXERRORHANDLING = --fail-on-warning

# Internal varia 8000 bles.
Expand Down Expand Up @@ -174,10 +176,16 @@ venv:
if $(UV) --version >/dev/null 2>&1; then \
$(UV) venv $(VENVDIR); \
VIRTUAL_ENV=$(VENVDIR) $(UV) pip install -r $(REQUIREMENTS); \
if ! $(IS_PYTHON_BUILD); then \
VIRTUAL_ENV=$(VENVDIR) $(UV) pip install -r $(REQUIREMENTS_NO_BUILD); \
fi; \
else \
$(PYTHON) -m venv $(VENVDIR); \
$(VENVDIR)/bin/python3 -m pip install --upgrade pip; \
$(VENVDIR)/bin/python3 -m pip install -r $(REQUIREMENTS); \
if ! $(IS_PYTHON_BUILD); then \
$(VENVDIR)/bin/python3 -m pip install -r $(REQUIREMENTS_NO_BUILD); \
fi; \
fi; \
echo "The venv has been created in the $(VENVDIR) directory"; \
fi
Expand Down
7 changes: 7 additions & 0 deletions Doc/requirements-no-build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Requirements when not running the build Python,
# such as optional native extensions.

--only-binary

# Needed to support generating social cards in sphinxext-opengraph.
matplotlib
3 changes: 0 additions & 3 deletions Doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ sphinx-notfound-page~=1.0.0
# to install that as well.
python-docs-theme>=2023.3.1,!=2023.7

# Needed to support generating social cards in sphinxext-opengraph.
matplotlib

-c constraints.txt
Loading
0