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:
parent
35334a7c2a
commit
1bd2cd1317
@ -1,6 +1,5 @@
|
||||
# we have a circular (build) dependency with the (new) pytest package
|
||||
# when generating the docs or running the testsuite
|
||||
%bcond_without docs
|
||||
# when running the testsuite
|
||||
# the testsuite is currently not compatible with pytest 3, see
|
||||
# https://github.com/pytest-dev/py/issues/104
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
@ -16,7 +15,7 @@
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.11.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
||||
License: MIT and 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-setuptools
|
||||
BuildRequires: python3-setuptools_scm
|
||||
%if %{with docs}
|
||||
BuildRequires: make
|
||||
BuildRequires: %{_bindir}/sphinx-build
|
||||
%endif # with_docs
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
|
||||
%endif # with tests
|
||||
@ -81,10 +76,6 @@ find . \
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%if %{with docs}
|
||||
make -C doc html PYTHONPATH=$(pwd)
|
||||
rm -rf doc/_build/html/.buildinfo
|
||||
%endif # with docs
|
||||
|
||||
|
||||
%install
|
||||
@ -108,14 +99,14 @@ py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
|
||||
%doc CHANGELOG.rst
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%if %{with docs}
|
||||
%doc doc/_build/html
|
||||
%endif # with_docs
|
||||
%{python3_sitelib}/py-*.egg-info/
|
||||
%{python3_sitelib}/py/
|
||||
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user