commit 2ca055fe68943736e6e1bf1f7996325d0c9ddd65a98aa4aa85a2073ab4daf2d4 Author: Tomáš Chvátal Date: Sat Jan 19 12:17:35 2019 +0000 Accepting request 667116 from home:alois:branches:devel:languages:python - initial package for version 0.6.4 OBS-URL: https://build.opensuse.org/request/show/667116 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pick?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/pick-0.6.4.tar.gz b/pick-0.6.4.tar.gz new file mode 100644 index 0000000..9bffb02 --- /dev/null +++ b/pick-0.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfbe977083ec3e7e34fbb817fd31857027ce87f8a4f0a9de1908958aae278dcf +size 58251 diff --git a/python-pick.changes b/python-pick.changes new file mode 100644 index 0000000..7cf136e --- /dev/null +++ b/python-pick.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Dec 16 19:29:40 UTC 2018 - munix9@googlemail.com + +- initial package for version 0.6.4 + diff --git a/python-pick.spec b/python-pick.spec new file mode 100644 index 0000000..b15e63b --- /dev/null +++ b/python-pick.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-pick +# +# 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 https://bugs.opensuse.org/ +# + + +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +Name: python-pick +Version: 0.6.4 +Release: 0 +Summary: Create curses based interactive selection list in the terminal +License: MIT +Group: Development/Languages/Python +URL: https://github.com/wong2/pick +Source0: https://files.pythonhosted.org/packages/source/p/pick/pick-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with tests} +BuildRequires: %{python_module curses} +BuildRequires: %{python_module pytest} +%endif +%python_subpackages + +%description +pick is a small python library to help you create curses +based interactive selection list in the terminal. + +%prep +%setup -q -n pick-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%if %{with tests} +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} +%endif + +%files %{python_files} +%license LICENSE +%doc README.md example/ +%{python_sitelib}/* + +%changelog