14
0
forked from pool/python-shtab

Accepting request 1166427 from home:badshah400:Staging

Python module required by power-profiles-daemon version 0.21.

OBS-URL: https://build.opensuse.org/request/show/1166427
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shtab?expand=0&rev=1
This commit is contained in:
2024-04-09 14:56:49 +00:00
committed by Git OBS Bridge
commit 5e1fa838e2
5 changed files with 102 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

4
python-shtab.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Apr 9 11:29:05 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Initial package.

71
python-shtab.spec Normal file
View File

@@ -0,0 +1,71 @@
#
# spec file for package python-shtab
#
# 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/
#
Name: python-shtab
Version: 1.7.1
Release: 0
Summary: Automagic shell tab completion for Python CLI applications
License: Apache-2.0
URL: https://github.com/iterative/shtab
Source: https://files.pythonhosted.org/packages/source/s/shtab/shtab-1.7.1.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 42}
BuildRequires: %{python_module setuptools_scm >= 3.4}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
# Section Tests
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
# /Section
%python_subpackages
%description
Automagic shell tab completion for Python CLI applications
%prep
%autosetup -p1 -n shtab-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/shtab
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative shtab
%postun
%python_uninstall_alternative shtab
%files %{python_files}
%doc README.rst
%python_alternative %{_bindir}/shtab
%{python_sitelib}/shtab
%{python_sitelib}/shtab-%{version}.dist-info
%changelog

3
shtab-1.7.1.tar.gz Normal file
View File

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