On 2018/07/20 18:25, Stuart Henderson wrote: > On 2018/07/20 10:24, Johan Huldtgren wrote: >> On 2018/07/12 12:38, Raf Czlonka wrote: >>> On Thu, Dec 07, 2017 at 04:34:13PM GMT, Johan Huldtgren wrote: >>>>> there was a request recently to add a python3 flavor to py-oauth2, > > Did they say what they wanted it for? It seems that this has largely been > replaced with oauthlib (certainly has in the ports tree anyway, and the module > was only really added to support py-discogs-client). It would be easier to > decide what to do with net/py-oauth2 if there was a reason to keep it.
It was to get allow productivity/calcurse to sync with google calendar via a python3 script[1] which apparently required an OAuth2 python library. I don't know if this can be solved with oauthlib. If there is no use for py-oauth2, as the original submitter I am more than happy to let it die, as I have no use for it anymore. .jh [1] http://git.calcurse.org/calcurse.git/tree/contrib/caldav/calcurse-caldav.py > (Annoyingly there are pypi projects "oauth2", "py-oauth2" and "python-oauth2" > which makes it a bit confusing to decide if any projects are really using it > ...) > > >>>>> I've done so, and while there I did a very minor update which got rid of >>>>> py-coverage as a test dependency as well as removed our patch as that >>>>> has been merged upstream. Homepage also changed. This builds, >>>>> packages, and passes tests but I have no real world test for it anymore >>>>> so if you do please test. >>>> >>>> ping? >>> >>> It's been a while - sorry for the delay ;^) >>> >>> I've just built and installed it - all OK, but I don't have anything to >>> test it against, I'm afraid :^( >> >> Well there have been no new releases of this since then, so the diff should >> still be valid if anyone wants to commit it. It does get rid of a, now, >> superfluous patch if that's an incentive :) >> >> .jh > >> Index: py-oauth2/Makefile >> =================================================================== >> RCS file: /cvs/ports/net/py-oauth2/Makefile,v >> retrieving revision 1.5 >> diff -u -p -u -p -r1.5 Makefile >> --- py-oauth2/Makefile 5 Jan 2016 06:57:50 -0000 1.5 >> +++ py-oauth2/Makefile 19 Nov 2017 05:35:29 -0000 >> @@ -3,24 +3,30 @@ >> COMMENT = Python library for OAuth >> >> MODPY_EGG_VERSION = 1.9.0.post1 >> +REVISION = 0 >> + >> +GH_ACCOUNT = joestump >> +GH_PROJECT = python-oauth2 >> +GH_COMMIT = 6689960ca23f79eccf9a25a39e93f6540f44ca23 >> + >> DISTNAME = oauth2-${MODPY_EGG_VERSION} >> PKGNAME = py-${DISTNAME} >> CATEGORIES = net >> MAINTAINER = Johan Huldtgren <[email protected]> >> >> -HOMEPAGE = http://github.com/simplegeo/python-oauth2 >> +HOMEPAGE = http://github.com/joestump/python-oauth2 >> >> # MIT >> PERMIT_PACKAGE_CDROM = Yes >> >> -MODPY_PI = Yes >> - >> MODULES = lang/python >> MODPY_SETUPTOOLS = Yes >> >> -RUN_DEPENDS = www/py-httplib2 >> -TEST_DEPENDS = devel/py-mock \ >> - devel/py-coverage \ >> +FLAVORS = python3 >> +FLAVOR ?= >> + >> +RUN_DEPENDS = www/py-httplib2${MODPY_FLAVOR} >> +TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR} \ >> ${RUN_DEPENDS} >> >> .include <bsd.port.mk> >> Index: py-oauth2/distinfo >> =================================================================== >> RCS file: /cvs/ports/net/py-oauth2/distinfo,v >> retrieving revision 1.2 >> diff -u -p -u -p -r1.2 distinfo >> --- py-oauth2/distinfo 5 Jan 2016 06:57:50 -0000 1.2 >> +++ py-oauth2/distinfo 19 Nov 2017 05:35:29 -0000 >> @@ -1,2 +1,2 @@ >> -SHA256 (oauth2-1.9.0.post1.tar.gz) = >> wAaoXnxgEHx8xtobGEtccZ9t1yAgmBlt+m5V32abWb8= >> -SIZE (oauth2-1.9.0.post1.tar.gz) = 21306 >> +SHA256 (oauth2-1.9.0.post1-6689960c.tar.gz) = >> OUhEktnMIyJTvMDDHzsgYdBhqEIyva2YGiWwWWCpUX8= >> +SIZE (oauth2-1.9.0.post1-6689960c.tar.gz) = 27646 >> Index: py-oauth2/patches/patch-setup_py >> =================================================================== >> RCS file: py-oauth2/patches/patch-setup_py >> diff -N py-oauth2/patches/patch-setup_py >> --- py-oauth2/patches/patch-setup_py 5 Jan 2016 06:57:50 -0000 1.2 >> +++ /dev/null 1 Jan 1970 00:00:00 -0000 >> @@ -1,12 +0,0 @@ >> -$OpenBSD: patch-setup_py,v 1.2 2016/01/05 06:57:50 benoit Exp $ >> ---- setup.py.orig Mon Jan 4 22:34:54 2016 >> -+++ setup.py Mon Jan 4 22:33:50 2016 >> -@@ -45,7 +45,7 @@ setup(name=PKG, >> - "Natural Language :: English", >> - "License :: OSI Approved :: MIT License" >> - ], >> -- packages = find_packages(), >> -+ packages = find_packages(exclude=['tests']), >> - install_requires = ['httplib2'], >> - license = "MIT License", >> - keywords="oauth", >> Index: py-oauth2/pkg/PLIST >> =================================================================== >> RCS file: /cvs/ports/net/py-oauth2/pkg/PLIST,v >> retrieving revision 1.3 >> diff -u -p -u -p -r1.3 PLIST >> --- py-oauth2/pkg/PLIST 5 Jan 2016 06:57:50 -0000 1.3 >> +++ py-oauth2/pkg/PLIST 19 Nov 2017 05:35:29 -0000 >> @@ -1,4 +1,4 @@ >> -@comment $OpenBSD: PLIST,v 1.3 2016/01/05 06:57:50 benoit Exp $ >> +@comment $OpenBSD$ >> lib/python${MODPY_VERSION}/site-packages/oauth2/ >> >> lib/python${MODPY_VERSION}/site-packages/oauth2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ >> >> lib/python${MODPY_VERSION}/site-packages/oauth2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO >> @@ -8,15 +8,17 @@ lib/python${MODPY_VERSION}/site-packages >> >> lib/python${MODPY_VERSION}/site-packages/oauth2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt >> >> lib/python${MODPY_VERSION}/site-packages/oauth2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe >> lib/python${MODPY_VERSION}/site-packages/oauth2/__init__.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/__init__.pyc >> +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/oauth2/${MODPY_PYCACHE}/ >> +lib/python${MODPY_VERSION}/site-packages/oauth2/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc >> +lib/python${MODPY_VERSION}/site-packages/oauth2/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc >> +lib/python${MODPY_VERSION}/site-packages/oauth2/${MODPY_PYCACHE}_version.${MODPY_PYC_MAGIC_TAG}pyc >> lib/python${MODPY_VERSION}/site-packages/oauth2/_compat.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/_compat.pyc >> lib/python${MODPY_VERSION}/site-packages/oauth2/_version.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/_version.pyc >> lib/python${MODPY_VERSION}/site-packages/oauth2/clients/ >> lib/python${MODPY_VERSION}/site-packages/oauth2/clients/__init__.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/clients/__init__.pyc >> +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/oauth2/clients/${MODPY_PYCACHE}/ >> +lib/python${MODPY_VERSION}/site-packages/oauth2/clients/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc >> +lib/python${MODPY_VERSION}/site-packages/oauth2/clients/${MODPY_PYCACHE}imap.${MODPY_PYC_MAGIC_TAG}pyc >> +lib/python${MODPY_VERSION}/site-packages/oauth2/clients/${MODPY_PYCACHE}smtp.${MODPY_PYC_MAGIC_TAG}pyc >> lib/python${MODPY_VERSION}/site-packages/oauth2/clients/imap.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/clients/imap.pyc >> lib/python${MODPY_VERSION}/site-packages/oauth2/clients/smtp.py >> -lib/python${MODPY_VERSION}/site-packages/oauth2/clients/smtp.pyc >
