hello,

this updates py-oauthlib from 2.0.0 to 2.0.2, tested successfully with
py-discogs-client on amd64

Previously 'make test' would throw a warning under the python3 flavor
now however it errors out, however this isn't related to this upgrade
it errors out with 2.0.0 as well. This wasn't so when it was upgraded
to 2.0.0 though. I can't figure out what's going on, but then i'm not
a python person, so perhaps it's obvious if you are, here is the
error:

# env FLAVOR="python3" make test
===> py3-oauthlib-2.0.2 depends on: py3-nose-* -> py3-nose-1.3.7p4
===> py3-oauthlib-2.0.2 depends on: py3-coverage-* -> py3-coverage-4.2p0
===> py3-oauthlib-2.0.2 depends on: py3-mock-* -> py3-mock-2.0.0p0
===> py3-oauthlib-2.0.2 depends on: py3-blinker-* -> py3-blinker-1.4p2
===> py3-oauthlib-2.0.2 depends on: py3-cryptography-* -> py3-cryptography-1.7.1
===> py3-oauthlib-2.0.2 depends on: py3-jwt-* -> py3-jwt-1.4.2p0
===>  Regression tests for py3-oauthlib-2.0.2
cd /usr/ports/pobj/py-oauthlib-2.0.2-python3/oauthlib-2.0.2 && /usr/local/bin/python3.6 -m unittest discover ................................................................................................................................../usr/ports/pobj/py-oauthlib-2.0.2-python3/oauthlib-2.0.2/tests/oauth2/rfc6749/endpoints/test_error_responses.py:166: DeprecationWarning: Please use assertRaisesRegex instead.
  uri.format('code'))
................................................................................................................................................................................................................E
======================================================================
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
File "/usr/local/lib/python3.6/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/local/lib/python3.6/unittest/main.py", line 94, in __init__
    self.runTests()
File "/usr/local/lib/python3.6/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/local/lib/python3.6/unittest/runner.py", line 183, in run
    result.printErrors()
File "/usr/local/lib/python3.6/unittest/runner.py", line 109, in printErrors
    self.printErrorList('ERROR', self.errors)
File "/usr/local/lib/python3.6/unittest/runner.py", line 115, in printErrorList
    self.stream.writeln("%s: %s" % (flavour,self.getDescription(test)))
File "/usr/local/lib/python3.6/unittest/runner.py", line 47, in getDescription
    return '\n'.join((str(test), doc_first_line))
File "/usr/local/lib/python3.6/unittest/case.py", line 1374, in __str__
    self._testFunc.__name__)
AttributeError: 'str' object has no attribute '__name__'
*** Error 1 in . (Makefile:41 'do-test')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2672 '/usr/ports/pobj/py-oauthlib-2.0.2-python3/.test_done') *** Error 1 in /usr/ports/security/py-oauthlib (/usr/ports/infrastructure/mk/bsd.port.mk:2345 'test')

Under python2 'make test' passes.

thanks,

.jh
Index: py-oauthlib/Makefile
===================================================================
RCS file: /cvs/ports/security/py-oauthlib/Makefile,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 Makefile
--- py-oauthlib/Makefile	3 Jan 2017 19:38:35 -0000	1.8
+++ py-oauthlib/Makefile	19 Mar 2017 18:42:16 -0000
@@ -2,8 +2,7 @@
 
 COMMENT =	Python library for OAuth
 
-MODPY_EGG_VERSION = 2.0.0
-REVISION =	1
+MODPY_EGG_VERSION = 2.0.2
 
 GH_ACCOUNT =	idan
 GH_PROJECT =	oauthlib
@@ -36,7 +35,7 @@ post-extract:
 	chmod -R o+rX ${WRKSRC}
 
 # tests/oauth2/rfc5849/endpoints/test_error_responses.py
-# will through a warning when make test is run under
+# will throw a warning when make test is run under
 # the python3 flavor, fixing this breaks python2 though.
 do-test:
 	cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover
Index: py-oauthlib/distinfo
===================================================================
RCS file: /cvs/ports/security/py-oauthlib/distinfo,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 distinfo
--- py-oauthlib/distinfo	31 Dec 2016 13:59:07 -0000	1.6
+++ py-oauthlib/distinfo	19 Mar 2017 18:42:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (oauthlib-2.0.0.tar.gz) = TjLsshNfNha2GrjZ0JqK92KOtNZIVha06wTijFQhZgk=
-SIZE (oauthlib-2.0.0.tar.gz) = 158127
+SHA256 (oauthlib-2.0.2.tar.gz) = s3hsXybkUefMIwXZ+x1dkLnUarcuaP5TNppxbyH84pw=
+SIZE (oauthlib-2.0.2.tar.gz) = 161329

Reply via email to