Compare commits
33 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2c0f5a4ad | ||
|
|
ed11b58d1b | ||
|
|
0c1730dea5 | ||
|
|
694472609a | ||
|
|
4f38f3bda6 | ||
|
|
68425cf39d | ||
|
|
09f9f02045 | ||
|
|
f5fa45bb87 | ||
|
|
6f258e0bd0 | ||
|
|
4a9bf0709e | ||
|
|
74e0e7fa5c | ||
|
|
5287d73eb3 | ||
|
|
ab47cffdd4 | ||
|
|
cb184cc719 | ||
|
|
244e423122 | ||
|
|
f07efce696 | ||
|
|
c0577fe889 | ||
|
|
9f9ef003c3 | ||
|
|
39626eadb0 | ||
|
|
21e5954f94 | ||
|
|
7dd763028b | ||
|
|
adb35e66aa | ||
|
|
af7437c3ba | ||
|
|
73df7d3b89 | ||
|
|
d34cbd39e7 | ||
|
|
b94070aac1 | ||
|
|
a2f36ac86d | ||
|
|
a1ba83d3f0 | ||
|
|
925a815f9f | ||
|
|
bcf02a8abf | ||
|
|
e46b783240 | ||
|
|
b7c6a0f1b6 | ||
|
|
8a4031ad6d |
7 changed files with 156 additions and 88 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
/pybugz-0.11-git3459d.tar.gz
|
/pybugz-*.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
diff --git a/bugz/cli.py b/bugz/cli.py
|
|
||||||
index aa45d3b..12e2224 100644
|
|
||||||
--- a/bugz/cli.py
|
|
||||||
+++ b/bugz/cli.py
|
|
||||||
@@ -240,7 +240,10 @@ class PrettyBugz:
|
|
||||||
log_info(log_msg)
|
|
||||||
|
|
||||||
if not 'status' in params.keys():
|
|
||||||
- params['status'] = ['CONFIRMED', 'IN_PROGRESS', 'UNCONFIRMED']
|
|
||||||
+ params['status'] = ['CONFIRMED', 'IN_PROGRESS',
|
|
||||||
+ 'UNCONFIRMED', 'NEW', 'ASSIGNED', 'ON_DEV',
|
|
||||||
+ 'POST', 'MODIFIED', 'ON_QA', 'VERIFIED',
|
|
||||||
+ 'RELEASE_PENDING']
|
|
||||||
elif 'ALL' in params['status']:
|
|
||||||
del params['status']
|
|
||||||
|
|
||||||
diff --git a/bugzrc.example b/bugzrc.example
|
|
||||||
index f516bf0..e8e1234 100644
|
|
||||||
--- a/bugzrc.example
|
|
||||||
+++ b/bugzrc.example
|
|
||||||
@@ -59,3 +59,20 @@
|
|
||||||
#
|
|
||||||
# All parameters listed above can be used in the default section if you
|
|
||||||
# only use one bugzilla installation.
|
|
||||||
+
|
|
||||||
+[gentoo]
|
|
||||||
+base: https://bugs.gentoo.org/xmlrpc.cgi
|
|
||||||
+columns: 80
|
|
||||||
+encoding: utf-8
|
|
||||||
+# user: myname@my.project.com
|
|
||||||
+# password: secret2
|
|
||||||
+
|
|
||||||
+[redhat]
|
|
||||||
+base: https://bugzilla.redhat.com/xmlrpc.cgi
|
|
||||||
+columns: 80
|
|
||||||
+encoding: utf-8
|
|
||||||
+# user: myname@my.project.com
|
|
||||||
+# password: secret2
|
|
||||||
+
|
|
||||||
+[default]
|
|
||||||
+connection: redhat
|
|
||||||
diff --git a/man/bugz.1 b/man/bugz.1
|
|
||||||
index 5a88494..365ab7e 100644
|
|
||||||
--- a/man/bugz.1
|
|
||||||
+++ b/man/bugz.1
|
|
||||||
@@ -28,6 +28,12 @@ This man page is a stub; the bugz program has extensive built in help.
|
|
||||||
will show the help for the global options and
|
|
||||||
.B bugz [subcommand] -h
|
|
||||||
will show the help for a specific subcommand.
|
|
||||||
+.SH CONFIGURATION
|
|
||||||
+PyBugz is still configured just using the ~/.bugzrc file. For simple template
|
|
||||||
+look at the bugzrc.example
|
|
||||||
+.B (rpm -qd pybugz | grep example)
|
|
||||||
+- you may copy it directly into your home directory to make PyBugz work by
|
|
||||||
+default with Red Hat bugzilla.
|
|
||||||
.SH BUGS
|
|
||||||
.PP
|
|
||||||
The home page of this project is http://www.github.com/williamh/pybugz.
|
|
||||||
52
pybugz-0.13-gitbb0ae-limit-configurable.patch
Normal file
52
pybugz-0.13-gitbb0ae-limit-configurable.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
From 0bd2517f92874c758ec30177c5df4ecdf222236b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pavel Raiskup <praiskup@redhat.com>
|
||||||
|
Date: Fri, 3 Dec 2021 13:41:53 +0100
|
||||||
|
Subject: [PATCH] Query limit to be configurable
|
||||||
|
|
||||||
|
Red Hat Bugzilla applied policy that anonymous queries can get at most
|
||||||
|
20 lines in the API output, and authenticated queries up to 1000.
|
||||||
|
|
||||||
|
So it is probably a good idea to "push" Red Hat maintainers to the
|
||||||
|
authentication (interactive=True) a little bit more and set some
|
||||||
|
reasonable default limit (limit=1000), otherwise the output will be very
|
||||||
|
limited (and there's a risk that user misses some bugs thinking that the
|
||||||
|
output is complete).
|
||||||
|
|
||||||
|
Both of those options can be changed in $HOME/.bugzrc.
|
||||||
|
|
||||||
|
Proposed:
|
||||||
|
https://github.com/williamh/pybugz/pull/111
|
||||||
|
---
|
||||||
|
bugz/settings.py | 5 +++++
|
||||||
|
pybugz.d/redhat.conf | 2 ++
|
||||||
|
2 files changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/bugz/settings.py b/bugz/settings.py
|
||||||
|
index c45481c..1666f38 100644
|
||||||
|
--- a/bugz/settings.py
|
||||||
|
+++ b/bugz/settings.py
|
||||||
|
@@ -123,6 +123,11 @@ class Settings:
|
||||||
|
else:
|
||||||
|
self.insecure = False
|
||||||
|
|
||||||
|
+ if not hasattr(self, 'limit'):
|
||||||
|
+ if config.has_option(self.connection, 'limit'):
|
||||||
|
+ self.limit = get_config_option(config.get, self.connection,
|
||||||
|
+ 'limit')
|
||||||
|
+
|
||||||
|
if getattr(self, 'encoding', None) is not None:
|
||||||
|
log_info('The encoding option is deprecated.')
|
||||||
|
|
||||||
|
diff --git a/pybugz.d/redhat.conf b/pybugz.d/redhat.conf
|
||||||
|
index 36712a5..ec9d293 100644
|
||||||
|
--- a/pybugz.d/redhat.conf
|
||||||
|
+++ b/pybugz.d/redhat.conf
|
||||||
|
@@ -1,3 +1,5 @@
|
||||||
|
[RedHat]
|
||||||
|
base = https://bugzilla.redhat.com/xmlrpc.cgi
|
||||||
|
search_statuses = NEW, ASSIGNED, MODIFIED, ON_DEV, POST
|
||||||
|
+interactive = True
|
||||||
|
+limit = 1000
|
||||||
|
--
|
||||||
|
2.33.1
|
||||||
|
|
||||||
8
pybugz-0.13-gitbb0ae-rh-default.patch
Normal file
8
pybugz-0.13-gitbb0ae-rh-default.patch
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
diff --git a/pybugz.d/default.conf b/pybugz.d/default.conf
|
||||||
|
index cef06b8..32bdd41 100644
|
||||||
|
--- a/pybugz.d/default.conf
|
||||||
|
+++ b/pybugz.d/default.conf
|
||||||
|
@@ -1,2 +1,2 @@
|
||||||
|
[default]
|
||||||
|
-connection = Gentoo
|
||||||
|
+connection = RedHat
|
||||||
101
pybugz.spec
101
pybugz.spec
|
|
@ -1,20 +1,22 @@
|
||||||
%global gitrev 3459d
|
%global gitrev bb0ae
|
||||||
%global posttag git%{gitrev}
|
%global posttag git%{gitrev}
|
||||||
%global snapshot %{version}-%{posttag}
|
%global snapshot %{version}-%{posttag}
|
||||||
|
|
||||||
Name: pybugz
|
Name: pybugz
|
||||||
Summary: Command line interface for Bugzilla written in Python
|
Summary: Command line interface for Bugzilla written in Python
|
||||||
Version: 0.11
|
Version: 0.13
|
||||||
Release: 13.%{posttag}%{?dist}
|
Release: 17.%{posttag}%{?dist}
|
||||||
Group: Applications/Communications
|
# Automatically converted from old format: GPLv2 - review is highly recommended.
|
||||||
License: GPLv2
|
License: GPL-2.0-only
|
||||||
URL: https://github.com/williamh/pybugz
|
URL: https://github.com/williamh/pybugz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3
|
Requires: python3
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
Patch0: rh-default.patch
|
Patch0: pybugz-0.13-gitbb0ae-rh-default.patch
|
||||||
|
Patch1: pybugz-0.13-gitbb0ae-limit-configurable.patch
|
||||||
|
|
||||||
%if ! 0%{?rhel}
|
%if ! 0%{?rhel}
|
||||||
# no bash-completion for RHEL
|
# no bash-completion for RHEL
|
||||||
|
|
@ -37,12 +39,15 @@ interface, the user can search, isolate and contribute to the project very
|
||||||
quickly. Developers alike can easily extract attachments and close bugs
|
quickly. Developers alike can easily extract attachments and close bugs
|
||||||
comfortably from the command line.
|
comfortably from the command line.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{snapshot}
|
%autosetup -p1 -n %{name}-%{snapshot}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# default install process
|
# default install process
|
||||||
%{__python3} setup.py install --root=%{buildroot}
|
%{__python3} setup.py install --root=%{buildroot}
|
||||||
|
|
@ -59,7 +64,6 @@ mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
cp man/bugz.1 %{buildroot}%{_mandir}/man1/bugz.1
|
cp man/bugz.1 %{buildroot}%{_mandir}/man1/bugz.1
|
||||||
mkdir -p %{buildroot}%{_docdir}
|
mkdir -p %{buildroot}%{_docdir}
|
||||||
|
|
||||||
%clean
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/bugz
|
%{_bindir}/bugz
|
||||||
|
|
@ -73,7 +77,90 @@ mkdir -p %{buildroot}%{_docdir}
|
||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
%doc README LICENSE
|
%doc README LICENSE
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.13-17.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.14.0rc3 bytecode
|
||||||
|
|
||||||
|
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.13-16.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-15.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 0.13-14.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.14
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-13.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 0.13-12.gitbb0ae
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-11.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.13-10.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.13
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-9.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-8.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-7.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.13-6.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-5.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.13-3.gitbb0ae
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2.gitbb0ae
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 03 2021 Pavel Raiskup <praiskup@redhat.com> - 0.13-1.gitbb0ae
|
||||||
|
- rebase to the latest git HEAD
|
||||||
|
- allow 'limit: ' configuration, and set limit=1000 for the Red Hat Bugzilla instance
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-23.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.11-22.git3459d
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-21.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-20.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11-19.git3459d
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-18.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-17.git3459d
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-16.git3459d
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-15.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-14.git3459d
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13.git3459d
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13.git3459d
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
From 7e2b0baa8f8229668fb23f30bb741dfd79b412b4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pavel Raiskup <praiskup@redhat.com>
|
|
||||||
Date: Mon, 19 Oct 2015 15:49:00 +0200
|
|
||||||
Subject: [PATCH] config: set RedHat connection as default
|
|
||||||
|
|
||||||
---
|
|
||||||
pybugz.d/default.conf | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/pybugz.d/default.conf b/pybugz.d/default.conf
|
|
||||||
index 33d48d6..c3fe9cd 100644
|
|
||||||
--- a/pybugz.d/default.conf
|
|
||||||
+++ b/pybugz.d/default.conf
|
|
||||||
@@ -1,3 +1,3 @@
|
|
||||||
[default]
|
|
||||||
-connection = Gentoo
|
|
||||||
+connection = RedHat
|
|
||||||
search_statuses = CONFIRMED IN_PROGRESS UNCONFIRMED
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
d061d49b70858c64a1d24b3c11f7d9be pybugz-0.11-git3459d.tar.gz
|
SHA512 (pybugz-0.13-gitbb0ae.tar.gz) = cca9c875f747d2a5153ee79aee68d7c83fc86a25f31ae035ca7c11f74fa4fe7a5df57562fedb5447d126d0747762b7af4bd33fdf54d0c6fe9cd08893a3261383
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue