Accepting request 174878 from home:mvyskocil

add python-jedi / python3-jedi to d:l:python (to be forwarded to Factory)

OBS-URL: https://build.opensuse.org/request/show/174878
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=1
This commit is contained in:
Todd R 2013-05-10 11:15:41 +00:00 committed by Git OBS Bridge
commit b61bcb1104
8 changed files with 210 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
jedi-0.5b5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44e9cf12cf260058728eba67163440ab5d6625eef036028560abcda41a6cb883
size 71754

7
pre_checkin.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
NAME2=python-jedi
NAME3=python3-jedi
sed "s,build_for_python3 0,build_for_python3 1,;s,^\(Name: *\)${NAME2},\1${NAME3}," ${NAME2}.spec > ${NAME3}.spec
cp ${NAME2}.changes ${NAME3}.changes

10
python-jedi.changes Normal file
View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Thu May 9 07:53:19 UTC 2013 - mvyskocil@suse.com
- package python3 variant via pre_checkin.sh
-------------------------------------------------------------------
Thu May 2 09:16:31 UTC 2013 - mvyskocil@suse.com
- first packaging of jedi 0.5b5 for SUSE

78
python-jedi.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package
#
# 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/
#
%global build_for_python3 0
%if %{build_for_python3}
%global my_sitelib %{python3_sitelib}
%global my_python %{_bindir}/python3
%else
%global my_sitelib %{python_sitelib}
%global my_python %{_bindir}/python2
%endif
Name: python-jedi
Version: 0.5~b5
Release: 0
License: LGPL-3.0+
Summary: An autocompletion tool for Python
URL: https://jedi.readthedocs.org/en/latest/index.html
Group: Development/Languages/Python
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-0.5b5.tar.gz
%if %{build_for_python3}
BuildRequires: python3-devel
BuildRequires: python3-distribute
%else
BuildRequires: python-devel
BuildRequires: python-distribute
%endif
# '~' is supported since rpm 4.10, so avoid building with older rpms
BuildRequires: rpm-build >= 4.10
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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
%setup -q -n jedi-0.5b5
%build
%{my_python} setup.py build
%install
%{my_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(0644,root,root,0755)
%doc AUTHORS.txt README.rst LICENSE.txt
%{my_sitelib}/*
%changelog

10
python3-jedi.changes Normal file
View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Thu May 9 07:53:19 UTC 2013 - mvyskocil@suse.com
- package python3 variant via pre_checkin.sh
-------------------------------------------------------------------
Thu May 2 09:16:31 UTC 2013 - mvyskocil@suse.com
- first packaging of jedi 0.5b5 for SUSE

78
python3-jedi.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package
#
# 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/
#
%global build_for_python3 1
%if %{build_for_python3}
%global my_sitelib %{python3_sitelib}
%global my_python %{_bindir}/python3
%else
%global my_sitelib %{python_sitelib}
%global my_python %{_bindir}/python2
%endif
Name: python3-jedi
Version: 0.5~b5
Release: 0
License: LGPL-3.0+
Summary: An autocompletion tool for Python
URL: https://jedi.readthedocs.org/en/latest/index.html
Group: Development/Languages/Python
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-0.5b5.tar.gz
%if %{build_for_python3}
BuildRequires: python3-devel
BuildRequires: python3-distribute
%else
BuildRequires: python-devel
BuildRequires: python-distribute
%endif
# '~' is supported since rpm 4.10, so avoid building with older rpms
BuildRequires: rpm-build >= 4.10
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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
%setup -q -n jedi-0.5b5
%build
%{my_python} setup.py build
%install
%{my_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(0644,root,root,0755)
%doc AUTHORS.txt README.rst LICENSE.txt
%{my_sitelib}/*
%changelog