pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-oauthlib py-oauthlib: updated to 3.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a60e1bea7660
branches:  trunk
changeset: 455018:a60e1bea7660
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jun 25 21:00:12 2021 +0000

description:
py-oauthlib: updated to 3.1.1

3.1.1 (2021-05-31)
------------------
OAuth2.0 Provider - Bugfixes

  * Fix acceptance of valid IPv6 addresses in URI validation

OAuth2.0 Client - Bugfixes

  * Base OAuth2 Client now has a consistent way of managing the `scope`: it consistently
    relies on the `scope` provided in the constructor if any, except if overridden temporarily
    in a method call. Note that in particular providing a non-None `scope` in
    `prepare_authorization_request` or `prepare_refresh_token` does not override anymore
    `self.scope` forever, it is just used temporarily.
  * MobileApplicationClient.prepare_request_uri and MobileApplicationClient.parse_request_uri_response,
    ServiceApplicationClient.prepare_request_body,
    and WebApplicationClient.prepare_request_uri now correctly use the default `scope` provided in
    constructor.
  * LegacyApplicationClient.prepare_request_body now correctly uses the default `scope` provided in constructor

OAuth2.0 Provider - Bugfixes
  * client_credentials grant: fix log message
  * OpenID Connect Hybrid - fix nonce not passed to add_id_token
  * Different prompt values are now handled according to spec (e.g. prompt=none)
  * OpenID Connect - fix Authorization: Basic parsing

General
  * improved skeleton validator for public vs private client
  * replace mock library with standard unittest.mock
  * build isort integration
  * python2 code removal
  * add python3.8 support
  * bump minimum versions of pyjwt and cryptography

diffstat:

 security/py-oauthlib/Makefile |  10 ++++------
 security/py-oauthlib/PLIST    |   5 +----
 security/py-oauthlib/distinfo |  10 +++++-----
 3 files changed, 10 insertions(+), 15 deletions(-)

diffs (64 lines):

diff -r b5e52aa7031f -r a60e1bea7660 security/py-oauthlib/Makefile
--- a/security/py-oauthlib/Makefile     Fri Jun 25 20:46:23 2021 +0000
+++ b/security/py-oauthlib/Makefile     Fri Jun 25 21:00:12 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2021/03/07 17:16:19 adam Exp $
+# $NetBSD: Makefile,v 1.21 2021/06/25 21:00:12 adam Exp $
 
-DISTNAME=      oauthlib-3.1.0
+DISTNAME=      oauthlib-3.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=o/oauthlib/}
@@ -10,15 +10,13 @@
 COMMENT=       Generic implementation of the OAuth request-signing logic
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-JWT>=1.0.0:../../textproc/py-JWT
+DEPENDS+=      ${PYPKGPREFIX}-JWT>=2.0.0:../../textproc/py-JWT
 DEPENDS+=      ${PYPKGPREFIX}-blinker-[0-9]*:../../devel/py-blinker
 DEPENDS+=      ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
-TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
-TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27 # py-JWT
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b5e52aa7031f -r a60e1bea7660 security/py-oauthlib/PLIST
--- a/security/py-oauthlib/PLIST        Fri Jun 25 20:46:23 2021 +0000
+++ b/security/py-oauthlib/PLIST        Fri Jun 25 21:00:12 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2019/08/12 07:45:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2021/06/25 21:00:12 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -178,9 +178,6 @@
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/dispatchers.py
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/dispatchers.pyc
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/dispatchers.pyo
-${PYSITELIB}/oauthlib/openid/connect/core/grant_types/exceptions.py
-${PYSITELIB}/oauthlib/openid/connect/core/grant_types/exceptions.pyc
-${PYSITELIB}/oauthlib/openid/connect/core/grant_types/exceptions.pyo
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/hybrid.py
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/hybrid.pyc
 ${PYSITELIB}/oauthlib/openid/connect/core/grant_types/hybrid.pyo
diff -r b5e52aa7031f -r a60e1bea7660 security/py-oauthlib/distinfo
--- a/security/py-oauthlib/distinfo     Fri Jun 25 20:46:23 2021 +0000
+++ b/security/py-oauthlib/distinfo     Fri Jun 25 21:00:12 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.18 2019/08/12 07:45:23 adam Exp $
+$NetBSD: distinfo,v 1.19 2021/06/25 21:00:12 adam Exp $
 
-SHA1 (oauthlib-3.1.0.tar.gz) = a61703d89f11dd35ec76dd8097aa8ce3a5373e00
-RMD160 (oauthlib-3.1.0.tar.gz) = 9f860862bed7fda84d53f2882cef33dc15133dc8
-SHA512 (oauthlib-3.1.0.tar.gz) = c295de232e0215532c501d8f0803bd501a15fe89a746179ba4facca878e4927c8c05f07825f483c4a846922fb49d6d89f559a8b49bb72b19903f902d772b790e
-Size (oauthlib-3.1.0.tar.gz) = 155362 bytes
+SHA1 (oauthlib-3.1.1.tar.gz) = f6efa66f6106b069b5c0e0cf8cc677e4e96c91ca
+RMD160 (oauthlib-3.1.1.tar.gz) = 1ee81d217311e971298be031730cc72a5dc4bafd
+SHA512 (oauthlib-3.1.1.tar.gz) = 1c18f265a6017a6f2bf77507f5de095b439be36f309316993b547ded0f306461b058dcb85dc245bf26f65a9c77be44ca38f9053f3300a9b5cb92332b61a7f307
+Size (oauthlib-3.1.1.tar.gz) = 161395 bytes



Home | Main Index | Thread Index | Old Index