From 224ae7b2c035b39d3a74508564b71498eb2256175be657d393361c7d26a1137c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 Sep 2025 21:02:34 +0000 Subject: [PATCH] - update to 2.7.0: * Add `mysql` and `mysql_unicode` output formats which right- align numbers. * Register the JSON formats so they are actually usable. * Make JSON formats able to encode Decimals and None/NULLs. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cli-helpers?expand=0&rev=22 --- .gitattributes | 23 +++++++++ .gitignore | 1 + cli_helpers-2.7.0.tar.gz | 3 ++ python-cli-helpers.changes | 98 ++++++++++++++++++++++++++++++++++++++ python-cli-helpers.spec | 86 +++++++++++++++++++++++++++++++++ 5 files changed, 211 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cli_helpers-2.7.0.tar.gz create mode 100644 python-cli-helpers.changes create mode 100644 python-cli-helpers.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/cli_helpers-2.7.0.tar.gz b/cli_helpers-2.7.0.tar.gz new file mode 100644 index 0000000..acd728f --- /dev/null +++ b/cli_helpers-2.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62d11710dbebc2fc460003de1215688325d8636859056d688b38419bd4048bc0 +size 40089 diff --git a/python-cli-helpers.changes b/python-cli-helpers.changes new file mode 100644 index 0000000..56ff550 --- /dev/null +++ b/python-cli-helpers.changes @@ -0,0 +1,98 @@ +------------------------------------------------------------------- +Sun Sep 14 21:02:09 UTC 2025 - Dirk Müller + +- update to 2.7.0: + * Add `mysql` and `mysql_unicode` output formats which right- + align numbers. + * Register the JSON formats so they are actually usable. + * Make JSON formats able to encode Decimals and None/NULLs. + +------------------------------------------------------------------- +Sat Jul 12 11:40:58 UTC 2025 - Dirk Müller + +- update to 2.5.0: + * Added noheader CSV and TSV output formats. + * Added `jsonl` and `jsonl_escaped` output formats. + * Added format_timestamps preprocessor for per-column date/time + formatting. + +------------------------------------------------------------------- +Thu May 15 13:08:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Mon Mar 18 10:46:13 UTC 2024 - Dirk Müller + +- update to 2.3.1: + * Don't escape newlines in `ascii` tables, and add + `ascii_escaped` table format. + * Updated tabulate version to latest, to fix ImportError in + pgcli. + +------------------------------------------------------------------- +Wed Jan 4 20:18:48 UTC 2023 - Dirk Müller + +- update to 2.3.0: + * don't escape newlines, etc. in ascii tables, and add + ascii_escaped table format + +------------------------------------------------------------------- +Tue Mar 8 08:01:06 UTC 2022 - pgajdos@suse.com + +- version update to 2.2.1 + Version 2.2.1 + ------------- + * Fix pygments tokens passed as strings + Version 2.2.0 + ------------- + * Remove dependency on terminaltables + * Add psql_unicode table format + * Add minimal table format + * Fix pip2 installing py3-only versions + * Format unprintable bytes (eg 0x00, 0x01) as hex + +------------------------------------------------------------------- +Wed Jun 24 02:11:31 UTC 2020 - Steve Kowalik + +- Update to 2.0.1: + * Fix newline escaping in plain-text formatters (ascii, double, github) + * Use built-in unittest.mock instead of mock. + * Remove Python 2.7 and 3.5. + * Style config for missing value. + +------------------------------------------------------------------- +Thu Apr 23 11:20:58 UTC 2020 - Tomáš Chvátal + +- Do not pull python2 deps without python2 + +------------------------------------------------------------------- +Mon Jun 17 11:18:18 UTC 2019 - Tomáš Chvátal + +- Update to 1.2.1: + * Work with new pygments +- Remove merged patch: + * pygments.patch + +------------------------------------------------------------------- +Tue May 28 10:47:19 UTC 2019 - Tomáš Chvátal + +- Update to 1.2.0: + * Run tests on Python 3.7. + * Use twine check during packaging tests. + * Rename old tsv format to csv-tab (because it add quotes), introduce new tsv output adapter. + * Truncate long fields for tabular display. + * Return the supported table formats as unicode. + * Override tab with 4 spaces for terminal tables. +- Add patch to fix build with new pygments: + * pygments.patch + +------------------------------------------------------------------- +Wed Feb 6 00:29:09 UTC 2019 - Jan Engelhardt + +- Trim bias and excess markup from description. + +------------------------------------------------------------------- +Sun Feb 3 04:52:48 UTC 2019 - John Vandenberg + +- Initial spec for cli-helpers v1.1.0 diff --git a/python-cli-helpers.spec b/python-cli-helpers.spec new file mode 100644 index 0000000..316fe39 --- /dev/null +++ b/python-cli-helpers.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-cli-helpers +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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-cli-helpers +Version: 2.7.0 +Release: 0 +Summary: Helpers for building command-line apps +License: BSD-3-Clause +URL: https://github.com/dbcli/cli_helpers +Source: https://files.pythonhosted.org/packages/source/c/cli_helpers/cli_helpers-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Pygments >= 2.4 +Requires: python-configobj >= 5.0.5 +Requires: python-tabulate >= 0.8.2 +Requires: python-terminaltables >= 3.0.0 +Requires: python-wcwidth +BuildArch: noarch +# SECTION test requirements +# Package dependencies +BuildRequires: %{python_module Pygments >= 2.4} +BuildRequires: %{python_module configobj >= 5.0.5} +BuildRequires: %{python_module pytest >= 3.0.7} +BuildRequires: %{python_module tabulate >= 0.8.2} +BuildRequires: %{python_module terminaltables >= 3.0.0} +BuildRequires: %{python_module wcwidth} +%if %{with python2} +BuildRequires: python2-backports.csv >= 1.0.0 +%endif +# /SECTION +%ifpython2 +Requires: python2-backports.csv >= 1.0.0 +%endif +%python_subpackages + +%description +CLI Helpers is a Python package for performing common tasks when +building command-line apps. It's a helper library for command-line interfaces. + +Libraries like Click and Python Prompt +Toolkit are +tools that help to create quality apps. CLI Helpers complements these +libraries by wrapping up common tasks in interfaces. + +CLI Helpers is not focused on applications' design patterns or +frameworks -- it can be used it on its own or in combination with +other libraries. + +%prep +%setup -q -n cli_helpers-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst AUTHORS CHANGELOG docs +%{python_sitelib}/cli[-_]helpers +%{python_sitelib}/cli[-_]helpers-%{version}*-info + +%changelog