Don't use xdist on RHEL

This commit is contained in:
Gwyn Ciesla 2023-08-16 15:08:10 -05:00
parent f1d863b702
commit 2c0c0b7f22

View File

@ -4,7 +4,7 @@
Name: python-%{pypi_name}
# NOTICE - Updating this package requires updating python-boto3
Version: 1.31.27
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Low-level, data-driven core of boto 3
License: Apache-2.0
@ -26,8 +26,10 @@ BuildRequires: python3-devel
# For tests:
BuildRequires: python3-jsonschema
BuildRequires: python3-pytest
%if %{undefined rhel}
BuildRequires: python3-pytest-xdist
%endif
%endif
Provides: bundled(python3-six) = 1.16.0
Provides: bundled(python3-requests) = 2.7.0
@ -54,7 +56,7 @@ rm -vr tests/functional/leak
%check
%if %{with tests}
%pytest
%pytest %{!?rhel:-n auto}
%else
%pyproject_check_import -e botocore.crt.auth -e botocore.vendored*
%endif
@ -64,6 +66,9 @@ rm -vr tests/functional/leak
%license LICENSE.txt
%changelog
* Wed Aug 16 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.31.27-2
- Don't use xdist on RHEL.
* Wed Aug 16 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.31.27-1
- 1.31.27