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.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8b76c7b7c84
branches:  trunk
changeset: 423712:a8b76c7b7c84
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Feb 24 14:38:25 2020 +0000

description:
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.)

diffstat:

 net/py-rt/Makefile            |   7 +++++--
 net/py-rt/PLIST               |  16 ++++++++++++----
 net/py-rt/distinfo            |  12 ++++++------
 net/py-rt/patches/patch-rt.py |   6 +++---
 4 files changed, 26 insertions(+), 15 deletions(-)

diffs (80 lines):

diff -r 54a946bc9d67 -r a8b76c7b7c84 net/py-rt/Makefile
--- a/net/py-rt/Makefile        Mon Feb 24 14:23:53 2020 +0000
+++ b/net/py-rt/Makefile        Mon Feb 24 14:38:25 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2020/02/24 13:38:38 leot Exp $
+# $NetBSD: Makefile,v 1.6 2020/02/24 14:38:25 leot Exp $
 
-DISTNAME=      rt-1.0.13
+DISTNAME=      rt-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/rt/}
@@ -17,5 +17,8 @@
 
 USE_LANGUAGES= # none
 
+# Only for Python 3
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 54a946bc9d67 -r a8b76c7b7c84 net/py-rt/PLIST
--- a/net/py-rt/PLIST   Mon Feb 24 14:23:53 2020 +0000
+++ b/net/py-rt/PLIST   Mon Feb 24 14:38:25 2020 +0000
@@ -1,9 +1,17 @@
-@comment $NetBSD: PLIST,v 1.1 2018/09/15 10:53:31 leot Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/02/24 14:38:25 leot Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/rt.py
-${PYSITELIB}/rt.pyc
-${PYSITELIB}/rt.pyo
+${PYSITELIB}/rt/__init__.py
+${PYSITELIB}/rt/__init__.pyc
+${PYSITELIB}/rt/__init__.pyo
+${PYSITELIB}/rt/exceptions.py
+${PYSITELIB}/rt/exceptions.pyc
+${PYSITELIB}/rt/exceptions.pyo
+${PYSITELIB}/rt/py.typed
+${PYSITELIB}/rt/rt.py
+${PYSITELIB}/rt/rt.pyc
+${PYSITELIB}/rt/rt.pyo
diff -r 54a946bc9d67 -r a8b76c7b7c84 net/py-rt/distinfo
--- a/net/py-rt/distinfo        Mon Feb 24 14:23:53 2020 +0000
+++ b/net/py-rt/distinfo        Mon Feb 24 14:38:25 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2020/02/24 13:38:38 leot Exp $
+$NetBSD: distinfo,v 1.6 2020/02/24 14:38:25 leot Exp $
 
-SHA1 (py-rt/rt-1.0.13.tar.gz) = d5ce11772ee2db795eb4b7e3637c5b54161301eb
-RMD160 (py-rt/rt-1.0.13.tar.gz) = dacbf92f7d244b46f6d604f234d50b8fdb20ceb1
-SHA512 (py-rt/rt-1.0.13.tar.gz) = 670b5e9cc582dfeefe706022251b66a4f4ea0e42507ed7ce6c4bc000140fd514c8559ac578e642c7b4c6aa6a8809463ace111f3d97e00b1f95e17586e1b174f7
-Size (py-rt/rt-1.0.13.tar.gz) = 36848 bytes
-SHA1 (patch-rt.py) = 181b7e8f694efa1a76592496a5cc48df8fd9c055
+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) = 33668fc6ef0ea138acc8075a2d0fda2fca179de4
diff -r 54a946bc9d67 -r a8b76c7b7c84 net/py-rt/patches/patch-rt.py
--- a/net/py-rt/patches/patch-rt.py     Mon Feb 24 14:23:53 2020 +0000
+++ b/net/py-rt/patches/patch-rt.py     Mon Feb 24 14:38:25 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-rt.py,v 1.3 2020/01/02 15:46:11 leot Exp $
+$NetBSD: patch-rt.py,v 1.4 2020/02/24 14:38:25 leot Exp $
 
 In RT 4 when a ticket is not modified an empty response is returned.
 Treat it as a successfull operation.
 
---- rt.py.orig 2019-10-25 12:58:58.000000000 +0000
-+++ rt.py
+--- 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)



Home | Main Index | Thread Index | Old Index