From 0fa2f2859f0304a20a2d70705f5f9a921d2990f7 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 188bf30..2418472 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 @@ -118,12 +100,6 @@ sed -i -e 's/distlib>=0.3.6/distlib>=0.3.2/' \ # 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} @@ -167,11 +143,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