Remove unused docs bcond
Sphinx 3 was available for years now and nobody bothered to turn this on. I've tried enabling it and it doe snot work out of the box. Instead of fixing this, i think we should just drop it. There were no user reports about missing documentation and packaging the HTML docs with bundled JavaScript and CSS properly isn't easy.
This commit is contained in:
parent
c28c79566f
commit
3f8f80c8f2
@ -20,15 +20,6 @@ BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-setuptools_scm
|
||||
BuildRequires: python3-six
|
||||
|
||||
# docs need sphinx >= 3
|
||||
# docs need towncrier and that is not yet available when bootstrapping Python
|
||||
%bcond_with docs
|
||||
%if %{with docs}
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
BuildRequires: python3-towncrier
|
||||
%endif
|
||||
|
||||
%bcond_without tests
|
||||
%if %{with tests}
|
||||
BuildRequires: fish
|
||||
@ -83,15 +74,6 @@ written by Ian Bicking, and sponsored by the Open Planning Project. It is
|
||||
licensed under an MIT-style permissive license
|
||||
|
||||
|
||||
%if %{with docs}
|
||||
%package -n python-virtualenv-doc
|
||||
Summary: Documentation for python virtualenv
|
||||
|
||||
%description -n python-virtualenv-doc
|
||||
Documentation for python virtualenv.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n virtualenv-%{version}
|
||||
sed -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py
|
||||
@ -111,12 +93,6 @@ sed -i "s|/usr/share/python-wheels|%{python_wheel_dir}|" src/virtualenv/util/pat
|
||||
# Build code
|
||||
%{py3_build}
|
||||
|
||||
# Build docs
|
||||
%if %{with docs}
|
||||
PYTHONPATH=src %{python3} setup.py build_sphinx
|
||||
rm -f build/sphinx/html/.buildinfo
|
||||
%endif
|
||||
|
||||
%install
|
||||
%{py3_install}
|
||||
|
||||
@ -160,11 +136,6 @@ rm -r tmp_path
|
||||
%{python3_sitelib}/virtualenv/
|
||||
%{python3_sitelib}/virtualenv-*.egg-info/
|
||||
|
||||
%if %{with docs}
|
||||
%files -n python-virtualenv-doc
|
||||
%doc build/sphinx/*
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 14 2022 Lumír Balhar <lbalhar@redhat.com> - 20.16.7-1
|
||||
|
Loading…
Reference in New Issue
Block a user