git: 1e315b9fef4e - main - devel/py-python-bugzilla: Update to 3.3.0

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Sat, 12 Oct 2024 13:43:21 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e315b9fef4e674945acd940b3030cffd6c027a6

commit 1e315b9fef4e674945acd940b3030cffd6c027a6
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2024-10-12 13:42:45 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-10-12 13:42:45 +0000

    devel/py-python-bugzilla: Update to 3.3.0
---
 devel/py-python-bugzilla/Makefile                  |  4 ++--
 devel/py-python-bugzilla/distinfo                  |  6 +++---
 .../files/patch-bugzilla___cli.py                  |  6 +++---
 .../files/patch-bugzilla___session.py              | 23 ----------------------
 .../py-python-bugzilla/files/patch-man_bugzilla.1  | 10 ++++++++++
 .../files/patch-man_bugzilla.rst                   |  8 ++++----
 6 files changed, 22 insertions(+), 35 deletions(-)

diff --git a/devel/py-python-bugzilla/Makefile b/devel/py-python-bugzilla/Makefile
index 35eb957c3a9d..e150162ee0b7 100644
--- a/devel/py-python-bugzilla/Makefile
+++ b/devel/py-python-bugzilla/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	python-bugzilla
-PORTVERSION=	3.2.0
-PORTREVISION=	1
+DISTVERSION=	3.3.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	python_bugzilla-${DISTVERSION}
 
 MAINTAINER=	lwhsu@FreeBSD.org
 COMMENT=	Bugzilla XMLRPC access module
diff --git a/devel/py-python-bugzilla/distinfo b/devel/py-python-bugzilla/distinfo
index 0cda9bf0776c..917f49ce824c 100644
--- a/devel/py-python-bugzilla/distinfo
+++ b/devel/py-python-bugzilla/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647015134
-SHA256 (python-bugzilla-3.2.0.tar.gz) = 4efc8cfa297837c9e4eab220e197176715bd61ee33cec2c1b0f2790f07860387
-SIZE (python-bugzilla-3.2.0.tar.gz) = 114279
+TIMESTAMP = 1728739679
+SHA256 (python_bugzilla-3.3.0.tar.gz) = e18220171e033eb3ba600c4d139359d01aa1acec1daebc4308910e450763de47
+SIZE (python_bugzilla-3.3.0.tar.gz) = 120711
diff --git a/devel/py-python-bugzilla/files/patch-bugzilla___cli.py b/devel/py-python-bugzilla/files/patch-bugzilla___cli.py
index 4e51ab539a3b..0c8b3bdf3518 100644
--- a/devel/py-python-bugzilla/files/patch-bugzilla___cli.py
+++ b/devel/py-python-bugzilla/files/patch-bugzilla___cli.py
@@ -1,7 +1,7 @@
---- bugzilla/_cli.py.orig	2020-07-04 17:39:54 UTC
+--- bugzilla/_cli.py.orig	2024-09-23 07:35:49 UTC
 +++ bugzilla/_cli.py
-@@ -31,7 +31,7 @@ from bugzilla._compatimports import Fault, ProtocolErr
- from bugzilla._util import to_encoding
+@@ -29,7 +29,7 @@ import bugzilla
+ import bugzilla
  
  
 -DEFAULT_BZ = 'https://bugzilla.redhat.com'
diff --git a/devel/py-python-bugzilla/files/patch-bugzilla___session.py b/devel/py-python-bugzilla/files/patch-bugzilla___session.py
deleted file mode 100644
index bf9849a0eef2..000000000000
--- a/devel/py-python-bugzilla/files/patch-bugzilla___session.py
+++ /dev/null
@@ -1,23 +0,0 @@
---- bugzilla/_session.py
-+++ bugzilla/_session.py
-@@ -98,14 +98,14 @@ def request(self, *args, **kwargs):
-         if "timeout" not in kwargs:
-             kwargs["timeout"] = timeout
- 
--        response = self._session.request(*args, **kwargs)
-+        try:
-+            response = self._session.request(*args, **kwargs)
- 
--        if self._is_xmlrpc:
--            # Yes this still appears to matter for properly decoding unicode
--            # code points in bugzilla.redhat.com content
--            response.encoding = "UTF-8"
-+            if self._is_xmlrpc:
-+                # This still appears to matter for properly decoding unicode
-+                # code points in bugzilla.redhat.com content
-+                response.encoding = "UTF-8"
- 
--        try:
-             response.raise_for_status()
-         except requests.HTTPError as e:
-             # Scrape the api key out of the returned exception string
diff --git a/devel/py-python-bugzilla/files/patch-man_bugzilla.1 b/devel/py-python-bugzilla/files/patch-man_bugzilla.1
new file mode 100644
index 000000000000..bd2ca2d61ef6
--- /dev/null
+++ b/devel/py-python-bugzilla/files/patch-man_bugzilla.1
@@ -0,0 +1,10 @@
+--- man/bugzilla.1.orig	2024-09-23 07:35:49 UTC
++++ man/bugzilla.1
+@@ -72,6 +72,7 @@ The default URL \fI\%https://bugzilla.redhat.com\fP
+ preferring XMLRPC for backwards compatibility.
+ .sp
+ The default URL \fI\%https://bugzilla.redhat.com\fP
++(This is patched to \fI\%https://bugs.FreeBSD.org/bugzilla/xmlrpc.cgi\fP in FreeBSD ports.)
+ .SS \fB\-\-nosslverify\fP
+ .sp
+ \fBSyntax:\fP \fB\-\-nosslverify\fP
diff --git a/devel/py-python-bugzilla/files/patch-man_bugzilla.rst b/devel/py-python-bugzilla/files/patch-man_bugzilla.rst
index 011c71a7ba4e..a6cc5930b89b 100644
--- a/devel/py-python-bugzilla/files/patch-man_bugzilla.rst
+++ b/devel/py-python-bugzilla/files/patch-man_bugzilla.rst
@@ -1,10 +1,10 @@
---- man/bugzilla.rst.orig	2020-07-03 23:18:54 UTC
+--- man/bugzilla.rst.orig	2024-09-23 07:35:49 UTC
 +++ man/bugzilla.rst
-@@ -53,6 +53,7 @@ will try to probe whether the expected XMLRPC or REST 
+@@ -61,6 +61,7 @@ The default URL https://bugzilla.redhat.com
  preferring XMLRPC for backwards compatibility.
  
  The default URL https://bugzilla.redhat.com
-+(This is patched to https://bugs.freebsd.org/bugzilla/xmlrpc.cgi in FreeBSD ports.)
++(This is patched to https://bugs.FreeBSD.org/bugzilla/xmlrpc.cgi in FreeBSD ports.)
  
- - ``--nosslverify``
  
+ ``--nosslverify``