Disable tests and documentation generation on RHEL9 to avoid pulling in dependencies

This commit is contained in:
Charalampos Stratakis 2021-03-10 17:27:10 +01:00
parent aa3c0f8272
commit 8ee52b6159

View File

@ -1,6 +1,6 @@
Name: pytest
Version: 6.2.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Simple powerful testing with Python
License: MIT
URL: https://pytest.org
@ -9,8 +9,9 @@ Source0: %{pypi_source}
# When building pytest for the first time with new Python version
# we might not yet have all the BRs, those conditionals allow us to do that.
# This can be used to disable all tests for faster bootstrapping
%bcond_without tests
# 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
# Only disabling the optional tests is a more complex but careful approach
# Pytest will skip the related tests, so we only conditionalize the BRs
@ -23,9 +24,9 @@ Source0: %{pypi_source}
# The bcond is ignored when tests are disabled
%bcond_without timeout
# When building pytest for the first time with new Python version
# we also don't have sphinx yet and cannot build docs.
%bcond_without docs
# Disable documentation on RHEL9 as to not pull in the docs dependencies
# Specify --with docs to generate the documentation e.g. on EPEL
%bcond_with docs
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -158,6 +159,9 @@ export INPUTRC=$PWD/.inputrc
%{python3_sitelib}/pytest/
%changelog
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 6.2.2-2
- Disable tests and documentation generation on RHEL9 to avoid pulling in dependencies
* Wed Jan 27 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.2-1
- Update to 6.2.2
- Update the description