From 73d366a5a212502d3a478d5e8fc4bbd33f0b8234 Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Sun, 5 Sep 2021 01:17:35 +0200 Subject: [PATCH] Pas de -W explicite pour Sphinx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CPython ajoute déjà -W dans son Makefile. Depuis le commit f98c1623ec90508937afc1b58556e38214d70892 ("Doc: -W flag for sphinx-build can be disabled" par Julien Palard), c'est même configurable à l'aide de la variable SPHINXERRORHANDLING. Avec le présent commit, cette variable fonctionne aussi dans notre traduction, ce qui facilite la traduction car cela permet d'obtenir tous les avertissements en une fois avec « make SPHINXERRORHANDLING= » ou bien « make SPHINXERRORHANDLING="-W --keep-going" », au lieu de voir un nouvel avertissement arrêter la compilation à chaque fois. Ce serait bien d'avoir --keep-going par défaut, mais je ne l'ajoute pas ici car il serait sûrement encore mieux de le mettre dans CPython directement. --- .github/workflows/tests.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 309094544..5b3392ba8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -91,4 +91,4 @@ jobs: [ -d $HOME/cpython/Doc/venv/bin/ -a ! -e $HOME/cpython/Doc/venv/bin/python ] && rm -fr $HOME/cpython/Doc/venv make -C $HOME/cpython/Doc venv - name: sphinx-build - run: make -C $HOME/cpython/Doc SPHINXOPTS="-qW -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html + run: make -C $HOME/cpython/Doc SPHINXOPTS="-q -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html diff --git a/Makefile b/Makefile index d087c51f6..fa4339563 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ all: ensure_prerequisites mkdir -p locales/$(LANGUAGE)/LC_MESSAGES/ $(CP_CMD) -u --parents *.po */*.po locales/$(LANGUAGE)/LC_MESSAGES/ $(MAKE) -C $(CPYTHON_PATH)/Doc/ \ - SPHINXOPTS='-W -j$(JOBS) \ + SPHINXOPTS='-j$(JOBS) \ -D locale_dirs=$(abspath locales) \ -D language=$(LANGUAGE) \ -D gettext_compact=0 \