From b81b704481265b42aae5699b84bc9b42bcd6784a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 24 May 2023 10:35:06 +0200 Subject: [PATCH] Drop the build dependency on tox --- python-setuptools_scm.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec index f688013..c3038b4 100644 --- a/python-setuptools_scm.spec +++ b/python-setuptools_scm.spec @@ -2,7 +2,7 @@ Name: python-setuptools_scm Version: 7.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Blessed package to manage your versions by SCM tags License: MIT @@ -19,6 +19,10 @@ BuildRequires: git-core %if %{undefined rhel} BuildRequires: mercurial %endif +# Manually listed test dependencies from tox.ini, to avoid pulling tox into RHEL +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(setuptools) >= 45 +BuildRequires: python3dist(virtualenv) > 20 %endif %description @@ -46,7 +50,7 @@ It also handles file finders for the supported SCMs. %generate_buildrequires -%pyproject_buildrequires %{?with_tests:-e %{toxenv}-test} +%pyproject_buildrequires %build @@ -61,7 +65,7 @@ It also handles file finders for the supported SCMs. %if %{with tests} %check # Both of the skipped tests try to download from the internet -%tox -- -- -v -k 'not test_pip_download and not test_distlib_setuptools_works' +%pytest -v -k 'not test_pip_download and not test_distlib_setuptools_works' %endif @@ -71,6 +75,9 @@ It also handles file finders for the supported SCMs. %changelog +* Wed May 24 2023 Miro HronĨok - 7.1.0-3 +- Drop the build dependency on tox + * Fri Jan 20 2023 Fedora Release Engineering - 7.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild