From 5e1fa838e20fbf29a85bbcc61c80c1fb4977eaa378ee43135f2d759a6c52d3d1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 9 Apr 2024 14:56:49 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-shtab.changes | 4 +++ python-shtab.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ shtab-1.7.1.tar.gz | 3 ++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-shtab.changes create mode 100644 python-shtab.spec create mode 100644 shtab-1.7.1.tar.gz 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/python-shtab.changes b/python-shtab.changes new file mode 100644 index 0000000..383df37 --- /dev/null +++ b/python-shtab.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 9 11:29:05 UTC 2024 - Atri Bhattacharya + +- Initial package. diff --git a/python-shtab.spec b/python-shtab.spec new file mode 100644 index 0000000..921c32b --- /dev/null +++ b/python-shtab.spec @@ -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 diff --git a/shtab-1.7.1.tar.gz b/shtab-1.7.1.tar.gz new file mode 100644 index 0000000..3eeeb06 --- /dev/null +++ b/shtab-1.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e4bcb02eeb82ec45920a5d0add92eac9c9b63b2804c9196c1f1fdc2d039243c +size 45410