Avoid python-jedi dependency in RHEL builds

python-jedi is unwanted in RHEL; the tests which use it are skipped
if absent, see the comment for details.

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
Yaakov Selkowitz 2023-05-24 17:47:32 -04:00 committed by Miro Hrončok
parent 5c173e36d1
commit 5cc48f1485
1 changed files with 11 additions and 1 deletions

View File

@ -6,7 +6,7 @@
Name: Cython
Version: 0.29.34
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Language for writing Python extension modules
License: Apache-2.0
@ -24,8 +24,15 @@ BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: gcc-c++
BuildRequires: python3-numpy
# The tests requiring jedi are optional and skipped when jedi is not installed.
# Note that the jedi tests were forcefully disabled a long time ago,
# in https://github.com/cython/cython/issues/1845 far, far away.
# We keep the dependency here so we don't forget to re-add it once the balance is restored.
# We don't want to pull in jedi to RHEL just to potentially run more tests.
%if %{undefined rhel}
BuildRequires: python3-jedi
%endif
%endif
%if %{with cython_compile}
BuildRequires: gcc
@ -133,6 +140,9 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
%changelog
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.29.34-2
- Avoid python-jedi dependency in RHEL builds
* Mon Apr 03 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.34-1
- Update to 0.29.34
- Fixes: rhbz#1823181