Accepting request 491181 from home:TheBlackCat:branches:devel:languages:python
- Update to version 0.10.2 - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/491181 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=12
This commit is contained in:
parent
0e9d5810ab
commit
349b449ea4
3
jedi-0.10.2.tar.gz
Normal file
3
jedi-0.10.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7abb618cac6470ebbd142e59c23daec5e6e063bfcecc8a43a037d2ab57276f4e
|
||||
size 381087
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3b4c19fba31bdead9ab7350fb9fa7c914c59b0a807dcdd5c00a05feb85491d31
|
||||
size 334204
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -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,71 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-jedi
|
||||
Version: 0.9.0
|
||||
Version: 0.10.2
|
||||
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
|
||||
%else
|
||||
BuildArch: noarch
|
||||
Url: https://github.com/davidhalter/jedi
|
||||
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
%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 historic focus is autocompletion, but does static
|
||||
analysis for now as well.
|
||||
|
||||
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. 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 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 a very simple API to connect with IDE’s. There’s 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
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export LANG="en_US.UTF-8"
|
||||
pushd docs
|
||||
# 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
|
||||
tox --sitepackages --skip-missing-interpreters
|
||||
# %%python_expand py.test-%{$python_bin_suffix} -p "no:doctest" -k "not test_speed" --ignore=test/test_integration_import.py --ignore=test/test_evaluate/test_extension.py
|
||||
%endif
|
||||
|
||||
%files
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user