From 724b77cdf4678bc38368e985cbbe2f1a878082d6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 19 Feb 2021 16:29:02 -0500 Subject: [PATCH] Parallelize Sphinx documentation build --- python-pyrsistent.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-pyrsistent.spec b/python-pyrsistent.spec index 443bf94..55eedc6 100644 --- a/python-pyrsistent.spec +++ b/python-pyrsistent.spec @@ -12,7 +12,7 @@ original structure is left untouched.} Name: python-%{srcname} Summary: Persistent/Functional/Immutable data structures Version: 0.17.3 -Release: 4%{?dist} +Release: 5%{?dist} # The entire source is MIT, except pyrsistent/_toolz.py which is BSD. License: MIT and BSD @@ -96,7 +96,11 @@ BuildArch: noarch %build %py3_build -%make_build -C docs html SPHINXOPTS='--keep-going' + +# Default SPHINXOPTS are '-W -n', but -W turns warnings into errors and there +# are some warnings. We want to build the documentation as best we can anyway. +# Additionally, we parallelize sphinx-build. +%make_build -C docs html SPHINXOPTS='-n %{?_smp_mflags}' rm -f docs/build/html/.buildinfo @@ -128,6 +132,9 @@ env PYTHONHASHSEED=0 %pytest --doctest-modules %{srcname} %changelog +* Fri Feb 19 2021 Benjamin A. Beasley - 0.17.3-5 +- Parallelize Sphinx documentation build + * Fri Feb 19 2021 Benjamin A. Beasley - 0.17.3-4 - Use the GitHub tarball instead of the PyPI tarball - Switch URL to HTTPS