Accepting request 715640 from devel:languages:python
- update to 0.14.1 * CallSignature.index should now be working a lot better * A couple of smaller bugfixes - update to 0.14.0 - enable tests - add unbundle.patch * Added goto_*(prefer_stubs=True) as well as goto_*(prefer_stubs=True) * Stubs are used now for type inference * Typeshed is used for better type inference * Reworked Definition.full_name, should have more correct return values OBS-URL: https://build.opensuse.org/request/show/715640 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=13
This commit is contained in:
commit
a53426f66f
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2bb0603e3506f708e792c7f4ad8fc2a7a9d9c2d292a358fbbd58da531695595b
|
||||
size 366598
|
3
jedi-0.14.1.tar.gz
Normal file
3
jedi-0.14.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:53c850f1a7d3cfcd306cc513e2450a54bdf5cacd7604b74e42dd1f0758eaaf36
|
||||
size 860206
|
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 16 10:41:56 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 0.14.1
|
||||
* CallSignature.index should now be working a lot better
|
||||
* A couple of smaller bugfixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 4 11:12:49 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 0.14.0
|
||||
- enable tests
|
||||
- add unbundle.patch
|
||||
* Added goto_*(prefer_stubs=True) as well as goto_*(prefer_stubs=True)
|
||||
* Stubs are used now for type inference
|
||||
* Typeshed is used for better type inference
|
||||
* Reworked Definition.full_name, should have more correct return values
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 29 12:51:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -18,20 +18,23 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-jedi
|
||||
Version: 0.13.3
|
||||
Version: 0.14.1
|
||||
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 parso >= 0.3.0}
|
||||
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
|
||||
Requires: python-parso >= 0.3.0
|
||||
BuildRequires: python-typeshed
|
||||
Requires: python-parso >= 0.5.0
|
||||
Requires: python-typeshed
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -50,6 +53,8 @@ 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
|
||||
@ -61,9 +66,8 @@ implementation as a VIM plugin which uses Jedi's autocompletion.
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export LANG="en_US.UTF-8"
|
||||
# Don't bother with tests, this thing is broken on python3.7 and newer and
|
||||
# upstream needs to rewrite quite a lot
|
||||
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} test/
|
||||
# in OBS venv isn't working and builtin completion tests dont work with unbundled typeshed
|
||||
%pytest -k "not test_venv_and_pths and not test_completion and not test_builtin_details"
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.txt CHANGELOG.rst README.rst
|
||||
|
34
unbundle.patch
Normal file
34
unbundle.patch
Normal file
@ -0,0 +1,34 @@
|
||||
Index: jedi-0.14.0/setup.py
|
||||
===================================================================
|
||||
--- jedi-0.14.0.orig/setup.py
|
||||
+++ jedi-0.14.0/setup.py
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
-import os
|
||||
import ast
|
||||
|
||||
__AUTHOR__ = 'David Halter'
|
||||
@@ -17,8 +16,6 @@ readme = open('README.rst').read() + '\n
|
||||
with open('requirements.txt') as f:
|
||||
install_requires = f.read().splitlines()
|
||||
|
||||
-assert os.path.isfile("jedi/third_party/typeshed/LICENSE"), \
|
||||
- "Please download the typeshed submodule first (Hint: git submodule update --init)"
|
||||
|
||||
setup(name='jedi',
|
||||
version=version,
|
||||
Index: jedi-0.14.0/jedi/evaluate/gradual/typeshed.py
|
||||
===================================================================
|
||||
--- jedi-0.14.0.orig/jedi/evaluate/gradual/typeshed.py
|
||||
+++ jedi-0.14.0/jedi/evaluate/gradual/typeshed.py
|
||||
@@ -8,7 +8,7 @@ from jedi.evaluate.base_context import C
|
||||
from jedi.evaluate.gradual.stub_context import TypingModuleWrapper, StubModuleContext
|
||||
|
||||
_jedi_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
-TYPESHED_PATH = os.path.join(_jedi_path, 'third_party', 'typeshed')
|
||||
+TYPESHED_PATH = "/usr/share/typeshed"
|
||||
|
||||
_IMPORT_MAP = dict(
|
||||
_collections='collections',
|
Loading…
x
Reference in New Issue
Block a user