-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Alternate approach to enhancing Python 3 support #2918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
3b0c307
Add Python 3.6 to tox.ini
gthank cf7c021
Update version of slumber.
gthank f2f0a88
Remove dependency on Distutils2; it's obsolete.
gthank ee016b2
Upgrade dnspython dependency.
gthank 1ea4274
Update haystack(ish) dependencies.
gthank e26b059
Update to latest django-celery.
gthank be9f1ed
Upgrade to newer pytest-django for better Python3.
gthank 09150cc
Upgrade django-allauth to public release containing change from pinne…
gthank 96c2f6d
Use modern Unipath.
gthank ff6813b
Use release of django-cors-middleware w/ signal support.
gthank eee0978
Explicitly depend on six, rather than waiting for a dependency to bri…
gthank f201d15
Make a pass w/ python-modernize.
gthank 64116bc
Make a pass with futurize on stage 2.
gthank 633877b
Apply Eric's Unicode version-parsing fix.
gthank 975b7e4
Guarantee StringIO is fed Unicode.
gthank 87af24f
Apply Eric's fix for Unicode in auth.
gthank 1c22682
Clean up bytes/unicode distinction when mocking results of subprocess…
gthank 496b9c9
Explicitly mock readthedocs.doc_builder.environments.api_v2.command a…
gthank 7fa4239
Use string.ascii_lowercase instead of string.lowercase when uniquifying.
gthank 5ca33e6
Remove stray trailing comma in imports; that's an error in Python 3.
gthank 806b065
Use assertTrue instead of assertTrueok_
gthank a4a1bab
Ignore tags file from exuberant ctags.
gthank 0bd9294
unittest.assertItemsEqual went away in Python 3, use six.assertCountE…
gthank 0b70237
Undo a .next() -> next() from futurize; it was an unfortunate name co…
gthank cbcdbcb
Don't try to use BaseException.message
gthank 2401401
Fix file pathing error caused by differences between 2 and 3.
gthank 959cebd
Fix bytes/str in test_version_commit_name, and be explicit.
gthank 448e1d4
Use assertContains so Django will do the hard work of Unicode/bytes r…
gthank 77ffbd8
Explicitly wrap forms paramter from django-formtools in a list.
gthank 76fe20e
Temporarily rely on latest master of readthedocs-build
gthank fc8eccd
Fix a couple more references to BaseException.message
gthank d18a19a
six.string_type -> six.binary_type because we're trying to invoke .de…
gthank 136c59a
Use @python_2_unicode_compatible to handle __str__/__unicode__ on Dja…
gthank 1a75d68
Fix more BaseException.message shenanigans.
gthank 36b83da
Coerce cmd_input to bytes where necessary before feeding to proc.comm…
gthank 988c21c
Mock return values from direct subprocess interaction as bytes explic…
gthank 04c2566
Enable Python 3.6 in Travis.
gthank f351f85
Tell Travis we want python 3.6 too
gthank 76e1117
Make Python 2.7 and Python 3.6 separate Travis builds.
gthank e46be85
More Travis-CI tweakery.
gthank 0d73ebe
Fix wonky syntax.
gthank 1d055ef
Try to simplify the tox/travis interactions.
gthank 6e8027b
Clean up some import order issues.
gthank f972a55
Parse the URL using the right name.
gthank 717da9a
Pin prospector to previous minor release
agjohnson ea3096f
Flag three tests as known failues under Py3.
gthank dd6b557
Remove unnecessary 'cast' to unicode string.
gthank 027f734
Make version-parsing code use only ASCII chars, in accordance with PE…
gthank 3d5191b
Merge branch 'master' into master
gthank File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,4 @@ public_* | |
private_* | ||
.rope_project/ | ||
readthedocs/htmlcov | ||
tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Slumber API client""" | ||
from __future__ import absolute_import | ||
import logging | ||
|
||
from slumber import API | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Build signals""" | ||
|
||
from __future__ import absolute_import | ||
import django.dispatch | ||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Utilities for the builds app.""" | ||
|
||
from __future__ import absolute_import | ||
import re | ||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps default to 2.7 for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, Travis fails and says it can't find the Python 3.6 interpreter when we do it on 2.7. The 2.7 tests seem to work fine when we tell Travis to use 3.6. Apparently just some quirk with the Travis and
tox
interactions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, strange. Perhaps this is another motivator for switching to our newer standard tox.ini/travis.yml config, like: https://github.com/rtfd/sphinx_rtd_theme
If this is working as expected, probably no strong reason to switch just yet though