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

1
.gitignore vendored
View file

@ -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

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

View file

@ -1 +1 @@
SHA512 (OWSLib-0.21.0.tar.gz) = 3dc28bed9041fdcae63a0296cc96660788038d8f57fe131fca7906c58161917deb1b1a90050d434ea855b33385afdf0f84baaf3bdb94e7db8df6ccff180acc43
SHA512 (OWSLib-0.25.0.tar.gz) = 058108cf77197ce24793608869d56bf0467230f5f231ac9ba48445f2e02d07ea1e26be03ad6967504a1e625008ae2768ed2a663f3b7a49dcea410ee4a8b40cec