17
0

- 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
This commit is contained in:
2025-09-14 21:02:34 +00:00
committed by Git OBS Bridge
commit 224ae7b2c0
5 changed files with 211 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
cli_helpers-2.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62d11710dbebc2fc460003de1215688325d8636859056d688b38419bd4048bc0
size 40089

View File

@@ -0,0 +1,98 @@
-------------------------------------------------------------------
Sun Sep 14 21:02:09 UTC 2025 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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á <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Mar 18 10:46:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <tchvatal@suse.com>
- Do not pull python2 deps without python2
-------------------------------------------------------------------
Mon Jun 17 11:18:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <tchvatal@suse.com>
- 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 <jengelh@inai.de>
- Trim bias and excess markup from description.
-------------------------------------------------------------------
Sun Feb 3 04:52:48 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for cli-helpers v1.1.0

86
python-cli-helpers.spec Normal file
View File

@@ -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 <http://click.pocoo.org/5/> and Python Prompt
Toolkit <https://python-prompt-toolkit.readthedocs.io/en/latest/> 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