forked from pool/python-jedi
- Update to v0.17.0
* Added ``Project`` support. This allows a user to specify which
folders Jedi should work with.
* Added support for Refactoring. The following refactorings have
been implemented: ``Script.rename``, ``Script.inline``,
``Script.extract_variable`` and ``Script.extract_function``.
* Added ``Script.get_syntax_errors`` to display syntax errors in
the current script.
* Added code search capabilities both for individual files and
projects. The new functions are ``Project.search``,
``Project.complete_search``, ``Script.search`` and
``Script.complete_search``.
* Added ``Script.help`` to make it easier to display a help
window to people. Now returns pydoc information as well for
Python keywords/operators. This means that on the class
keyword it will now return the docstring of Python's builtin
function ``help('class')``.
* The API documentation is now way more readable and complete.
Check it out under https://jedi.readthedocs.io. A lot of it
has been rewritten.
* Removed Python 3.4 support
* Many bugfixes
- back to regular releases, no git service needed anymore
- jedi-pr1543-sorttest.patch gh#davidhalter/jedi#1543
OBS-URL: https://build.opensuse.org/request/show/794383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=65
87 lines
2.8 KiB
RPMSpec
87 lines
2.8 KiB
RPMSpec
#
|
||
# 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.17.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
|
||
Source1: %{name}-rpmlintrc
|
||
Patch0: jedi-pr1543-sorttest.patch
|
||
BuildRequires: %{python_module parso >= 0.7.0}
|
||
BuildRequires: %{python_module pytest}
|
||
BuildRequires: %{python_module setuptools}
|
||
BuildRequires: %{python_module typing}
|
||
BuildRequires: fdupes
|
||
BuildRequires: python-rpm-macros
|
||
Requires: python-parso >= 0.7.0
|
||
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. 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.
|
||
|
||
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
|
||
|
||
%build
|
||
%python_build
|
||
|
||
%install
|
||
%python_install
|
||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
||
%check
|
||
export PYTHONDONTWRITEBYTECODE=1
|
||
export LANG="en_US.UTF-8"
|
||
skiptests="test_venv_and_pths"
|
||
skiptests+=" or test_sqlite3_conversion"
|
||
# some architectures are too slow for these optimizer devel checks
|
||
skiptests+=" or test_speed"
|
||
# fails on some architectures
|
||
skiptests+=" or test_init_extension_module"
|
||
%if 0%{?sle_version} == 150100
|
||
# the python 2 pytest test discovery in Leap 15.1 and SLE15 SP1
|
||
# trips on purposely placed syntax errors in test/completion/imports.py
|
||
%define pytestignore --ignore test/__init__.py
|
||
%endif
|
||
%pytest -k "not ($skiptests)" %{?pytestignore}
|
||
|
||
%files %{python_files}
|
||
%doc AUTHORS.txt CHANGELOG.rst README.rst
|
||
%license LICENSE.txt
|
||
%{python_sitelib}/jedi-*-py*.egg-info
|
||
%{python_sitelib}/jedi/
|
||
|
||
%changelog
|