Drop the build dependency on tox

This commit is contained in:
Miro Hrončok 2023-05-24 10:35:06 +02:00
parent 490ede4166
commit b81b704481

View File

@ -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 <mhroncok@redhat.com> - 7.1.0-3
- Drop the build dependency on tox
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild