15
0
forked from pool/python-jedi
Files
python-jedi/python-jedi.spec
Todd R 09f3e0c44b Accepting request 598807 from home:TheBlackCat:branches:devel:languages:python
- Update to version 0.12.0
  * Virtualenv/Environment support
  * F-String Completion/Goto Support
  * Cannot crash with segfaults anymore
  * Cleaned up import logic
  * Understand async/await and autocomplete it (including async generators)
  * Better namespace completions
  * Passing tests for Windows (including CI for Windows)
  * Remove Python 2.6 support
- Update to version 0.11.1
  * Parso update - the caching layer was broken
  * Better usages - a lot of internal code was ripped out and improved.
- Remove upstream-included test_requrements.patch
- Add new test_requrements.patch to avoid limit on pytest version.
- Disable tests, they don't work in most situations.

OBS-URL: https://build.opensuse.org/request/show/598807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=23
2018-04-19 19:57:08 +00:00

98 lines
3.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package python-jedi
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Compiled file tests only work on particular architectures and only run on python 3.4
%bcond_with tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jedi
Version: 0.12.0
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
Patch0: test_requrements.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-parso
%if %{with tests}
# Test requirements
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module docopt}
BuildRequires: %{python_module numpydoc}
BuildRequires: %{python_module parso}
BuildRequires: %{python_module pytest >= 2.3.5}
BuildRequires: %{python_module pytest-cache}
BuildRequires: python2-typing
# do not require python3-typing for python >= 3.5
%if 0%{?suse_version} <= 1320
BuildRequires: python3-typing
%endif
BuildRequires: python3-tox
%endif
BuildArch: noarch
%python_subpackages
%description
Jedi is a static analysis tool for Python that can be used in
IDEs/editors. Its focus is autocompletion and static
analysis.
Jedi has support for two different goto functions. Its 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 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}
%patch0 -p1
%build
%python_build
%install
%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
tox -e py%{python3_version_nodots} --sitepackages --skip-missing-interpreters
popd
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.txt CHANGELOG.rst README.rst
%license LICENSE.txt
%{python_sitelib}/jedi-%{version}-py*.egg-info
%{python_sitelib}/jedi/
%changelog