Remove documentation from the package

Docs have started to emit a lot of warnings with Sphinx 4.x,
but with Sphinx 4.4.x they're unable to build at all.
Upstream was notified of this issue in https://github.com/pytest-dev/py/issues/272
and stated that library is in maintenance mode only, receving only security fixes.
Regarding this context it seems better to just stop shipping docs rather
than patching the library downstream.
This commit is contained in:
Karolina Surma 2022-02-15 16:53:33 +01:00
parent 35334a7c2a
commit 1bd2cd1317

View File

@ -1,6 +1,5 @@
# we have a circular (build) dependency with the (new) pytest package # we have a circular (build) dependency with the (new) pytest package
# when generating the docs or running the testsuite # when running the testsuite
%bcond_without docs
# the testsuite is currently not compatible with pytest 3, see # the testsuite is currently not compatible with pytest 3, see
# https://github.com/pytest-dev/py/issues/104 # https://github.com/pytest-dev/py/issues/104
%if 0%{?fedora} || 0%{?rhel} > 7 %if 0%{?fedora} || 0%{?rhel} > 7
@ -16,7 +15,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 1.11.0 Version: 1.11.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities Summary: Library with cross-python path, ini-parsing, io, code, log facilities
License: MIT and Public Domain License: MIT and Public Domain
# main package: MIT, except: doc/style.css: Public Domain # main package: MIT, except: doc/style.css: Public Domain
@ -45,10 +44,6 @@ Summary: Library with cross-python path, ini-parsing, io, code, log facil
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
%if %{with docs}
BuildRequires: make
BuildRequires: %{_bindir}/sphinx-build
%endif # with_docs
%if %{with tests} %if %{with tests}
BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub} BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
%endif # with tests %endif # with tests
@ -81,10 +76,6 @@ find . \
%build %build
%py3_build %py3_build
%if %{with docs}
make -C doc html PYTHONPATH=$(pwd)
rm -rf doc/_build/html/.buildinfo
%endif # with docs
%install %install
@ -108,14 +99,14 @@ py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
%doc CHANGELOG.rst %doc CHANGELOG.rst
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%if %{with docs}
%doc doc/_build/html
%endif # with_docs
%{python3_sitelib}/py-*.egg-info/ %{python3_sitelib}/py-*.egg-info/
%{python3_sitelib}/py/ %{python3_sitelib}/py/
%changelog %changelog
* Tue Feb 15 2022 Karolina Surma <ksurma@redhat.com> - 1.11.0-3
- Remove documentation from the package
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild