pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-rt py-rt: Update to 2.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2fd0fd3b10d4
branches:  trunk
changeset: 440493:2fd0fd3b10d4
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Oct 09 15:43:07 2020 +0000

description:
py-rt: Update to 2.0.1

pkgsrc changes:
 - Remove no longer needed patch-rt.py, now applied upstream.

Changes:
2.0.1
-----
 - Fix UnicodeDecodeError in logging code for non-text attachments
 - Documentation: Add a search example
 - edit_ticket: Handle possible empty responses: When a ticket is not
   modified, at least with RT 4.x, an empty response could be returned.
   Gracefully handle that as success.

diffstat:

 net/py-rt/Makefile            |   4 ++--
 net/py-rt/distinfo            |  11 +++++------
 net/py-rt/patches/patch-rt.py |  20 --------------------
 3 files changed, 7 insertions(+), 28 deletions(-)

diffs (52 lines):

diff -r 17fd76c1bfad -r 2fd0fd3b10d4 net/py-rt/Makefile
--- a/net/py-rt/Makefile        Fri Oct 09 15:39:37 2020 +0000
+++ b/net/py-rt/Makefile        Fri Oct 09 15:43:07 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2020/02/24 14:38:25 leot Exp $
+# $NetBSD: Makefile,v 1.7 2020/10/09 15:43:07 leot Exp $
 
-DISTNAME=      rt-2.0.0
+DISTNAME=      rt-2.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/rt/}
diff -r 17fd76c1bfad -r 2fd0fd3b10d4 net/py-rt/distinfo
--- a/net/py-rt/distinfo        Fri Oct 09 15:39:37 2020 +0000
+++ b/net/py-rt/distinfo        Fri Oct 09 15:43:07 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.7 2020/03/12 12:06:09 leot Exp $
+$NetBSD: distinfo,v 1.8 2020/10/09 15:43:07 leot Exp $
 
-SHA1 (py-rt/rt-2.0.0.tar.gz) = 83095414750acef5f9a331249b26c9270d011f9e
-RMD160 (py-rt/rt-2.0.0.tar.gz) = 2f4fb8586c6050dfec35d90a9d7edd187c398edc
-SHA512 (py-rt/rt-2.0.0.tar.gz) = a70cef437f66b97f6d19a62f1d1a7d12633d2092da727599419aeabdd6f41e26cf97a531b745eac7bcd77ca7a39805c71a66dc5f610cbc352f8aa28a2f682967
-Size (py-rt/rt-2.0.0.tar.gz) = 38703 bytes
-SHA1 (patch-rt.py) = 67461e2c4aa10be0cf07578ed6a7b9e7fdff7514
+SHA1 (py-rt/rt-2.0.1.tar.gz) = 99b8b82162134618d7aa5013e410dbeea7009415
+RMD160 (py-rt/rt-2.0.1.tar.gz) = 2ec2ae3027ac79cdf1f991c72ddbbda0354948fd
+SHA512 (py-rt/rt-2.0.1.tar.gz) = 36cea59fa72e083616834a5fb3e8c68a45b0f478b1d0def356793c504bf1f09af36b6e6700eb50ed5fa5132bfe9dd3635951153052eaa98d5e874ab33c988f21
+Size (py-rt/rt-2.0.1.tar.gz) = 40271 bytes
diff -r 17fd76c1bfad -r 2fd0fd3b10d4 net/py-rt/patches/patch-rt.py
--- a/net/py-rt/patches/patch-rt.py     Fri Oct 09 15:39:37 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-rt.py,v 1.5 2020/03/12 12:06:09 leot Exp $
-
-In RT 4 when a ticket is not modified an empty response is returned.
-Treat it as a successfull operation.
-
-Shared upstream via:
-
- <https://github.com/CZ-NIC/python-rt/pull/48>
-
---- rt/rt.py.orig      2019-10-25 12:58:58.000000000 +0000
-+++ rt/rt.py
-@@ -736,6 +736,8 @@ class Rt:
-         """
-         post_data = self.__ticket_post_data(kwargs)
-         msg = self.__request('ticket/{}/edit'.format(str(ticket_id)), post_data={'content': post_data})
-+        if "" == msg: # Ticket not modified
-+            return True
-         state = msg.split('\n')[2]
-         return self.RE_PATTERNS['update_pattern'].match(state) is not None
- 



Home | Main Index | Thread Index | Old Index