Disable tests on RHEL9 to avoid pulling in the test dependencies

This commit is contained in:
Charalampos Stratakis 2021-03-10 17:43:51 +01:00
parent 2f7ea5fa13
commit 8922d23604

View File

@ -1,16 +1,12 @@
%global modname attrs
%if 0%{?rhel} && 0%{?rhel} <= 7
# Can't run tests on EPEL7 due to need for pytest >= 2.8
# Disable tests on RHEL9 as to not pull in the test dependencies
# Specify --with tests to run the tests e.g. on EPEL
%bcond_with tests
%else
# Turn the tests off when bootstrapping Python, because pytest requires attrs
%bcond_without tests
%endif
%global modname attrs
Name: python-attrs
Version: 20.3.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Python attributes without boilerplate
License: MIT
@ -62,6 +58,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
%{python3_sitelib}/*
%changelog
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.3.0-3
- Disable tests on RHEL9 to avoid pulling in the test dependencies
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild