python-jedi/python-jedi.spec
Ondřej Súkup 49510a83a9 - update to 0.16.0
* Added Script.get_context to get information where you currently are.
 * Completions/type inference of Pytest fixtures.
 * Tensorflow, Numpy and Pandas completions should now be about 4-10x faster after the first time they are used.
 * Dict key completions are working now. e.g. d = {1000: 3}; d[10 will expand to 1000.
 * Completion for “proxies” works now. These are classes that have a __getattr__(self, name) method that does a return getattr(x, name). after loading them initially.
 * Goto on a function/attribute in a class now goes to the definition in its super class.
 * Big Script API Changes:
   + The line and column parameters of jedi.Script are now deprecated
   + completions deprecated, use complete instead
   + goto_assignments deprecated, use goto instead
   + goto_definitions deprecated, use infer instead
   + call_signatures deprecated, use get_signatures instead
   + usages deprecated, use get_references instead
   + jedi.names deprecated, use jedi.Script(...).get_names()
 * BaseDefinition.goto_assignments renamed to BaseDefinition.goto
 * Add follow_imports to Definition.goto. Now its signature matches Script.goto.
 * Python 2 support deprecated. For this release it is best effort. Python 2 has reached the end of its life and now it’s just about a smooth transition. Bugs for Python 2 will not be fixed anymore and a third of the tests are already skipped.
 * Removed settings.no_completion_duplicates. It wasn’t tested and nobody was probably using it anyway.
 * Removed settings.use_filesystem_cache and settings.additional_dynamic_modules, they have no usage anymore. Pretty much nobody was probably using them.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=53
2020-02-04 09:39:35 +00:00

83 lines
2.9 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package python-jedi
#
# Copyright (c) 2020 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jedi
Version: 0.16.0
Release: 0
Summary: An autocompletion tool for Python
License: MIT AND Python-2.0
Group: Development/Languages/Python
URL: https://github.com/davidhalter/jedi
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
Patch0: unbundle.patch
BuildRequires: %{python_module parso >= 0.5.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python-typeshed
Requires: python-parso >= 0.5.0
Requires: python-typeshed
BuildArch: noarch
%python_subpackages
%description
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. Its 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.
Jedi uses an API to connect with IDEs. There is a reference
implementation as a VIM plugin which uses Jedi's autocompletion.
%prep
%setup -q -n jedi-%{version}
%patch0 -p1
rm -Rf jedi/third_party
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
export LANG="en_US.UTF-8"
# in OBS venv isn't working and builtin completion tests dont work with unbundled typeshed
# test_static_analysis is flaky
# test_os_path_join is time based
# test_import and test_compiled_signature gh#davidhalter/jedi#1429
# test_module__file__ and test_sqlite3_conversion based on 'bundled' typeshed
%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 or test_compiled_signature or test_module__file__ or test_sqlite3_conversion)"
%files %{python_files}
%doc AUTHORS.txt CHANGELOG.rst README.rst
%license LICENSE.txt
%{python_sitelib}/jedi-%{version}-py*.egg-info
%{python_sitelib}/jedi/
%changelog