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
|
Thu Nov 5 10:32:32 UTC 2015 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jedi
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-jedi
|
||||||
Version: 0.9.0
|
Version: 0.10.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An autocompletion tool for Python
|
Summary: An autocompletion tool for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://jedi.readthedocs.org/en/latest/index.html
|
Url: https://github.com/davidhalter/jedi
|
||||||
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-docopt
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-pytest
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
Requires: python-docopt
|
%if %{with tests}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# Test requirements
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: %{python_module colorama}
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
BuildRequires: %{python_module docopt}
|
||||||
BuildRequires: python-unittest2
|
BuildRequires: %{python_module pytest >= 2.3.5}
|
||||||
%else
|
BuildRequires: %{python_module pytest-cache}
|
||||||
BuildArch: noarch
|
BuildRequires: %{python_module typing}
|
||||||
|
BuildRequires: python3-tox
|
||||||
%endif
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Jedi is an autocompletion tool for Python. It works. With and without syntax
|
Jedi is a static analysis tool for Python that can be used in
|
||||||
errors. Sometimes it sucks, but that's normal in dynamic languages. But it
|
IDEs/editors. Its historic focus is autocompletion, but does static
|
||||||
sucks less than other tools. It understands almost all of the basic Python
|
analysis for now as well.
|
||||||
syntax elements including many builtins.
|
|
||||||
|
|
||||||
Jedi suports two different goto functions and has support for renaming.
|
Jedi has support for two different goto functions. It’s possible to
|
||||||
Probably it will also have some support for refactoring in the future.
|
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
|
Jedi uses a very simple API to connect with IDE’s. There’s a reference
|
||||||
is a VIM implementation, which uses Jedi's autocompletion. However, I encourage
|
implementation as a VIM-Plugin, which uses Jedi’s autocompletion.
|
||||||
you to use Jedi in your IDEs. Start writing plugins! If there are problems with
|
|
||||||
licensing, just contact me.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jedi-%{version}
|
%setup -q -n jedi-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
rm -rf build
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
pushd docs
|
||||||
# we don't care about the speed, just that it works
|
# we don't care about the speed, just that it works
|
||||||
# skip failing import tests on 0.9.0
|
tox --sitepackages --skip-missing-interpreters
|
||||||
# skip broken doctests on 0.9.0
|
# %%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
|
||||||
py.test -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,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS.txt CHANGELOG.rst README.rst LICENSE.txt
|
%doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/jedi-%{version}-py*.egg-info
|
||||||
|
%{python_sitelib}/jedi/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user