Skip to content

Python version fixes - #145

Merged
theengineear merged 6 commits into
masterfrom
python-version-fixes
Nov 15, 2014
Merged

Python version fixes#145
theengineear merged 6 commits into
masterfrom
python-version-fixes

Conversation

@theengineear

Copy link
Copy Markdown
Contributor

huzzah, python 2.6, 2.7, 3.3, and 3.4 tests are run and are passing again!

1. Plotly uses 2.7 on the backend so it will
return bytes! The json 3.x module expects native
string (unicode), so we need to convert this.

2. base64encode requires bytes, so give it bytes 
and convert after.
This test was actually dependent on what order
or what subset of the tests you were running!
@theengineear

Copy link
Copy Markdown
Contributor Author

@chriddyp , @etpinard , wanna give it a peek?

@chriddyp

Copy link
Copy Markdown
Member

wow, thx for doing this! very informative. i wonder what our test coverage is.. and if there is some other uncovered stuff. did you just test these locally?

@theengineear

Copy link
Copy Markdown
Contributor Author

things like 'print' statements are easy to search for (as well as the '{}') patterns. but the encoding stuff can be a little sneaky.

as for test coverage, you can find them in the artifacts of the circle builds, it's actually pretty decent

https://circle-artifacts.com/gh/plotly/python-api/366/artifacts/0/tmp/circle-artifacts.0obueJi/index.html

yeah, i just tested these locally, i have a little vagrant setup to pop open a box, install all our deps for a number of python versions and then a command to run some tests. I'm sure it's pretty janky, but it does the job for now. soon i'll get it properly into circle though.

@theengineear

Copy link
Copy Markdown
Contributor Author

cool to merge?

@chriddyp

Copy link
Copy Markdown
Member

💃

On Fri, Nov 14, 2014 at 7:54 PM, Andrew notifications@github.com wrote:

cool to merge?


Reply to this email directly or view it on GitHub
#145 (comment).

Chris Parmer
Plotly, Chief Product Officer
514 571 5897
https://plot.ly/team

theengineear added a commit that referenced this pull request Nov 15, 2014
@theengineear
theengineear merged commit b9ebee5 into master Nov 15, 2014
@theengineear
theengineear deleted the python-version-fixes branch November 15, 2014 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants