remove build dependency on python-railroad-diagrams
Resolves: RHEL-37536 Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
This commit is contained in:
parent
48b3f1f261
commit
9ebd253e22
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user