15
0

Accepting request 1227086 from home:ojkastl_buildservice:Branch_devel_languages_python

new package python-click-extra: Drop-in replacement for Click to make user-friendly and colorful CLI

OBS-URL: https://build.opensuse.org/request/show/1227086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-extra?expand=0&rev=1
This commit is contained in:
2024-11-28 17:50:54 +00:00
committed by Git OBS Bridge
commit d5acbe7192
5 changed files with 133 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

View File

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

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Nov 14 09:06:16 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package python-click-extra: Drop-in replacement for Click to
make user-friendly and colorful CLI

101
python-click-extra.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package python-click-extra
#
# Copyright (c) 2024 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/
#
%define module_name click-extra
%{?sle15_python_module_pythons}
Name: python-click-extra
Version: 4.11.5
Release: 0
Summary: Drop-in replacement for Click to make user-friendly and colorful CLI
License: GPL-2.0-or-later
URL: https://github.com/kdeldycke/click-extra
Source: https://github.com/kdeldycke/click-extra/archive/v%{version}.tar.gz#/%{module_name}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L67
BuildRequires: %{python_module boltons >= 24.1.0}
BuildRequires: %{python_module click >= 8.1.4}
BuildRequires: %{python_module cloup >= 3.0.5}
BuildRequires: %{python_module commentjson >= 0.9.0}
BuildRequires: %{python_module extra-platforms >= 1.6.0}
BuildRequires: %{python_module mergedeep >= 1.3.4}
BuildRequires: %{python_module PyYAML >= 6.0.0}
BuildRequires: %{python_module requests >= 2.32.3}
BuildRequires: %{python_module tabulate >= 0.9}
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
BuildRequires: %{python_module wcmatch >= 10.0}
BuildRequires: %{python_module xmltodict >= 0.14.2}
# SECTION test requirements
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L117
BuildRequires: %{python_module pytest >= 8}
BuildRequires: %{python_module pygments >= 2.14}
BuildRequires: %{python_module pygments-ansi-color >= 0.3.0}
BuildRequires: %{python_module pytest-cases >= 3.8.3}
BuildRequires: %{python_module pytest-httpserver >= 1.0.6}
BuildRequires: %{python_module pytest-randomly >= 3.16.0}
# /SECTION
BuildRequires: fdupes
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L67
Requires: python-boltons >= 24.1.0
Requires: python-click >= 8.1.4
Requires: python-cloup >= 3.0.5
Requires: python-commentjson >= 0.9.0
Requires: python-mergedeep >= 1.3.4
Requires: python-extra-platforms >= 1.6.0
Requires: python-PyYAML >= 6.0.0
Requires: python-requests >= 2.32.3
Requires: python-tabulate >= 0.9
Requires: (python-tomli >= 2.0.1 if python-base < 3.11)
Requires: python-wcmatch >= 10.0
Requires: python-xmltodict >= 0.14.2
# https://github.com/kdeldycke/click-extra/blob/v4.8.3/pyproject.toml#L94
Suggests: python-pygments >= 2.14
Suggests: python-pygments-ansi-color >= 0.3.0
BuildArch: noarch
%python_subpackages
%description
🌈 Drop-in replacement for Click to make user-friendly and colorful CLI
%prep
%autosetup -p1 -n %{module_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# remove coverage configuration
sed -i '/cov=/d' pyproject.toml
sed -i '/cov-report=/d' pyproject.toml
sed -i '/cov-config=pyproject.toml/d' pyproject.toml
# ignore test that requires network connectivity
%pytest -k 'not (test_ansi_lexers_candidates)'
%files %{python_files}
%{python_sitelib}/click_extra
%{python_sitelib}/click_extra-%{version}.dist-info
%changelog