2013-05-10 11:15:41 +00:00
|
|
|
#
|
2013-10-24 11:07:18 +00:00
|
|
|
# spec file for package python-jedi
|
2013-05-10 11:15:41 +00:00
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: python-jedi
|
2013-12-08 19:58:34 +00:00
|
|
|
Version: 0.7.0
|
2013-05-10 11:15:41 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: An autocompletion tool for Python
|
2013-12-08 19:58:34 +00:00
|
|
|
License: MIT
|
2013-05-10 11:15:41 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-10-24 11:07:18 +00:00
|
|
|
Url: https://jedi.readthedocs.org/en/latest/index.html
|
2013-08-19 11:41:05 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
2013-05-10 11:15:41 +00:00
|
|
|
BuildRequires: python-devel
|
2013-10-24 11:07:18 +00:00
|
|
|
BuildRequires: python-setuptools
|
2013-05-10 11:15:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-12-08 19:58:34 +00:00
|
|
|
%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()")}
|
|
|
|
|
%else
|
2013-05-10 11:15:41 +00:00
|
|
|
BuildArch: noarch
|
2013-12-08 19:58:34 +00:00
|
|
|
%endif
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
%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 suports two different goto functions and has support for renaming.
|
|
|
|
|
Probably it will also have some support for refactoring in the future.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-08-19 11:41:05 +00:00
|
|
|
%setup -q -n jedi-%{version}
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
%build
|
2013-12-08 19:58:34 +00:00
|
|
|
python setup.py build
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
%install
|
2013-12-08 19:58:34 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
%files
|
2013-12-08 19:58:34 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-05-10 11:15:41 +00:00
|
|
|
%doc AUTHORS.txt README.rst LICENSE.txt
|
2013-12-08 19:58:34 +00:00
|
|
|
%{python_sitelib}/*
|
2013-05-10 11:15:41 +00:00
|
|
|
|
|
|
|
|
%changelog
|