Wed Jan 16 09:39:40 2019 UTC ()
py-requests-oauthlib: updated to 1.2.0

v1.2.0:
This project now depends on OAuthlib 3.0.0 and above. It does not support versions of OAuthlib before 3.0.0.
Updated oauth2 tests to use 'sess' for an OAuth2Session instance instead of auth because OAuth2Session objects and methods acceept an auth paramether which is typically an instance of requests.auth.HTTPBasicAuth
OAuth2Session.fetch_token previously tried to guess how and where to provide "client" and "user" credentials incorrectly. This was incompatible with some OAuth servers and incompatible with breaking changes in oauthlib that seek to correctly provide the client_id. The older implementation also did not raise the correct exceptions when username and password are not present on Legacy clients.
Avoid automatic netrc authentication for OAuth2Session.

v1.1.0:
Adjusted version specifier for oauthlib dependency: this project is not yet compatible with oauthlib 3.0.0.
Dropped dependency on nose.
Minor changes to clean up the code and make it more readable/maintainable.


(adam)
diff -r1.8 -r1.9 pkgsrc/security/py-requests-oauthlib/Makefile
diff -r1.6 -r1.7 pkgsrc/security/py-requests-oauthlib/distinfo

cvs diff -r1.8 -r1.9 pkgsrc/security/py-requests-oauthlib/Makefile (expand / switch to unified diff)

--- pkgsrc/security/py-requests-oauthlib/Makefile 2018/06/17 08:39:43 1.8
+++ pkgsrc/security/py-requests-oauthlib/Makefile 2019/01/16 09:39:40 1.9
@@ -1,22 +1,21 @@ @@ -1,22 +1,21 @@
1# $NetBSD: Makefile,v 1.8 2018/06/17 08:39:43 wiz Exp $ 1# $NetBSD: Makefile,v 1.9 2019/01/16 09:39:40 adam Exp $
2 2
3DISTNAME= requests-oauthlib-1.0.0 3DISTNAME= requests-oauthlib-1.2.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= security 5CATEGORIES= security python
6MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests-oauthlib/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests-oauthlib/}
7 7
8MAINTAINER= imil@NetBSD.org 8MAINTAINER= imil@NetBSD.org
9HOMEPAGE= https://github.com/requests/requests-oauthlib 9HOMEPAGE= https://github.com/requests/requests-oauthlib
10COMMENT= OAuthlib support for Python-Requests 10COMMENT= OAuthlib support for Python-Requests
11LICENSE= mit 11LICENSE= mit
12 12
13USE_LANGUAGES= # none 13DEPENDS+= ${PYPKGPREFIX}-oauthlib>=3.0.0:../../security/py-oauthlib
14 
15DEPENDS+= ${PYPKGPREFIX}-requests>=2.2.0:../../devel/py-requests 14DEPENDS+= ${PYPKGPREFIX}-requests>=2.2.0:../../devel/py-requests
16DEPENDS+= ${PYPKGPREFIX}-oauthlib>=0.6.1:../../security/py-oauthlib 15TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
17BUILD_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock 16TEST_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
18BUILD_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock 17
19BUILD_DEPENDS+= ${PYPKGPREFIX}-pbr>=0.11:../../devel/py-pbr 18USE_LANGUAGES= # none
20 19
21.include "../../lang/python/egg.mk" 20.include "../../lang/python/egg.mk"
22.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/security/py-requests-oauthlib/distinfo (expand / switch to unified diff)

--- pkgsrc/security/py-requests-oauthlib/distinfo 2018/06/17 08:39:43 1.6
+++ pkgsrc/security/py-requests-oauthlib/distinfo 2019/01/16 09:39:40 1.7
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.6 2018/06/17 08:39:43 wiz Exp $ 1$NetBSD: distinfo,v 1.7 2019/01/16 09:39:40 adam Exp $
2 2
3SHA1 (requests-oauthlib-1.0.0.tar.gz) = 4f653efdaa4b1a9683dad4eb676e538cb827b18a 3SHA1 (requests-oauthlib-1.2.0.tar.gz) = 4ee5733f95ba21c7e7ad545584553eee21e7ccf7
4RMD160 (requests-oauthlib-1.0.0.tar.gz) = 3c2548511c905a2263e8d749bb93ab0eb7ca7b15 4RMD160 (requests-oauthlib-1.2.0.tar.gz) = 2047c81e2ba3c596fa0ce79602d602ff53ce83a9
5SHA512 (requests-oauthlib-1.0.0.tar.gz) = b1036ca0533383dc5d6297de0cf65c9c705bbdc01b367adba94735424ac262f8e01cc2975da294af31af12c347d4a93b06ac3e18e159a45b3544aa051b2c59c8 5SHA512 (requests-oauthlib-1.2.0.tar.gz) = 531cbea898b692864134b83479b3a32b0455def8bbd0b808a118bd63d377c4056e8df9a4943fa4048e5b27e2628641d8818d3bbc71dde91522a3be163da1e719
6Size (requests-oauthlib-1.0.0.tar.gz) = 74092 bytes 6Size (requests-oauthlib-1.2.0.tar.gz) = 83381 bytes