2013-05-10 11:15:41 +00:00
|
|
|
|
#
|
2013-10-24 11:07:18 +00:00
|
|
|
|
# spec file for package python-jedi
|
2013-05-10 11:15:41 +00:00
|
|
|
|
#
|
2019-01-07 08:50:46 +00:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-05-10 11:15:41 +00: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 08:50:46 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-05-10 11:15:41 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
2015-05-07 12:01:38 +00:00
|
|
|
|
|
2018-07-11 07:49:18 +00:00
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-05-10 11:15:41 +00:00
|
|
|
|
Name: python-jedi
|
2019-08-31 13:39:32 +00:00
|
|
|
|
Version: 0.15.1
|
2013-05-10 11:15:41 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
|
Summary: An autocompletion tool for Python
|
2018-07-11 07:49:18 +00:00
|
|
|
|
License: MIT AND Python-2.0
|
2013-05-10 11:15:41 +00:00
|
|
|
|
Group: Development/Languages/Python
|
2018-07-11 07:49:18 +00:00
|
|
|
|
URL: https://github.com/davidhalter/jedi
|
2017-04-26 03:32:20 +00:00
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
2019-07-04 14:40:44 +00:00
|
|
|
|
Patch0: unbundle.patch
|
|
|
|
|
|
BuildRequires: %{python_module parso >= 0.5.0}
|
2019-03-02 15:16:00 +00:00
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-26 03:32:20 +00:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-26 10:49:10 +00:00
|
|
|
|
BuildRequires: %{python_module typing}
|
2017-04-28 18:23:05 +00:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-07-04 14:40:44 +00:00
|
|
|
|
BuildRequires: python-typeshed
|
|
|
|
|
|
Requires: python-parso >= 0.5.0
|
|
|
|
|
|
Requires: python-typeshed
|
2018-07-11 07:49:18 +00:00
|
|
|
|
BuildArch: noarch
|
2017-04-26 03:32:20 +00:00
|
|
|
|
%python_subpackages
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
%description
|
2017-04-26 03:32:20 +00:00
|
|
|
|
Jedi is a static analysis tool for Python that can be used in
|
2017-04-28 18:23:05 +00:00
|
|
|
|
IDEs/editors. Its focus is autocompletion and static
|
|
|
|
|
|
analysis.
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
2017-04-26 03:32:20 +00: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 11:15:41 +00:00
|
|
|
|
|
2017-04-28 18:23:05 +00: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 11:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
%prep
|
2015-05-07 12:01:38 +00:00
|
|
|
|
%setup -q -n jedi-%{version}
|
2019-07-04 14:40:44 +00:00
|
|
|
|
%patch0 -p1
|
2019-08-31 13:39:32 +00:00
|
|
|
|
rm -Rf jedi/third_party
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2017-04-26 03:32:20 +00:00
|
|
|
|
%python_build
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2017-04-26 03:32:20 +00:00
|
|
|
|
%python_install
|
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-08-13 12:23:23 +00:00
|
|
|
|
|
|
|
|
|
|
%check
|
2017-04-26 03:32:20 +00:00
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
|
export LANG="en_US.UTF-8"
|
2019-07-04 14:40:44 +00:00
|
|
|
|
# in OBS venv isn't working and builtin completion tests dont work with unbundled typeshed
|
2019-09-11 12:03:20 +00:00
|
|
|
|
# test_static_analysis is flaky
|
2019-09-12 17:43:48 +00:00
|
|
|
|
# test_os_path_join is time based
|
2019-10-24 18:08:12 +00:00
|
|
|
|
# test_import gh#davidhalter/jedi#1429
|
|
|
|
|
|
%pytest -k "not (test_venv_and_pths or test_completion or test_builtin_details or test_static_analysis or test_os_path_join or test_import)"
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
2017-04-26 03:32:20 +00:00
|
|
|
|
%files %{python_files}
|
2018-04-19 19:57:08 +00:00
|
|
|
|
%doc AUTHORS.txt CHANGELOG.rst README.rst
|
|
|
|
|
|
%license LICENSE.txt
|
2017-04-26 03:32:20 +00:00
|
|
|
|
%{python_sitelib}/jedi-%{version}-py*.egg-info
|
|
|
|
|
|
%{python_sitelib}/jedi/
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
%changelog
|