From f0695c60f54a91da142c5ecae20b83d978411b50 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Sep 27 2023 16:17:18 +0000 Subject: Run tests in parallel --- diff --git a/python-textdistance.spec b/python-textdistance.spec index 1c65ee9..76f69a8 100644 --- a/python-textdistance.spec +++ b/python-textdistance.spec @@ -41,6 +41,8 @@ Patch: https://github.com/life4/textdistance/pull/87.patch BuildArch: noarch BuildRequires: python3-devel +# For running tests in parallel: +BuildRequires: %{py3_dist pytest-xdist} %global _description %{expand: TextDistance - python library for comparing distance between two or more @@ -144,7 +146,7 @@ k="${k-}${k+ and } not test_qval[None-Hamming]" k="${k-}${k+ and } not test_qval[None-Levenshtein]" %endif -%pytest -v -k "${k-}" +%pytest -v -k "${k-}" -n auto %files -n python3-textdistance -f %{pyproject_files}