From 3f8f80c8f2dbb396b2dd609aad219523800d9c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 25 Nov 2022 12:14:24 +0100 Subject: [PATCH] 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. --- python-virtualenv.spec | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 6ccee35..067bdd7 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -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 - 20.16.7-1