-
-
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
Changes from 42 commits
3b0c307
cf7c021
f2f0a88
ee016b2
1ea4274
e26b059
be9f1ed
09150cc
96c2f6d
ff6813b
eee0978
f201d15
64116bc
633877b
975b7e4
87af24f
1c22682
496b9c9
7fa4239
5ca33e6
806b065
a4a1bab
0bd9294
0b70237
cbcdbcb
2401401
959cebd
448e1d4
77ffbd8
76fe20e
fc8eccd
d18a19a
136c59a
1a75d68
36b83da
988c21c
04c2566
f351f85
76e1117
e46be85
0d73ebe
1d055ef
6e8027b
f972a55
717da9a
ea3096f
dd6b557
027f734
3d5191b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ public_* | |
private_* | ||
.rope_project/ | ||
readthedocs/htmlcov | ||
tags |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
sudo: false | ||
env: | ||
- TOX_ENV=py27 | ||
- TOX_ENV=py36 | ||
- TOX_ENV=docs | ||
- TOX_ENV=lint | ||
- TOX_ENV=eslint | ||
|
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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Build signals""" | ||
|
||
from __future__ import absolute_import | ||
import django.dispatch | ||
|
||
|
||
|
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 | ||
|
||
|
||
|
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.
I believe TOX handles the Python env, so having this both places means we run all of the tests 2x. I think we can remove this.
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.
Or, we can remove the 2.7, and run them all in 3.6 -- I see travis fails with "no 3.6 found" when running under 2.7.
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.
Yeah, I added 3.6 to get around the weird error in 2.7, but that exploded the build matrix, so I tried to add the tox-travis plugin to make the integration smarter, but never got it properly configured. If 2.7 is working under 3.6, I think the right play is to pull out the tox-travis plugin and just tell travis to use 3.6