Accepting request 493067 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/493067
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2017-05-17 15:17:46 +00:00 committed by Git OBS Bridge
commit 5ebcb7a885
4 changed files with 98 additions and 42 deletions

3
jedi-0.10.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7abb618cac6470ebbd142e59c23daec5e6e063bfcecc8a43a037d2ab57276f4e
size 381087

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b4c19fba31bdead9ab7350fb9fa7c914c59b0a807dcdd5c00a05feb85491d31
size 334204

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Fri Apr 28 17:16:29 UTC 2017 - jengelh@inai.de
- Grammatical corrections to description.
Replace historic focus by current focus.
-------------------------------------------------------------------
Thu Apr 27 18:17:53 UTC 2017 - toddrme2178@gmail.com
- Fix license.
-------------------------------------------------------------------
Thu Apr 27 15:47:45 UTC 2017 - toddrme2178@gmail.com
- Disable tests on non-x86/x86_64 platforms.
-------------------------------------------------------------------
Tue Apr 25 15:40:49 UTC 2017 - toddrme2178@gmail.com
- Update to version 0.10.2
* Python Packaging sucks. Some files were not included in 0.10.1.
- Update to version 0.10.1
* Fixed a few very annoying bugs.
* Prepared the parser to be factored out of Jedi.
- Update to version 0.10.0
* Actual semantic completions for the complete Python syntax.
* Basic type inference for ``yield from`` PEP 380.
* PEP 484 support (most of the important features of it).
* Added ``get_line_code`` to ``Definition`` and ``Completion``
objects.
* Completely rewritten the type inference engine.
* A new and better parser for (fast) parsing diffs of Python
code.
- Implement single-spec version
-------------------------------------------------------------------
Thu Nov 5 10:32:32 UTC 2015 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jedi
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,60 +16,81 @@
#
Name: python-jedi
Version: 0.9.0
Release: 0
Summary: An autocompletion tool for Python
License: MIT
Group: Development/Languages/Python
Url: https://jedi.readthedocs.org/en/latest/index.html
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-docopt
BuildRequires: python-pytest
BuildRequires: python-setuptools
Requires: python-docopt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildRequires: python-unittest2
# Compiled file tests only work on particular architectures and only run on python 3.4
%ifnarch %ix86 x86_64
%if %{python3_version_nodots} == 34
%bcond_with tests
%else
BuildArch: noarch
%bcond_without tests
%endif
%else
%bcond_without tests
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jedi
Version: 0.10.2
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
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with tests}
# Test requirements
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module docopt}
BuildRequires: %{python_module pytest >= 2.3.5}
BuildRequires: %{python_module pytest-cache}
BuildRequires: %{python_module typing}
BuildRequires: python3-tox
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Jedi is an autocompletion tool for Python. It works. With and without syntax
errors. Sometimes it sucks, but that's normal in dynamic languages. But it
sucks less than other tools. It understands almost all of the basic Python
syntax elements including many builtins.
Jedi is a static analysis tool for Python that can be used in
IDEs/editors. Its focus is autocompletion and static
analysis.
Jedi suports two different goto functions and has support for renaming.
Probably it will also have some support for refactoring in the future.
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 a very simple interface to connect with IDE's. As an reference, there
is a VIM implementation, which uses Jedi's autocompletion. However, I encourage
you to use Jedi in your IDEs. Start writing plugins! If there are problems with
licensing, just contact me.
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}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf build
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
# we don't care about the speed, just that it works
# skip failing import tests on 0.9.0
# skip broken doctests on 0.9.0
py.test -p "no:doctest" -k "not test_speed" --ignore=test/test_integration_import.py --ignore=test/test_evaluate/test_extension.py
%files
export PYTHONDONTWRITEBYTECODE=1
export LANG="en_US.UTF-8"
pushd docs
# we don't care about the speed, just that it works
tox --sitepackages --skip-missing-interpreters
popd
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.txt CHANGELOG.rst README.rst LICENSE.txt
%{python_sitelib}/*
%doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
%{python_sitelib}/jedi-%{version}-py*.egg-info
%{python_sitelib}/jedi/
%changelog