From 8ee52b615999f000ab6b5137fb850f72fd3d0ef4 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 10 Mar 2021 17:27:10 +0100 Subject: [PATCH] Disable tests and documentation generation on RHEL9 to avoid pulling in dependencies --- pytest.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pytest.spec b/pytest.spec index de43b27..a863a40 100644 --- a/pytest.spec +++ b/pytest.spec @@ -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 - 6.2.2-2 +- Disable tests and documentation generation on RHEL9 to avoid pulling in dependencies + * Wed Jan 27 2021 Miro HronĨok - 6.2.2-1 - Update to 6.2.2 - Update the description