From ae61d484c61bc8c90e3a98898ec49d36d24c8908c33744451959546dfda5b453 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 May 2025 15:16:30 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-completion?expand=0&rev=7 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + click-completion-0.5.2.tar.gz | 3 ++ python-click-completion.changes | 27 ++++++++++++++ python-click-completion.spec | 63 +++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 click-completion-0.5.2.tar.gz create mode 100644 python-click-completion.changes create mode 100644 python-click-completion.spec 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-completion-0.5.2.tar.gz b/click-completion-0.5.2.tar.gz new file mode 100644 index 0000000..f937c0e --- /dev/null +++ b/click-completion-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c7b8b3e78124e1005c9f221a2123b6ec02f3942d2be10f79fe3a5c96a52a96c +size 12581 diff --git a/python-click-completion.changes b/python-click-completion.changes new file mode 100644 index 0000000..aab8c54 --- /dev/null +++ b/python-click-completion.changes @@ -0,0 +1,27 @@ +------------------------------------------------------------------- +Thu May 15 13:19:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Mar 31 12:13:46 UTC 2020 - Marketa Calabkova + +- Update to 0.5.2 + * fix slow completion on projects that provide a cached + get_command_short_help + +------------------------------------------------------------------- +Mon Mar 25 02:57:30 UTC 2019 - John Vandenberg + +- Update to v0.5.1 + * fix DeprecationWarning: invalid escape sequence on python 3.7 + * Don't call compinit in Zsh completion code + * Don't show hidden commands + * Use better short help + * Escape backticks in help messages for zsh + * drop oh-my-zsh specific install + +------------------------------------------------------------------- +Fri Mar 1 01:37:25 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.5.0 diff --git a/python-click-completion.spec b/python-click-completion.spec new file mode 100644 index 0000000..49cf87f --- /dev/null +++ b/python-click-completion.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-click-completion +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +Name: python-click-completion +Version: 0.5.2 +Release: 0 +Summary: Fish, Bash, Zsh and PowerShell completion for Click +License: MIT +Group: Development/Languages/Python +URL: https://github.com/click-contrib/click-completion +Source: https://github.com/click-contrib/click-completion/archive/v%{version}.tar.gz#/click-completion-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Jinja2 +Requires: python-click +Requires: python-shellingham +Requires: python-six +BuildArch: noarch +%ifpython2 +Requires: python-enum34 +%endif +%python_subpackages + +%description +Fish, Bash, Zsh and PowerShell completion for Click. + +%prep +%setup -q -n click-completion-%{version} +sed -i '1 {/^#!/d}' click_completion/*.py examples/* +chmod a-x examples/* + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md examples/ +%license LICENSE +%{python_sitelib}/click[-_]completion +%{python_sitelib}/click[-_]completion-%{version}*-info + +%changelog