pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-hyperlink py-hyperlink: updated to 18.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d27cc9c466a
branches:  trunk
changeset: 376629:7d27cc9c466a
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Mar 05 12:31:17 2018 +0000

description:
py-hyperlink: updated to 18.0.0

18.0.0:
When passed to str() URLs now stringify to usable URL strings.
Switched off of Python's built-in IDNA facilities to using the idna package. Not only is it much more modern, it's also much more strict and correct in its output.
Added new DecodedURL type with almost-identical API to the normal URL, except that it automatically handles reserved characters in argument values passed to its methods.
Added top-level parse() convenience function that now represents the main entrypoint to hyperlink.
Accept dictionaries as ?query=? arguments, in addition to sequences of tuples
URL.child() will no longer fail when child gets no segments
URL.normalize() now supports encoding stray/unmatched % characters in character-encoded fields (userinfo, path, query string, fragment)

diffstat:

 www/py-hyperlink/Makefile |  10 ++++++----
 www/py-hyperlink/PLIST    |   9 ++++++++-
 www/py-hyperlink/distinfo |  10 +++++-----
 3 files changed, 19 insertions(+), 10 deletions(-)

diffs (68 lines):

diff -r 1db1b9a83f8b -r 7d27cc9c466a www/py-hyperlink/Makefile
--- a/www/py-hyperlink/Makefile Mon Mar 05 10:21:04 2018 +0000
+++ b/www/py-hyperlink/Makefile Mon Mar 05 12:31:17 2018 +0000
@@ -1,16 +1,18 @@
-# $NetBSD: Makefile,v 1.3 2017/08/27 13:09:34 adam Exp $
+# $NetBSD: Makefile,v 1.4 2018/03/05 12:31:17 adam Exp $
 
-DISTNAME=      hyperlink-17.3.1
+DISTNAME=      hyperlink-18.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hyperlink/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/python-hyper/hyperlink/
+HOMEPAGE=      https://github.com/python-hyper/hyperlink
 COMMENT=       Featureful, correct URL for Python
 LICENSE=       modified-bsd
 
-USE_LANGUAGES=         # empty
+DEPENDS+=      ${PYPKGPREFIX}-idna>=2.5:../../www/py-idna
+
+USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1db1b9a83f8b -r 7d27cc9c466a www/py-hyperlink/PLIST
--- a/www/py-hyperlink/PLIST    Mon Mar 05 10:21:04 2018 +0000
+++ b/www/py-hyperlink/PLIST    Mon Mar 05 12:31:17 2018 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2017/07/20 10:28:33 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/03/05 12:31:17 adam 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}/hyperlink/__init__.py
 ${PYSITELIB}/hyperlink/__init__.pyc
@@ -19,6 +20,12 @@
 ${PYSITELIB}/hyperlink/test/test_common.py
 ${PYSITELIB}/hyperlink/test/test_common.pyc
 ${PYSITELIB}/hyperlink/test/test_common.pyo
+${PYSITELIB}/hyperlink/test/test_decoded_url.py
+${PYSITELIB}/hyperlink/test/test_decoded_url.pyc
+${PYSITELIB}/hyperlink/test/test_decoded_url.pyo
+${PYSITELIB}/hyperlink/test/test_parse.py
+${PYSITELIB}/hyperlink/test/test_parse.pyc
+${PYSITELIB}/hyperlink/test/test_parse.pyo
 ${PYSITELIB}/hyperlink/test/test_scheme_registration.py
 ${PYSITELIB}/hyperlink/test/test_scheme_registration.pyc
 ${PYSITELIB}/hyperlink/test/test_scheme_registration.pyo
diff -r 1db1b9a83f8b -r 7d27cc9c466a www/py-hyperlink/distinfo
--- a/www/py-hyperlink/distinfo Mon Mar 05 10:21:04 2018 +0000
+++ b/www/py-hyperlink/distinfo Mon Mar 05 12:31:17 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2017/08/27 13:09:34 adam Exp $
+$NetBSD: distinfo,v 1.4 2018/03/05 12:31:17 adam Exp $
 
-SHA1 (hyperlink-17.3.1.tar.gz) = adda500bc6a7c822309e51966f7d2d2e04115812
-RMD160 (hyperlink-17.3.1.tar.gz) = b77318cebf0c7dcade0c50536b1e54836a2656b6
-SHA512 (hyperlink-17.3.1.tar.gz) = c0c9d99a530c938b1d1e97b8344c5a0fb18f894c8b0b294cc8ae6aa6a550a5a0272cc6be7a913d371f3ce3dd8695b7ed239999f3ae5e8ce97e3693625ae761bb
-Size (hyperlink-17.3.1.tar.gz) = 91359 bytes
+SHA1 (hyperlink-18.0.0.tar.gz) = f51f4495795e51ae9468a13dd79ff26b3f457f40
+RMD160 (hyperlink-18.0.0.tar.gz) = 3a6a0286143a584a5989bcf74e07dfd26a150639
+SHA512 (hyperlink-18.0.0.tar.gz) = 21b5f88f7aaa3f2b0b60566fdb0fefdf6d42866060606dac181c8e3d357c76a5c23fa5dc982812af2b7d49dc1f9d623bd5bea89bf2cf31916c855bc4ae85589d
+Size (hyperlink-18.0.0.tar.gz) = 97625 bytes



Home | Main Index | Thread Index | Old Index