15
0

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cli-helpers?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2019-06-04 14:30:49 +00:00
committed by Git OBS Bridge
parent e4e5566bb6
commit 977de85085
5 changed files with 256 additions and 18 deletions

View File

@@ -18,21 +18,29 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cli-helpers
Version: 1.1.0
Version: 1.2.0
Release: 0
Summary: Helpers for building command-line apps
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/dbcli/cli_helpers
Source: https://files.pythonhosted.org/packages/source/c/cli-helpers/cli_helpers-%{version}.tar.gz
URL: https://github.com/dbcli/cli_helpers
Source: https://files.pythonhosted.org/packages/source/c/cli_helpers/cli_helpers-%{version}.tar.gz
Patch0: pygments.patch
BuildRequires: %{python_module setuptools}
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 mock >= 2.0.0}
BuildRequires: %{python_module pytest >= 3.0.7}
# Package dependencies
BuildRequires: %{python_module Pygments >= 1.6}
BuildRequires: %{python_module configobj >= 5.0.5}
BuildRequires: %{python_module tabulate >= 0.8.2}
BuildRequires: %{python_module terminaltables >= 3.0.0}
BuildRequires: %{python_module wcwidth}
@@ -40,17 +48,9 @@ BuildRequires: %{python_module wcwidth}
BuildRequires: python2-backports.csv >= 1.0.0
%endif
# /SECTION
BuildRequires: fdupes
BuildArch: noarch
Requires: python-Pygments >= 1.6
Requires: python-configobj >= 5.0.5
Requires: python-tabulate >= 0.8.2
Requires: python-terminaltables >= 3.0.0
Requires: python-wcwidth
%ifpython2
Requires: python2-backports.csv >= 1.0.0
%endif
%python_subpackages
%description
@@ -68,6 +68,7 @@ other libraries.
%prep
%setup -q -n cli_helpers-%{version}
%patch0 -p1
%build
%python_build
@@ -77,7 +78,7 @@ other libraries.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest
%pytest
%files %{python_files}
%license LICENSE