Skip to content
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

Enable usage of python 3 #665

Merged
merged 7 commits into from
Feb 12, 2020
Merged

Enable usage of python 3 #665

merged 7 commits into from
Feb 12, 2020

Conversation

rajsite
Copy link
Member

@rajsite rajsite commented Feb 11, 2020

Some change to the Travis build agents was causing installation of the Python-based httpbin server (used for testing the http client) to fail and causes all of our Travis CI builds to fail with message:

virtualenv 20.0.1 has requirement six<2,>=1.12.0, but you'll have six 1.10.0 which is incompatible.

This failure revealed that that our usage of tox to create a virtualenv is not recommended on TravisCI. The travis.yml was modified to avoid tox by running commands directly (where Travis has already configured a virtualenv).

As part of this change I enabled the use of python 3 as python 2 is deprecated as of Jan 1, 2020.

To enable python 3 usage I had to upgrade our CPPLINT version where I switched to the version maintained on https://github.com/cpplint/cpplint.

These changes currently enable developers to use either python 2 or python 3 (in particular the appveyor windows build still uses python 2).

Copy link
Contributor

@sanmut sanmut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for fixing this :-)

test-it/karma/http/HttpGet.Test.js Show resolved Hide resolved
Copy link
Contributor

@cglzaguilar cglzaguilar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@rajsite rajsite merged commit 5becafd into ni:master Feb 12, 2020
@rajsite rajsite deleted the update-python-version branch February 12, 2020 16:50
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.

None yet

4 participants