2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
2013-10-24 13:07:18 +02:00
|
|
|
|
# spec file for package python-jedi
|
2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
2021-03-13 14:35:01 +01:00
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-01-07 09:50:46 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
|
|
|
|
|
2015-05-07 14:01:38 +02:00
|
|
|
|
|
2018-07-11 09:49:18 +02:00
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-12-25 21:51:50 +01:00
|
|
|
|
%define skip_python2 1
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Name: python-jedi
|
2021-12-11 13:23:44 +01:00
|
|
|
|
Version: 0.18.1
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: An autocompletion tool for Python
|
2018-07-11 09:49:18 +02:00
|
|
|
|
License: MIT AND Python-2.0
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Group: Development/Languages/Python
|
2018-07-11 09:49:18 +02:00
|
|
|
|
URL: https://github.com/davidhalter/jedi
|
2020-09-03 22:22:47 +02:00
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
2020-04-14 10:51:52 +02:00
|
|
|
|
Source1: %{name}-rpmlintrc
|
2020-12-25 20:29:21 +01:00
|
|
|
|
BuildRequires: %{python_module parso >= 0.8.0}
|
2022-01-11 00:23:04 +01:00
|
|
|
|
BuildRequires: %{python_module pytest >= 5}
|
2017-04-26 05:32:20 +02:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-26 11:49:10 +01:00
|
|
|
|
BuildRequires: %{python_module typing}
|
2017-04-28 20:23:05 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-12-25 20:29:21 +01:00
|
|
|
|
Requires: python-parso >= 0.8.0
|
2018-07-11 09:49:18 +02:00
|
|
|
|
BuildArch: noarch
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_subpackages
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%description
|
2017-04-26 05:32:20 +02:00
|
|
|
|
Jedi is a static analysis tool for Python that can be used in
|
2017-04-28 20:23:05 +02:00
|
|
|
|
IDEs/editors. Its focus is autocompletion and static
|
|
|
|
|
analysis.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
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.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-28 20:23:05 +02:00
|
|
|
|
Jedi uses an API to connect with IDEs. There is a reference
|
|
|
|
|
implementation as a VIM plugin which uses Jedi's autocompletion.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%prep
|
2021-03-13 14:35:01 +01:00
|
|
|
|
%autosetup -p1 -n jedi-%{version}
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_build
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%install
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-08-13 14:23:23 +02:00
|
|
|
|
|
|
|
|
|
%check
|
2017-04-26 05:32:20 +02:00
|
|
|
|
export LANG="en_US.UTF-8"
|
2020-04-14 10:51:52 +02:00
|
|
|
|
skiptests="test_venv_and_pths"
|
|
|
|
|
skiptests+=" or test_sqlite3_conversion"
|
|
|
|
|
# some architectures are too slow for these optimizer devel checks
|
|
|
|
|
skiptests+=" or test_speed"
|
2020-04-15 23:09:37 +02:00
|
|
|
|
# fails on some architectures
|
|
|
|
|
skiptests+=" or test_init_extension_module"
|
2021-12-11 13:23:44 +01:00
|
|
|
|
# https://github.com/davidhalter/jedi/issues/1824
|
|
|
|
|
skiptests+=" or (test_completion and lambdas and 112)"
|
|
|
|
|
%pytest -k "not ($skiptests)"
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%files %{python_files}
|
2018-04-19 21:57:08 +02:00
|
|
|
|
%doc AUTHORS.txt CHANGELOG.rst README.rst
|
|
|
|
|
%license LICENSE.txt
|
2020-03-17 10:17:41 +01:00
|
|
|
|
%{python_sitelib}/jedi-*-py*.egg-info
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%{python_sitelib}/jedi/
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%changelog
|