py-rt: Update to 2.0.0 Changes: 2.0.0 ----- - Drop Python2 support - Adjust Travis tests for Python3-only, and add v3.8 - Add inline typing - Remove "debug_mode" parameter - Add "logging" support (basically replacing "debug_mode" and the various "print"s) - Fix "no-else-after-return" and "no-else-after-raise" - Fix "startswitch" typos / bugs - Removed deprecated "basic_auth" and "digest_auth" paramters. The same functionality is given by specifying the "http_auth" with an instance of either object. This allows for more flexibility with various other alternative authentication methods. (Done in a separate commit of 1.0.13 update because 1.0.13 was the last release supporting Python 2.7, if you use py-rt with python27 please let me know/feel free to add a possible py-rt1 package.)diff -r1.5 -r1.6 pkgsrc/net/py-rt/Makefile
(leot)
@@ -1,21 +1,24 @@ | @@ -1,21 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2020/02/24 13:38:38 leot Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2020/02/24 14:38:25 leot Exp $ | |
2 | 2 | |||
3 | DISTNAME= rt-1.0.13 | 3 | DISTNAME= rt-2.0.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= net python | 5 | CATEGORIES= net python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=r/rt/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=r/rt/} | |
7 | 7 | |||
8 | MAINTAINER= leot@NetBSD.org | 8 | MAINTAINER= leot@NetBSD.org | |
9 | HOMEPAGE= https://github.com/CZ-NIC/python-rt | 9 | HOMEPAGE= https://github.com/CZ-NIC/python-rt | |
10 | COMMENT= Python interface to Request Tracker API | 10 | COMMENT= Python interface to Request Tracker API | |
11 | LICENSE= gnu-gpl-v3 | 11 | LICENSE= gnu-gpl-v3 | |
12 | 12 | |||
13 | DIST_SUBDIR= py-rt # XXX: avoid possible conflicts with devel/rt{3,} | 13 | DIST_SUBDIR= py-rt # XXX: avoid possible conflicts with devel/rt{3,} | |
14 | 14 | |||
15 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | 15 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | |
16 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | 16 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | |
17 | 17 | |||
18 | USE_LANGUAGES= # none | 18 | USE_LANGUAGES= # none | |
19 | 19 | |||
20 | # Only for Python 3 | |||
21 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |||
22 | ||||
20 | .include "../../lang/python/egg.mk" | 23 | .include "../../lang/python/egg.mk" | |
21 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2020/02/24 13:38:38 leot Exp $ | 1 | $NetBSD: distinfo,v 1.6 2020/02/24 14:38:25 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (py-rt/rt-1.0.13.tar.gz) = d5ce11772ee2db795eb4b7e3637c5b54161301eb | 3 | SHA1 (py-rt/rt-2.0.0.tar.gz) = 83095414750acef5f9a331249b26c9270d011f9e | |
4 | RMD160 (py-rt/rt-1.0.13.tar.gz) = dacbf92f7d244b46f6d604f234d50b8fdb20ceb1 | 4 | RMD160 (py-rt/rt-2.0.0.tar.gz) = 2f4fb8586c6050dfec35d90a9d7edd187c398edc | |
5 | SHA512 (py-rt/rt-1.0.13.tar.gz) = 670b5e9cc582dfeefe706022251b66a4f4ea0e42507ed7ce6c4bc000140fd514c8559ac578e642c7b4c6aa6a8809463ace111f3d97e00b1f95e17586e1b174f7 | 5 | SHA512 (py-rt/rt-2.0.0.tar.gz) = a70cef437f66b97f6d19a62f1d1a7d12633d2092da727599419aeabdd6f41e26cf97a531b745eac7bcd77ca7a39805c71a66dc5f610cbc352f8aa28a2f682967 | |
6 | Size (py-rt/rt-1.0.13.tar.gz) = 36848 bytes | 6 | Size (py-rt/rt-2.0.0.tar.gz) = 38703 bytes | |
7 | SHA1 (patch-rt.py) = 181b7e8f694efa1a76592496a5cc48df8fd9c055 | 7 | SHA1 (patch-rt.py) = 33668fc6ef0ea138acc8075a2d0fda2fca179de4 |
@@ -1,9 +1,17 @@ | @@ -1,9 +1,17 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2018/09/15 10:53:31 leot Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2020/02/24 14:38:25 leot Exp $ | |
2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe | |||
5 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
7 | ${PYSITELIB}/rt.py | 8 | ${PYSITELIB}/rt/__init__.py | |
8 | ${PYSITELIB}/rt.pyc | 9 | ${PYSITELIB}/rt/__init__.pyc | |
9 | ${PYSITELIB}/rt.pyo | 10 | ${PYSITELIB}/rt/__init__.pyo | |
11 | ${PYSITELIB}/rt/exceptions.py | |||
12 | ${PYSITELIB}/rt/exceptions.pyc | |||
13 | ${PYSITELIB}/rt/exceptions.pyo | |||
14 | ${PYSITELIB}/rt/py.typed | |||
15 | ${PYSITELIB}/rt/rt.py | |||
16 | ${PYSITELIB}/rt/rt.pyc | |||
17 | ${PYSITELIB}/rt/rt.pyo |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | $NetBSD: patch-rt.py,v 1.3 2020/01/02 15:46:11 leot Exp $ | 1 | $NetBSD: patch-rt.py,v 1.4 2020/02/24 14:38:25 leot Exp $ | |
2 | 2 | |||
3 | In RT 4 when a ticket is not modified an empty response is returned. | 3 | In RT 4 when a ticket is not modified an empty response is returned. | |
4 | Treat it as a successfull operation. | 4 | Treat it as a successfull operation. | |
5 | 5 | |||
6 | --- rt.py.orig 2019-10-25 12:58:58.000000000 +0000 | 6 | --- rt/rt.py.orig 2019-10-25 12:58:58.000000000 +0000 | |
7 | +++ rt.py | 7 | +++ rt/rt.py | |
8 | @@ -736,6 +736,8 @@ class Rt: | 8 | @@ -736,6 +736,8 @@ class Rt: | |
9 | """ | 9 | """ | |
10 | post_data = self.__ticket_post_data(kwargs) | 10 | post_data = self.__ticket_post_data(kwargs) | |
11 | msg = self.__request('ticket/{}/edit'.format(str(ticket_id)), post_data={'content': post_data}) | 11 | msg = self.__request('ticket/{}/edit'.format(str(ticket_id)), post_data={'content': post_data}) | |
12 | + if "" == msg: # Ticket not modified | 12 | + if "" == msg: # Ticket not modified | |
13 | + return True | 13 | + return True | |
14 | state = msg.split('\n')[2] | 14 | state = msg.split('\n')[2] | |
15 | return self.RE_PATTERNS['update_pattern'].match(state) is not None | 15 | return self.RE_PATTERNS['update_pattern'].match(state) is not None | |
16 | 16 |