[3.11] gh-139436: Remove `dist-pdf` from the docs archives rebuild target (#139437) (#141164)

(cherry picked from commit 0e2cdd313b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Stan Ulbrych 2025-12-29 18:47:57 +00:00 committed by GitHub
parent 9bbb68a524
commit 0b8e4fe493
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,11 +184,22 @@ venv:
echo "The venv has been created in the $(VENVDIR) directory"; \ echo "The venv has been created in the $(VENVDIR) directory"; \
fi fi
.PHONY: dist-no-html
dist-no-html: dist-text dist-epub dist-texinfo
.PHONY: dist .PHONY: dist
dist: dist:
rm -rf dist rm -rf dist
mkdir -p dist mkdir -p dist
$(MAKE) dist-html
$(MAKE) dist-text
$(MAKE) dist-pdf
$(MAKE) dist-epub
$(MAKE) dist-texinfo
.PHONY: dist-html
dist-html:
# archive the HTML # archive the HTML
make html make html
cp -pPR build/html dist/python-$(DISTVERSION)-docs-html cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
@ -198,6 +209,8 @@ dist:
rm -r dist/python-$(DISTVERSION)-docs-html rm -r dist/python-$(DISTVERSION)-docs-html
rm dist/python-$(DISTVERSION)-docs-html.tar rm dist/python-$(DISTVERSION)-docs-html.tar
.PHONY: dist-text
dist-text:
# archive the text build # archive the text build
make text make text
cp -pPR build/text dist/python-$(DISTVERSION)-docs-text cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
@ -207,6 +220,8 @@ dist:
rm -r dist/python-$(DISTVERSION)-docs-text rm -r dist/python-$(DISTVERSION)-docs-text
rm dist/python-$(DISTVERSION)-docs-text.tar rm dist/python-$(DISTVERSION)-docs-text.tar
.PHONY: dist-pdf
dist-pdf:
# archive the A4 latex # archive the A4 latex
rm -rf build/latex rm -rf build/latex
make latex PAPER=a4 make latex PAPER=a4
@ -223,11 +238,15 @@ dist:
cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip
cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
.PHONY: dist-epub
dist-epub:
# copy the epub build # copy the epub build
rm -rf build/epub rm -rf build/epub
make epub make epub
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
.PHONY: dist-texinfo
dist-texinfo:
# archive the texinfo build # archive the texinfo build
rm -rf build/texinfo rm -rf build/texinfo
make texinfo make texinfo
@ -258,12 +277,12 @@ serve:
# for development releases: always build # for development releases: always build
.PHONY: autobuild-dev .PHONY: autobuild-dev
autobuild-dev: autobuild-dev:
make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1' make dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
# for quick rebuilds (HTML only) # for quick rebuilds (HTML only)
.PHONY: autobuild-dev-html .PHONY: autobuild-dev-html
autobuild-dev-html: autobuild-dev-html:
make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1' make dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
# for stable releases: only build if not in pre-release stage (alpha, beta) # for stable releases: only build if not in pre-release stage (alpha, beta)
# release candidate downloads are okay, since the stable tree can be in that stage # release candidate downloads are okay, since the stable tree can be in that stage