diff --git a/python-jedi.changes b/python-jedi.changes index 133a486..bc2ad71 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jan 3 19:08:04 UTC 2023 - Ben Greiner + +- Move to PEP517 +- Pin parso like upstream does +- Skip a test for embedded systems which unexplicably fails on + backports 15.4_py39 + ------------------------------------------------------------------- Tue Dec 6 03:49:55 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-jedi.spec b/python-jedi.spec index 6ef1262..8d4bc7e 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -1,7 +1,7 @@ # # spec file for package python-jedi # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-jedi Version: 0.18.2 @@ -27,13 +26,16 @@ Group: Development/Languages/Python URL: https://github.com/davidhalter/jedi Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz Source1: %{name}-rpmlintrc -BuildRequires: %{python_module parso >= 0.8.0} +BuildRequires: %{python_module parso >= 0.8.0 with %python-parso < 0.9} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 5} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-parso >= 0.8.0 +# The author of jedi and parso takes pinning very seriously, adhere to it! +Requires: (python-parso >= 0.8.0 with python-parso < 0.9) BuildArch: noarch %python_subpackages @@ -42,7 +44,7 @@ Jedi is a static analysis tool for Python that can be used in IDEs/editors. Its focus is autocompletion and static analysis. -Jedi has support for two different goto functions. It’s possible to +Jedi has support for two different goto functions. It's possible to search for related names and to list all names in a Python file and infer them. Jedi understands docstrings and you can use Jedi autocompletion in your REPL as well. @@ -54,10 +56,10 @@ implementation as a VIM plugin which uses Jedi's autocompletion. %autosetup -p1 -n jedi-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -73,13 +75,14 @@ skiptests+=" or (test_completion and lambdas and 112)" # https://github.com/davidhalter/jedi/issues/1846 skiptests+=" or (test_completion and conftest and 27)" skiptests+=" or (test_completion and pytest and 142)" - +# This fails on 15.4_py39 server-side but not locally (!?) +skiptests+=" or test_get_default_environment_when_embedded" %pytest -k "not ($skiptests)" %files %{python_files} %doc AUTHORS.txt CHANGELOG.rst README.rst %license LICENSE.txt -%{python_sitelib}/jedi-*-py*.egg-info +%{python_sitelib}/jedi-%{version}.dist-info %{python_sitelib}/jedi/ %changelog