commit 65ad550bc09be65b8477642007c240ea0c38c28e2b95b6de1de6be4c12239857 Author: Dirk Mueller Date: Wed Jul 5 11:45:44 2017 +0000 Accepting request 508196 from home:sebix needed for python-shodan OBS-URL: https://build.opensuse.org/request/show/508196 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-plugins?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/click-plugins-1.0.3.tar.gz b/click-plugins-1.0.3.tar.gz new file mode 100644 index 0000000..18e4c59 --- /dev/null +++ b/click-plugins-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7acc5e7eedd2dfd719714e8d53ae99030b5357aed661d0b06dacd6c2d583d7c5 +size 7950 diff --git a/python-click-plugins.changes b/python-click-plugins.changes new file mode 100644 index 0000000..3a18d68 --- /dev/null +++ b/python-click-plugins.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jul 4 15:11:11 UTC 2017 - sebix+novell.com@sebix.at + +- initial package diff --git a/python-click-plugins.spec b/python-click-plugins.spec new file mode 100644 index 0000000..b94dc5e --- /dev/null +++ b/python-click-plugins.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-click-plugins +# +# Copyright (c) 2017 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-click-plugins +Version: 1.0.3 +Release: 0 +License: BSD-3-Clause +Summary: An extension for click to register CLI commands via setuptools entry-points +Url: https://github.com/click-contrib/click-plugins +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/c/click-plugins/click-plugins-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module click >= 3.0} +BuildRequires: %{python_module pytest} +%endif +Requires: %{python_module click >= 3.0} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages + +%description +Use a decorator to get setuptools entry points that allows others to use your commandline utility as a home for their related sub-commands. You get to choose where these sub-commands or sub-groups can be registered but the plugin developer gets to choose they ARE registered. You could have all plugins register alongside the core commands, in a special sub-group, across multiple sub-groups, or some combination. + +%prep +%setup -q -n click-plugins-%{version} + +%build + +%python_build + +%install +%python_install + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc AUTHORS.txt CHANGES.md README.rst +%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 +%%license LICENSE.txt +%else +%doc LICENSE.txt +%endif +%{python_sitelib}/* + +%changelog