commit b61bcb1104a938766673f043337224a832b6ebfa04720b17ff02314162ea7b12 Author: Todd R Date: Fri May 10 11:15:41 2013 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jedi-0.5b5.tar.gz b/jedi-0.5b5.tar.gz new file mode 100644 index 0000000..f347f0a --- /dev/null +++ b/jedi-0.5b5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44e9cf12cf260058728eba67163440ab5d6625eef036028560abcda41a6cb883 +size 71754 diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..c2d69d5 --- /dev/null +++ b/pre_checkin.sh @@ -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 diff --git a/python-jedi.changes b/python-jedi.changes new file mode 100644 index 0000000..4a6a53d --- /dev/null +++ b/python-jedi.changes @@ -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 + diff --git a/python-jedi.spec b/python-jedi.spec new file mode 100644 index 0000000..fef30dc --- /dev/null +++ b/python-jedi.spec @@ -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 + diff --git a/python3-jedi.changes b/python3-jedi.changes new file mode 100644 index 0000000..4a6a53d --- /dev/null +++ b/python3-jedi.changes @@ -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 + diff --git a/python3-jedi.spec b/python3-jedi.spec new file mode 100644 index 0000000..f8c9914 --- /dev/null +++ b/python3-jedi.spec @@ -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 +