remove build dependency on python-railroad-diagrams

Resolves: RHEL-37536

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
This commit is contained in:
Maurizio Lombardi 2024-05-21 09:29:14 +02:00
parent 48b3f1f261
commit 9ebd253e22

View File

@ -66,8 +66,7 @@ dos2unix -k examples/*
%generate_buildrequires
# tox lists only the [diagrams] extra and coverage as deps, so we bypass it
%pyproject_buildrequires %{?with_tests:-x diagrams}
%pyproject_buildrequires
%build
@ -88,9 +87,11 @@ popd
%check
%pyproject_check_import %{!?with_tests:-e pyparsing.diagram}
%pyproject_check_import -e pyparsing.diagram
%if %{with tests}
%pytest -v
# Exclude test_range_check, testEmptyExpressionsAreHandledProperly and the test_diagram.py module
# because they depend on python-railroad-diagrams
%pytest -v -k 'not test_range_check and not testEmptyExpressionsAreHandledProperly' --ignore tests/test_diagram.py
%endif