Disable tests and documentation generation on RHEL9 to avoid pulling in dependencies
This commit is contained in:
parent
aa3c0f8272
commit
8ee52b6159
16
pytest.spec
16
pytest.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pytest
|
Name: pytest
|
||||||
Version: 6.2.2
|
Version: 6.2.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pytest.org
|
URL: https://pytest.org
|
||||||
@ -9,8 +9,9 @@ Source0: %{pypi_source}
|
|||||||
# When building pytest for the first time with new Python version
|
# 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.
|
# 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
|
# Disable tests on RHEL9 as to not pull in the test dependencies
|
||||||
%bcond_without tests
|
# 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
|
# Only disabling the optional tests is a more complex but careful approach
|
||||||
# Pytest will skip the related tests, so we only conditionalize the BRs
|
# 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
|
# The bcond is ignored when tests are disabled
|
||||||
%bcond_without timeout
|
%bcond_without timeout
|
||||||
|
|
||||||
# When building pytest for the first time with new Python version
|
# Disable documentation on RHEL9 as to not pull in the docs dependencies
|
||||||
# we also don't have sphinx yet and cannot build docs.
|
# Specify --with docs to generate the documentation e.g. on EPEL
|
||||||
%bcond_without docs
|
%bcond_with docs
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
@ -158,6 +159,9 @@ export INPUTRC=$PWD/.inputrc
|
|||||||
%{python3_sitelib}/pytest/
|
%{python3_sitelib}/pytest/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jan 27 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.2-1
|
||||||
- Update to 6.2.2
|
- Update to 6.2.2
|
||||||
- Update the description
|
- Update the description
|
||||||
|
Loading…
Reference in New Issue
Block a user