commit a8e30bfc5a93a839f99d0aa8f38cccae2b1bba18ac5db1562938d5c370d6ad7c Author: Todd R Date: Tue Feb 5 19:04:54 2019 +0000 Accepting request 670795 from home:jayvdb:coala - Initial spec for cli-helpers v1.1.0 OBS-URL: https://build.opensuse.org/request/show/670795 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cli-helpers?expand=0&rev=1 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-1.1.0.tar.gz b/cli_helpers-1.1.0.tar.gz new file mode 100644 index 0000000..2be49ac --- /dev/null +++ b/cli_helpers-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c2038bba0c41f41acae0f6e660ff3b00d69f55d9d968f024952cace78111e12 +size 29998 diff --git a/python-cli-helpers.changes b/python-cli-helpers.changes new file mode 100644 index 0000000..91d02b8 --- /dev/null +++ b/python-cli-helpers.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..5b1db76 --- /dev/null +++ b/python-cli-helpers.spec @@ -0,0 +1,87 @@ +# +# spec file for package python-cli-helpers +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-cli-helpers +Version: 1.1.0 +Release: 0 +License: BSD-3-Clause +Summary: Helpers for building command-line apps +Url: https://github.com/dbcli/cli_helpers +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/c/cli-helpers/cli_helpers-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module pytest >= 3.0.7} +BuildRequires: %{python_module mock >= 2.0.0} +# Package dependencies +BuildRequires: %{python_module configobj >= 5.0.5} +BuildRequires: %{python_module tabulate >= 0.8.2} +BuildRequires: %{python_module terminaltables >= 3.0.0} +BuildRequires: %{python_module Pygments >= 1.6} +BuildRequires: %{python_module wcwidth} +%ifpython2 +BuildRequires: python2-backports.csv >= 1.0.0 +%endif +# /SECTION +BuildRequires: fdupes +BuildArch: noarch +Requires: python-configobj >= 5.0.5 +Requires: python-tabulate >= 0.8.2 +Requires: python-terminaltables >= 3.0.0 +Requires: python-wcwidth +Requires: python-Pygments >= 1.6 +%ifpython2 +Requires: python2-backports.csv >= 1.0.0 +%endif + +%python_subpackages + +%description +CLI Helpers is a Python package that makes it easy to perform common tasks when +building command-line apps. It's a helper library for command-line interfaces. + +Libraries like `Click `_ and +`Python Prompt Toolkit `_ +are amazing tools that help you create quality apps. CLI Helpers complements +these libraries by wrapping up common tasks in simple interfaces. + +CLI Helpers is not focused on your app's design pattern or framework -- you can +use it on its own or in combination with other libraries. It's lightweight and +easy to extend. + + +%prep +%setup -q -n cli_helpers-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec -m pytest + +%files %{python_files} +%license LICENSE +%doc README.rst AUTHORS CHANGELOG docs +%{python_sitelib}/* + +%changelog