[packages/python-sphinxcontrib-asyncio] - disable python3 here

qboosh qboosh at pld-linux.org
Mon Mar 28 19:58:11 CEST 2022


commit b191528a5d89b6289d704350a1516cc558fec5d2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 28 19:58:03 2022 +0200

    - disable python3 here

 python-sphinxcontrib-asyncio.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/python-sphinxcontrib-asyncio.spec b/python-sphinxcontrib-asyncio.spec
index 22586b0..607f150 100644
--- a/python-sphinxcontrib-asyncio.spec
+++ b/python-sphinxcontrib-asyncio.spec
@@ -1,13 +1,14 @@
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
-%bcond_with	tests	# unit tests (not included in release tarball)
+%bcond_with	tests	# unit tests (not included in sdist)
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-sphinxcontrib-asyncio.spec)
 
 Summary:	Sphinx extension to support coroutines in markup
 Summary(pl.UTF-8):	Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
 Name:		python-sphinxcontrib-asyncio
+# keep 0.2.x here for python2/sphinx 1.x support
 Version:	0.2.0
 Release:	4
 License:	Apache v2
@@ -20,6 +21,7 @@ URL:		https://pypi.org/project/sphinxcontrib-asyncio/
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %if %{with tests}
+BuildRequires:	python-Sphinx
 BuildRequires:	python-pytest
 %endif
 %endif
@@ -27,6 +29,7 @@ BuildRequires:	python-pytest
 BuildRequires:	python3-modules >= 1:3.3
 BuildRequires:	python3-setuptools
 %if %{with tests}
+BuildRequires:	python3-Sphinx
 BuildRequires:	python3-pytest
 %endif
 %endif
@@ -78,6 +81,7 @@ Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python} -m pytest tests
 %endif
 %endif
@@ -86,6 +90,7 @@ Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python3} -m pytest tests
 %endif
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-asyncio.git/commitdiff/b191528a5d89b6289d704350a1516cc558fec5d2



More information about the pld-cvs-commit mailing list