Repository navigation
Conversation
- Add Trove classifiers for supported Python versions. - Test supported Python versions using tox.
The exception handling syntax problem is too hard.
- Sort per PEP8. - Remove Python 2.5 workaround. - Move sys.path munging to the 'if __name__ == __main__' stanza.
Also, drop use of 'iteritems'.
In Python2, the 'bytes()' builtin doesn't take an encoding argument.
Tests all now pass on Py3k, with two remaining failures on Python2.
|
Hi, how is that with merging and releasing for python3 compatibility? I'd need it. Anything I can do to help? |
|
For the time being I've added a release of Tres' branch to http://download.gocept.com/packages/oauth2-1.5.211py3-1.zip |
|
+1 |
|
See #158 as well. cc @jaitaiwan |
|
@tseaver You interested in becoming a collaborator on this? Second solid PR I've seen from you so far. 👍 |
|
@joestump which PR should we use? |
|
This one has collisions... |
|
@jaitaiwan Up to you. I think yours is newer and had more eyes on it, which always gets my vote. I mainly wanted to ask if @tseaver was interested in helping out. 😆 |
|
I had just about enough mental swap space left to fix #141. I'm afraid that updating this one requires swapping way more of the code back into my head than I have available for the foreseeable future. |
|
There's a subtley here IMO, should all the things return as utf8 encoded bytes (as is the idea in this PR) or unicode (as most of stdlib does). In a trial merge I changed it to unicode and basically the only fail was test_to_url_nonascii. Thoughts? |
|
@jaitaiwan @joestump I spent some time today trying to fix the tests on #176 and found that we're going to need to make rather extensive changes if we want to use that PR (i.e. in Python 3 I'm thinking we get this merged into |
|
I attempted a master on merge here. All tests pass for 2.6 and 2.7. There are a only 2 of the new tests failing in python 3: |
|
Getting closer! |
|
for the latter test: %5Bb%27FOO%27%2C+b%27BAR%27%5D has the b in b'..' which I don't think it should. I think it's easiest just to split i on Thoughts on the bytes vs unicode issue? |
|
I personally opt for unicode, I feel like its the way of the future... |
|
In which case (I have a merge) which fails only: test_to_url_nonascii (py2.6+ and py3) and test_to_url_works_with_non_ascii_parameters (py2). These are kinda tricky since the unicode arguments aren't valid unicode (so it feels like this is expected). Edit: See test failures here: https://travis-ci.org/hayd/python-oauth2 |
|
+1 |
|
cc @joestump: this is the PR we're looking at for py3k over my stuff. |
|
@jaitaiwan @joestump should this be against |
|
It's a big change so I'd say feature branch On Mon, 3 Aug 2015 11:27 Rick Hanlon II [email protected] wrote:
|
|
@tseaver can you re-open against branch |
|
@rickhanlonii I'm happy to have somebody rebase / merge my work to such a branch, but I'm afraid I don't have capacity for that effort at this point. |
|
No sweat. @hayd and I both took a stab at it already, just wanted to give you the opportunity first. |
All tests pass under tox against Python 2.6, 2.7, 3.2, and 3.3.