diff --git a/jedi-0.13.3.tar.gz b/jedi-0.13.3.tar.gz deleted file mode 100644 index b0e7313..0000000 --- a/jedi-0.13.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2bb0603e3506f708e792c7f4ad8fc2a7a9d9c2d292a358fbbd58da531695595b -size 366598 diff --git a/jedi-0.14.1.tar.gz b/jedi-0.14.1.tar.gz new file mode 100644 index 0000000..5da4428 --- /dev/null +++ b/jedi-0.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53c850f1a7d3cfcd306cc513e2450a54bdf5cacd7604b74e42dd1f0758eaaf36 +size 860206 diff --git a/python-jedi.changes b/python-jedi.changes index 835040b..ee2b9db 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Jul 16 10:41:56 UTC 2019 - Ondřej Súkup + +- 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 + +- 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 diff --git a/python-jedi.spec b/python-jedi.spec index a68549d..6ccb36f 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -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 diff --git a/unbundle.patch b/unbundle.patch new file mode 100644 index 0000000..707f6af --- /dev/null +++ b/unbundle.patch @@ -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',