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 1.0.12



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f8988ef3fd8
branches:  trunk
changeset: 346689:7f8988ef3fd8
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Jan 02 15:46:11 2020 +0000

description:
py-rt: Update to 1.0.12

Changes:
1.0.12
------
- Travis CI Docker tests
- RT 4.4 fixes
- Support multiline CF values in create_ticket and edit_ticket.
- Fix support for custom field names containing colons
- In search(), replace splitlines() with lines array split on \n.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result

diffstat:

 net/py-rt/Makefile            |   5 ++---
 net/py-rt/distinfo            |  12 ++++++------
 net/py-rt/patches/patch-rt.py |  38 +++++++-------------------------------
 3 files changed, 15 insertions(+), 40 deletions(-)

diffs (79 lines):

diff -r c28106a18714 -r 7f8988ef3fd8 net/py-rt/Makefile
--- a/net/py-rt/Makefile        Thu Jan 02 15:45:43 2020 +0000
+++ b/net/py-rt/Makefile        Thu Jan 02 15:46:11 2020 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2019/06/19 10:51:54 leot Exp $
+# $NetBSD: Makefile,v 1.4 2020/01/02 15:46:11 leot Exp $
 
-DISTNAME=      rt-1.0.11
+DISTNAME=      rt-1.0.12
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/rt/}
 
diff -r c28106a18714 -r 7f8988ef3fd8 net/py-rt/distinfo
--- a/net/py-rt/distinfo        Thu Jan 02 15:45:43 2020 +0000
+++ b/net/py-rt/distinfo        Thu Jan 02 15:46:11 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2019/06/19 10:51:54 leot Exp $
+$NetBSD: distinfo,v 1.4 2020/01/02 15:46:11 leot Exp $
 
-SHA1 (py-rt/rt-1.0.11.tar.gz) = 2a919c9df7a7aec75aa9f1f19df9fbc81341e784
-RMD160 (py-rt/rt-1.0.11.tar.gz) = cd0ee2929ede3c878e21bf0750e4fe262550ded5
-SHA512 (py-rt/rt-1.0.11.tar.gz) = 00007710d152472bf25e656b6298502e0b571932c8c3f4c498074fe7a849d575fd2deaad91a4814a7aece4dbfa847c913045e927830a8e0a02d3d13876562696
-Size (py-rt/rt-1.0.11.tar.gz) = 35084 bytes
-SHA1 (patch-rt.py) = 304b17e48ea144b0553f9bf18b142b9e59ceb684
+SHA1 (py-rt/rt-1.0.12.tar.gz) = 1aef2da3768117f8c45846ef4c127d89d6ff7d7e
+RMD160 (py-rt/rt-1.0.12.tar.gz) = 4638f0958bbc6b0d8f613987fb0f92886adf5d37
+SHA512 (py-rt/rt-1.0.12.tar.gz) = f671541ee9f6f1943e4583054ed22d7101b657c46a4b97701120245056ce6f65c2e2111db9e67202cc0a13c5df0e87b661ad9fef288ef3e148171d56baca5b35
+Size (py-rt/rt-1.0.12.tar.gz) = 36629 bytes
+SHA1 (patch-rt.py) = 181b7e8f694efa1a76592496a5cc48df8fd9c055
diff -r c28106a18714 -r 7f8988ef3fd8 net/py-rt/patches/patch-rt.py
--- a/net/py-rt/patches/patch-rt.py     Thu Jan 02 15:45:43 2020 +0000
+++ b/net/py-rt/patches/patch-rt.py     Thu Jan 02 15:46:11 2020 +0000
@@ -1,37 +1,13 @@
-$NetBSD: patch-rt.py,v 1.2 2019/06/19 10:51:54 leot Exp $
+$NetBSD: patch-rt.py,v 1.3 2020/01/02 15:46:11 leot Exp $
 
-- Backport upstream commit bb07009c4f62dd2ac393aab82fded6424eead82f
-  to ignore ignore possible empty lines.
-- RT 4 when a ticket is not modified return an empty response, treat it as
-  a successfull operation.
+In RT 4 when a ticket is not modified an empty response is returned.
+Treat it as a successfull operation.
 
---- rt.py.orig 2018-07-16 12:47:27.000000000 +0000
+--- rt.py.orig 2019-10-25 12:58:58.000000000 +0000
 +++ rt.py
-@@ -518,15 +518,19 @@ class Rt:
-             return items
-         elif Format == 's':
-             items = []
--            msgs = msg.splitlines()[2:]
-+            msgs = lines[2:]
-             for msg in msgs:
-+                if "" == msg: # Ignore blank line at the end
-+                   continue
-                 ticket_id, subject = msg.split(': ', 1)
-                 items.append({'id': 'ticket/' + ticket_id, 'Subject': subject})
-             return items
-         elif Format == 'i':
-             items = []
--            msgs = msg.splitlines()[2:]
-+            msgs = lines[2:]
-             for msg in msgs:
-+                if "" == msg: # Ignore blank line at the end
-+                   continue
-                 _, ticket_id = msg.split('/', 1)
-                 items.append({'id': 'ticket/' + ticket_id})
-             return items
-@@ -685,6 +689,8 @@ class Rt:
-             else:
-                 post_data += "CF.{{{}}}: {}\n".format(key[3:], value)
+@@ -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



Home | Main Index | Thread Index | Old Index