From 349b449ea4002cc9ef176115b1d01d64215db527043f92fa9d090e85bb3f9fc4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 26 Apr 2017 03:32:20 +0000 Subject: [PATCH 1/4] 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 --- jedi-0.10.2.tar.gz | 3 ++ jedi-0.9.0.tar.gz | 3 -- python-jedi.changes | 19 +++++++++++ python-jedi.spec | 79 ++++++++++++++++++++++++++------------------- 4 files changed, 67 insertions(+), 37 deletions(-) create mode 100644 jedi-0.10.2.tar.gz delete mode 100644 jedi-0.9.0.tar.gz diff --git a/jedi-0.10.2.tar.gz b/jedi-0.10.2.tar.gz new file mode 100644 index 0000000..5ba8c07 --- /dev/null +++ b/jedi-0.10.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7abb618cac6470ebbd142e59c23daec5e6e063bfcecc8a43a037d2ab57276f4e +size 381087 diff --git a/jedi-0.9.0.tar.gz b/jedi-0.9.0.tar.gz deleted file mode 100644 index c577641..0000000 --- a/jedi-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b4c19fba31bdead9ab7350fb9fa7c914c59b0a807dcdd5c00a05feb85491d31 -size 334204 diff --git a/python-jedi.changes b/python-jedi.changes index 3e4e15a..5bd900d 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -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 diff --git a/python-jedi.spec b/python-jedi.spec index 19c60f2..0799134 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -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 From ae493fe52117261865293a181a296a3a08e7582486ee38529c18fafefd874696 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 27 Apr 2017 15:48:23 +0000 Subject: [PATCH 2/4] Accepting request 491636 from home:TheBlackCat:branches:devel:languages:python Disable tests on non-x86/x86_64 platforms. OBS-URL: https://build.opensuse.org/request/show/491636 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=13 --- python-jedi.changes | 5 +++++ python-jedi.spec | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/python-jedi.changes b/python-jedi.changes index 5bd900d..0692bea 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-jedi.spec b/python-jedi.spec index 0799134..afaf5ab 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -16,7 +16,16 @@ # +# 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 %bcond_without tests +%endif +%else +%bcond_without tests +%endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jedi @@ -69,12 +78,13 @@ implementation as a VIM-Plugin, which uses Jedi’s autocompletion. %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 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 +popd %endif %files %{python_files} From c8202edc466e3719971c30121d7e2a8acba676f951a714b2c8cc1563066b2e95 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 27 Apr 2017 18:18:48 +0000 Subject: [PATCH 3/4] Accepting request 491686 from home:TheBlackCat:branches:devel:languages:python Fix license. OBS-URL: https://build.opensuse.org/request/show/491686 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=14 --- python-jedi.changes | 5 +++++ python-jedi.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-jedi.changes b/python-jedi.changes index 0692bea..b622809 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 27 18:17:53 UTC 2017 - toddrme2178@gmail.com + +- Fix license. + ------------------------------------------------------------------- Thu Apr 27 15:47:45 UTC 2017 - toddrme2178@gmail.com diff --git a/python-jedi.spec b/python-jedi.spec index afaf5ab..f4513df 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -32,7 +32,7 @@ Name: python-jedi Version: 0.10.2 Release: 0 Summary: An autocompletion tool for Python -License: MIT +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 From 3f0e48a544878337467e18d5cd52d2bd523708881768b8ba15cdc0e747afee48 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Fri, 28 Apr 2017 18:23:05 +0000 Subject: [PATCH 4/4] Accepting request 491914 from home:jengelh:branches:devel:languages:python - Grammatical corrections to description. Replace historic focus by current focus. OBS-URL: https://build.opensuse.org/request/show/491914 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=15 --- python-jedi.changes | 6 ++++++ python-jedi.spec | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-jedi.changes b/python-jedi.changes index b622809..673faf0 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-jedi.spec b/python-jedi.spec index f4513df..70753b8 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -36,10 +36,10 @@ 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: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros %if %{with tests} # Test requirements BuildRequires: %{python_module colorama} @@ -55,16 +55,16 @@ BuildArch: noarch %description 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. +IDEs/editors. Its focus is autocompletion and static +analysis. 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 API to connect with IDE’s. There’s a reference -implementation as a VIM-Plugin, which uses Jedi’s autocompletion. +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}