From dba0830e52a6f2472ea04033c91aff26e86f83827e1be0b3bcc271f09f67ea40 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 22 Oct 2024 13:58:32 +0000 Subject: [PATCH] - update to 1.0.5: * typing hints * fix cmd.name to name * dependency bumps OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-aliases?expand=0&rev=9 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + click-aliases-1.0.4-gh.tar.gz | 3 ++ click-aliases-1.0.5-gh.tar.gz | 3 ++ python-click-aliases.changes | 29 +++++++++++++++ python-click-aliases.spec | 66 +++++++++++++++++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 click-aliases-1.0.4-gh.tar.gz create mode 100644 click-aliases-1.0.5-gh.tar.gz create mode 100644 python-click-aliases.changes create mode 100644 python-click-aliases.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-aliases-1.0.4-gh.tar.gz b/click-aliases-1.0.4-gh.tar.gz new file mode 100644 index 0000000..086303a --- /dev/null +++ b/click-aliases-1.0.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1474c7587a85af101337eb391af45f239131a8f2008f52a4a2188722049edabe +size 25755 diff --git a/click-aliases-1.0.5-gh.tar.gz b/click-aliases-1.0.5-gh.tar.gz new file mode 100644 index 0000000..0f58c94 --- /dev/null +++ b/click-aliases-1.0.5-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:726f7f3b3b88d37e144130485dfcb4be95a05e1adf4527cf96ebde3a59447e13 +size 28075 diff --git a/python-click-aliases.changes b/python-click-aliases.changes new file mode 100644 index 0000000..aec6653 --- /dev/null +++ b/python-click-aliases.changes @@ -0,0 +1,29 @@ +------------------------------------------------------------------- +Tue Oct 22 13:58:08 UTC 2024 - Dirk Müller + +- update to 1.0.5: + * typing hints + * fix cmd.name to name + * dependency bumps + +------------------------------------------------------------------- +Wed Dec 27 10:09:10 UTC 2023 - Dirk Müller + +- update to 1.0.4: + * support new click versions + * convert to poetry + +------------------------------------------------------------------- +Mon Apr 27 07:15:45 UTC 2020 - Tomáš Chvátal + +- Disable test_invalid checks, quotes change in output + +------------------------------------------------------------------- +Thu Sep 19 03:41:04 UTC 2019 - John Vandenberg + +- Add LANG to %check to fix build on Leap + +------------------------------------------------------------------- +Mon Aug 26 02:14:14 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.0.1 diff --git a/python-click-aliases.spec b/python-click-aliases.spec new file mode 100644 index 0000000..17e4946 --- /dev/null +++ b/python-click-aliases.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-click-aliases +# +# Copyright (c) 2024 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-click-aliases +Version: 1.0.5 +Release: 0 +Summary: Command aliases for Click +License: MIT +URL: https://github.com/click-contrib/click-aliases +Source: https://github.com/click-contrib/click-aliases/archive/refs/tags/v%{version}.tar.gz#/click-aliases-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-click +BuildArch: noarch +# SECTION test requirements +# See https://github.com/click-contrib/click-aliases/issues/5 +# for problems with click 6.7 currently on Leap. +BuildRequires: %{python_module click >= 7.0} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Command aliases for Click. + +%prep +%setup -q -n click-aliases-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +# test_invalid fails with new click as the quotes in output changed from single to regular ones +%pytest -k 'not test_invalid' + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/click_aliases +%{python_sitelib}/click_aliases-%{version}.dist-info + +%changelog