2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
2013-10-24 13:07:18 +02:00
|
|
|
|
# spec file for package python-jedi
|
2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
2017-04-26 05:32:20 +02:00
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2015-05-07 14:01:38 +02:00
|
|
|
|
|
2017-04-27 17:48:23 +02:00
|
|
|
|
# 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
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%bcond_without tests
|
2017-04-27 17:48:23 +02:00
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
%endif
|
2017-04-26 05:32:20 +02:00
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Name: python-jedi
|
2017-04-26 05:32:20 +02:00
|
|
|
|
Version: 0.10.2
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: An autocompletion tool for Python
|
2013-12-08 20:58:34 +01:00
|
|
|
|
License: MIT
|
2013-05-10 13:15:41 +02:00
|
|
|
|
Group: Development/Languages/Python
|
2017-04-26 05:32:20 +02:00
|
|
|
|
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
|
2013-05-10 13:15:41 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildArch: noarch
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_subpackages
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%description
|
2017-04-26 05:32:20 +02:00
|
|
|
|
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.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
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.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
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.
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%prep
|
2015-05-07 14:01:38 +02:00
|
|
|
|
%setup -q -n jedi-%{version}
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_build
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%install
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-08-13 14:23:23 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%if %{with tests}
|
2014-08-13 14:23:23 +02:00
|
|
|
|
%check
|
2017-04-27 17:48:23 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
|
pushd docs
|
2014-08-13 14:23:23 +02:00
|
|
|
|
# we don't care about the speed, just that it works
|
2017-04-26 05:32:20 +02:00
|
|
|
|
tox --sitepackages --skip-missing-interpreters
|
2017-04-27 17:48:23 +02:00
|
|
|
|
popd
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%endif
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%files %{python_files}
|
2013-12-08 20:58:34 +01:00
|
|
|
|
%defattr(-,root,root,-)
|
2017-04-26 05:32:20 +02:00
|
|
|
|
%doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
|
|
|
|
|
%{python_sitelib}/jedi-%{version}-py*.egg-info
|
|
|
|
|
%{python_sitelib}/jedi/
|
2013-05-10 13:15:41 +02:00
|
|
|
|
|
|
|
|
|
%changelog
|