From 3b6e91247ec6de0a07f024353f4b81f043a32df0 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 21 Dec 2021 21:04:31 -0500 Subject: [PATCH] Update to 0.25.0 (close RHBZ#1918539) --- .gitignore | 1 + python-OWSLib.spec | 19 ++++++++++++++----- sources | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6236253..65509e1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /OWSLib-0.19.1.tar.gz /OWSLib-0.20.0.tar.gz /OWSLib-0.21.0.tar.gz +/OWSLib-0.25.0.tar.gz diff --git a/python-OWSLib.spec b/python-OWSLib.spec index 0e0cba0..b005afd 100644 --- a/python-OWSLib.spec +++ b/python-OWSLib.spec @@ -5,7 +5,7 @@ %bcond_without doc_pdf Name: python-OWSLib -Version: 0.21.0 +Version: 0.25.0 Release: %autorelease Summary: Client library for OGC web services @@ -21,6 +21,7 @@ BuildRequires: python3-devel BuildRequires: make BuildRequires: python3-sphinx-latex BuildRequires: latexmk +BuildRequires: pandoc %endif %global common_description %{expand: \ @@ -56,9 +57,13 @@ Summary: Documentation and examples for OWSLib # Don’t analyze/report test coverage sed -r -i 's/[-]-cov[^[:blank:]]*[[:blank:]][^[[:blank:]]+//g' tox.ini -# Don’t generate linting/coverage dependencies -sed -r '/^(flake8|pytest-cov)\b/d' requirements-dev.txt \ - > requirements-dev-filtered.txt +# Don’t generate linting/coverage dependencies. +# +# We don’t have python3dist(pandoc) packaged, and besides, we don’t actually +# need python3dist(pandoc)—only the pandoc command-line tool, which we have +# manually BR’d. +sed -r '/^(flake8|pytest-cov|pandoc|coverage|coveralls)\b/d' \ + requirements-dev.txt > requirements-dev-filtered.txt # We don’t need shebangs in the examples. The pattern of selecting files # before modifying them with sed keeps us from unnecessarily discarding the @@ -69,6 +74,10 @@ find 'examples' -type f -name '*.py' \ # Some of them, but not all of them, were executable. chmod -v a-x examples/*.py +# Because at least one notebook requires Internet access, we must continue past +# notebook errors when building documentation. +echo 'nbsphinx_allow_errors = True' >> docs/conf.py + %generate_buildrequires %pyproject_buildrequires -r requirements-dev-filtered.txt @@ -78,7 +87,7 @@ chmod -v a-x examples/*.py %pyproject_wheel %if %{with doc_pdf} -%make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}' +PYTHONPATH="${PWD}" %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}' %make_build -C docs/build/latex/en LATEXMKOPTS='-quiet' %endif diff --git a/sources b/sources index fdb7ddf..de6a60c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (OWSLib-0.21.0.tar.gz) = 3dc28bed9041fdcae63a0296cc96660788038d8f57fe131fca7906c58161917deb1b1a90050d434ea855b33385afdf0f84baaf3bdb94e7db8df6ccff180acc43 +SHA512 (OWSLib-0.25.0.tar.gz) = 058108cf77197ce24793608869d56bf0467230f5f231ac9ba48445f2e02d07ea1e26be03ad6967504a1e625008ae2768ed2a663f3b7a49dcea410ee4a8b40cec