From 05e3512fd85494dab99c44a2fe3b8300d30b4715b8d98d71ea58f67458aca6fc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 21 Mar 2023 16:19:34 +0000 Subject: [PATCH] Accepting request 1073554 from home:marxin:branches:devel:languages:python - Run tests in parallel. OBS-URL: https://build.opensuse.org/request/show/1073554 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-git-versioning?expand=0&rev=9 --- python-setuptools-git-versioning.changes | 5 +++++ python-setuptools-git-versioning.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-setuptools-git-versioning.changes b/python-setuptools-git-versioning.changes index 70c8ce3..c3f90bb 100644 --- a/python-setuptools-git-versioning.changes +++ b/python-setuptools-git-versioning.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 21 13:30:49 UTC 2023 - Martin Liška + +- Run tests in parallel. + ------------------------------------------------------------------- Fri Mar 3 04:03:58 UTC 2023 - Steve Kowalik diff --git a/python-setuptools-git-versioning.spec b/python-setuptools-git-versioning.spec index a5d72e4..a073676 100644 --- a/python-setuptools-git-versioning.spec +++ b/python-setuptools-git-versioning.spec @@ -45,6 +45,7 @@ BuildRequires: %{python_module Deprecated} BuildRequires: %{python_module build} BuildRequires: %{python_module coverage} BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml} @@ -85,7 +86,7 @@ donttest="test_substitution_env" donttest="$donttest or (test_version_file_count_commits and sha)" # broken under Python 3.11 donttest="$donttest or test_substitution_timestamp" -%pytest -k "not ($donttest)" +%pytest -k "not ($donttest)" -n auto %post %python_install_alternative setuptools-git-versioning