From 5bed0f0edbe79cf15430df1f13a0d888a11af394 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 22 Jul 2019 15:08:36 +0200 Subject: [PATCH] Remove dependency on python2-xdist --- python-sqlalchemy.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec index 5bea9e4..d34fa81 100644 --- a/python-sqlalchemy.spec +++ b/python-sqlalchemy.spec @@ -21,7 +21,6 @@ BuildRequires: python2-devel >= 2.6 BuildRequires: python2-setuptools BuildRequires: python2-mock BuildRequires: python2-pytest -BuildRequires: python2-pytest-xdist %if 0%{?with_python3} BuildRequires: python3-devel @@ -84,6 +83,10 @@ This package includes the python 3 version of the module. %prep %setup -n %{srcname}-%{srcversion} +# Remove flag for pytest-xdist. (python2-pytest-xdist is a removed dependency.) +# (--max-worker-restart=5 would end the test run after 5 crashing tests.) +sed -i -e's/\(addopts = .*\) --max-worker-restart=5/\1/' setup.cfg + %build %py2_build @@ -125,6 +128,9 @@ PYTHONPATH=. %{__python3} -m pytest test %endif # with_python3 %changelog +* Mon Jul 22 2019 Petr Viktorin +- Remove dependency on python2-xdist + * Tue Jun 18 2019 Randy Barlow - 1.3.5-1 - Update to 1.3.5 (#1721271). - https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-1.3.5