From: Jakub Bogusz Date: Mon, 14 Mar 2022 19:48:55 +0000 (+0100) Subject: - more doc dependencies, disable pytest plugins X-Git-Tag: auto/th/python-click-7.1.2-4~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e9802f93412c408de7e5a34888e0f5e829b04211;p=packages%2Fpython-click.git - more doc dependencies, disable pytest plugins --- diff --git a/python-click.spec b/python-click.spec index 93695bd..f7bdbfd 100644 --- a/python-click.spec +++ b/python-click.spec @@ -9,6 +9,7 @@ Summary: A simple wrapper around optparse for powerful command line utilities Summary(pl.UTF-8): Proste obudowanie optparse do tworzenia potężnych narzędzi linii poleceń Name: python-%{module} +# keep 7.x here for python2 support Version: 7.1.2 Release: 3 License: BSD @@ -33,8 +34,10 @@ BuildRequires: python3-setuptools BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 %if %{with doc} -BuildRequires: sphinx-pdg-3 -BuildRequires: python3-pallets-sphinx-themes +BuildRequires: sphinx-pdg-3 >= 2.4.4 +BuildRequires: python3-pallets-sphinx-themes >= 1.2.3 +BuildRequires: python3-sphinxcontrib-log-cabinet >= 1.0.1 +BuildRequires: python3-sphinx_issues >= 1.2.0 %endif Requires: python-modules >= 1:2.7 BuildArch: noarch @@ -92,6 +95,7 @@ Dokumentacja do modułu Pythona click. %if %{with tests} LC_ALL=C.UTF-8 \ +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python} -m pytest tests --tb=long --verbose %endif @@ -101,6 +105,7 @@ PYTHONPATH=$(pwd)/src \ %py3_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python3} -m pytest tests --tb=long --verbose %endif