public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-shtab] rawhide: Update to 1.13.0 (close RHBZ#2415592)
Date: Sat, 07 Nov 2026 08:46:31 GMT [thread overview]
Message-ID: <179404119136.1.6118259020846553140.rpms-python-shtab-0e6d2edfabcd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-shtab
Branch : rawhide
Commit : 0e6d2edfabcd13a207835a030005dccc4a5f92aa
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-01T08:30:37+00:00
Stats : +28/-7 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-shtab/c/0e6d2edfabcd13a207835a030005dccc4a5f92aa?branch=rawhide
Log:
Update to 1.13.0 (close RHBZ#2415592)
- Generate and install completions for shtab itself
---
diff --git a/.gitignore b/.gitignore
index 690d456..140c3c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/shtab-1.7.1.tar.gz
/shtab-1.7.2.tar.gz
/shtab-1.8.0.tar.gz
+/shtab-1.13.0.tar.gz
diff --git a/python-shtab.spec b/python-shtab.spec
index bc338c2..8f9b9e5 100644
--- a/python-shtab.spec
+++ b/python-shtab.spec
@@ -1,19 +1,24 @@
%global pypi_name shtab
Name: python-shtab
-Version: 1.8.0
+Version: 1.13.0
Release: %autorelease
Summary: Automagic shell tab completion for Python CLI applications
License: Apache-2.0
URL: https://github.com/iterative/shtab
-Source0: %{pypi_source}
+Source0: %{pypi_source shtab}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(click)
+# These enable additional tests:
+BuildRequires: fish
+BuildRequires: zsh
+BuildRequires: tcsh
%description
Automatically generate shell tab completion scripts for Python CLI apps.
@@ -37,15 +42,31 @@ sed -i -e 's/addopts =/#addopts =/' pyproject.toml
%install
%pyproject_install
-%pyproject_save_files shtab
+%pyproject_save_files --assert-license shtab
+
+# Pre-generate and install completion files for shtab itself. It seems that
+# there is not a reasonable way to install tcsh completions system-wide.
+while read -r shell target
+do
+ install --directory "%{buildroot}$(dirname "${target}")"
+ %{py3_test_envvars} '%{buildroot}%{_bindir}/shtab' \
+ --print-own-completion "${shell}" > "%{buildroot}${target}"
+done <<'EOF'
+bash %{bash_completions_dir}/shtab
+zsh %{zsh_completions_dir}/_shtab
+fish %{fish_completions_dir}/shtab.fish
+EOF
%check
-%pytest
+# -rs: print reasons why some tests are skipped
+%pytest -rs
%files -n python3-shtab -f %{pyproject_files}
-%license LICENCE
%doc README.rst
%{_bindir}/shtab
+%{bash_completions_dir}/shtab
+%{zsh_completions_dir}/_shtab
+%{fish_completions_dir}/shtab.fish
%changelog
%autochangelog
diff --git a/sources b/sources
index 77ce340..49b038a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (shtab-1.7.2.tar.gz) = a9b94774430d70dfab9cbfe9870c7d06e6589571523915a7bd460d1129ce606dec41692fbeeed4f4c86c0e07caa2200c243a234711d70128d3cb969bfa2197c3
-SHA512 (shtab-1.8.0.tar.gz) = 4daf9b3a95ab309400aa466fa599c49cceb1a746d64712c753e05e36bd3e53f69a585e9ef15c57dc031709ff01b545946bf57ee21f8e34c52546850b132f0403
+SHA512 (shtab-1.13.0.tar.gz) = 21b241a07d0bdc7c3a89ae45bc0ab53fc6d5c9515cd14bcfb1167e6d8349d8ccd7027b519d3ee85c4c4ec5a6f8f0db7eed436c145832c2fe86e75926441379df
reply other threads:[~2026-11-07 8:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179404119136.1.6118259020846553140.rpms-python-shtab-0e6d2edfabcd@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox