-
Notifications
You must be signed in to change notification settings - Fork 207
Fixes #2348 - Converts the source code to python 3 #2825
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
Conversation
Thanks @karlcow, I will start reviewing this week. I assume failing tests are WIP? |
edit: spoke too soon, just some style nits:
😄 |
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.
LGTM!
ok if I didn't mess up, I just pushed a rebase of this branch based on the latest master with tests running.
Let's see the logs
https://github.com/webcompat/webcompat.com/blob/master/CHANGELOG.md#1800---2019-03-14 |
Just updated the circleCi config to a different image for this branch so we run with python 3. 🥁 and it does. |
Ah interesting…
I will open an issue on the main project They renamed the tool. |
Just created #2828 |
pushed another rebase to be in sync with current master. |
Updated
but I get a fail on circleci. Let's see what is wrong. |
ah!
I probably need to adjust and create a pycodestyle pre-commit hook. |
Linting is ok. |
locally I don't have any errors. https://circleci.com/gh/webcompat/webcompat.com/461 https://stackoverflow.com/questions/39142928/cant-load-flask-config-from-parent-directory?rq=1 |
In this error message, the interesting line is maybe:
Maybe this line.
|
I would love to be able to reproduce this locally. |
I noticed that circleci is using packages.json to install stuff. Not sure that's good to do that. |
ok it didn't solve anything for the specific circleci issue. |
oh holy cow… so much time spent on something which should have been so simple. the error is coming from
and the fact that Let's see that now. doh! Angry gods of cows. |
so at least now the tests are running it seems we have some things to fix.
This is an easy one. |
ok more things to fix. |
@miketaylr time for the merge pull request. |
wowowow! i'll leave you the honor. |
This PR fixes issue #2348
Proposed PR background
Python 2.* is reaching the EOL. We need to move to python 3.
This is a first PR as a draft to explore a bit more things. This is not yet merged with the latest version of master.