Update to 0.25.0 (close RHBZ#1918539)

This commit is contained in:
Benjamin A. Beasley 2021-12-21 21:04:31 -05:00
commit 3b6e91247e
3 changed files with 16 additions and 6 deletions

View file

@ -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
# Dont analyze/report test coverage
sed -r -i 's/[-]-cov[^[:blank:]]*[[:blank:]][^[[:blank:]]+//g' tox.ini
# Dont generate linting/coverage dependencies
sed -r '/^(flake8|pytest-cov)\b/d' requirements-dev.txt \
> requirements-dev-filtered.txt
# Dont generate linting/coverage dependencies.
#
# We dont have python3dist(pandoc) packaged, and besides, we dont actually
# need python3dist(pandoc)—only the pandoc command-line tool, which we have
# manually BRd.
sed -r '/^(flake8|pytest-cov|pandoc|coverage|coveralls)\b/d' \
requirements-dev.txt > requirements-dev-filtered.txt
# We dont 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