From a82a115be5101235daf242ddf613bc37a778d27e8c7e91cfe401df973fa1db74 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 16 May 2025 13:18:34 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-help-colors?expand=0&rev=15 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + click-help-colors-0.9.4.tar.gz | 3 ++ python-click-help-colors.changes | 49 +++++++++++++++++++++++++ python-click-help-colors.spec | 63 ++++++++++++++++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 click-help-colors-0.9.4.tar.gz create mode 100644 python-click-help-colors.changes create mode 100644 python-click-help-colors.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-help-colors-0.9.4.tar.gz b/click-help-colors-0.9.4.tar.gz new file mode 100644 index 0000000..594b554 --- /dev/null +++ b/click-help-colors-0.9.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4cabe52cf550299b8888f4f2ee4c5f359ac27e33bcfe4d61db47785a5cc936c +size 8048 diff --git a/python-click-help-colors.changes b/python-click-help-colors.changes new file mode 100644 index 0000000..f310636 --- /dev/null +++ b/python-click-help-colors.changes @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Fri May 16 08:25:51 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Nov 25 13:06:15 UTC 2023 - Dirk Müller + +- update to 0.9.4: + * Add py.typed to package data in setup.py. + * Add type hints. + +------------------------------------------------------------------- +Mon Sep 11 20:39:23 UTC 2023 - Dirk Müller + +- update to 0.9.2: + * Enable ANSI color when NO_COLOR is an empty string. + * Add non-colored suffix to _colorize for 'usage' + +------------------------------------------------------------------- +Wed May 10 08:37:42 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Wed Jul 28 09:51:35 UTC 2021 - Markéta Machová + +- Update to 0.9.1 + * Add support for Click 8 + * Drop support for Python 2 and 3.5. + +------------------------------------------------------------------- +Tue Mar 31 12:18:10 UTC 2020 - Marketa Calabkova + +- Update to 0.8 + * Add support for NO_COLOR + * Add support for MultiCommands + * Add support for version_option + +------------------------------------------------------------------- +Fri Sep 13 10:59:27 UTC 2019 - Tomáš Chvátal + +- Update to 0.6: + * Added feature to set unique colors for each option. + +------------------------------------------------------------------- +Wed Jul 10 02:45:15 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.5 diff --git a/python-click-help-colors.spec b/python-click-help-colors.spec new file mode 100644 index 0000000..9b123f7 --- /dev/null +++ b/python-click-help-colors.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-click-help-colors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-click-help-colors +Version: 0.9.4 +Release: 0 +Summary: Colorization of help messages in Click +License: MIT +Group: Development/Languages/Python +URL: https://github.com/r-m-n/click-help-colors +Source: https://files.pythonhosted.org/packages/source/c/click-help-colors/click-help-colors-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-click >= 7.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module click >= 7.0} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Colorization of help messages in Click + +%prep +%setup -q -n click-help-colors-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE.txt +%{python_sitelib}/click[-_]help[-_]colors +%{python_sitelib}/click[-_]help[-_]colors-%{version}*-info + +%changelog