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

Remove Python 2.7 from tests and builds #5090

Merged
merged 21 commits into from
Dec 15, 2020
Merged

Remove Python 2.7 from tests and builds #5090

merged 21 commits into from
Dec 15, 2020

Conversation

blag
Copy link
Contributor

@blag blag commented Nov 23, 2020

  • Remove Python 2.7 from .travis.yml and Makefile
  • Refactor .travis.yml to generate the build matrix implicitly (eg: env.jobs and jobs)
  • Build packages with Python 3 instead of Python 2.7
  • Change Python shebangs in scripts to use Python 3

@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Nov 23, 2020
@blag blag added this to the 3.4.0 milestone Nov 23, 2020
@pull-request-size pull-request-size bot added size/L PR that changes 100-499 lines. Requires some effort to review. and removed size/M PR that changes 30-99 lines. Good size to review. labels Nov 23, 2020
@blag blag marked this pull request as ready for review November 27, 2020 02:51
@blag blag force-pushed the remove-python2.7 branch from 4518150 to 1a92711 Compare December 2, 2020 04:53
@blag blag force-pushed the remove-python2.7 branch from 1a92711 to b0f62f6 Compare December 2, 2020 08:53
@@ -450,7 +441,7 @@ compilepy3:
.st2common-circular-dependencies-check:
@echo "Checking st2common for circular dependencies"
find ${ROOT_DIR}/st2common/st2common/ -name \*.py -type f -print0 | xargs -0 cat | grep st2reactor ; test $$? -eq 1
find ${ROOT_DIR}/st2common/st2common/ \( -name \*.py ! -name runnersregistrar\.py -name \*.py ! -name compat\.py | -name inquiry\.py \) -type f -print0 | xargs -0 cat | grep st2actions ; test $$? -eq 1
find ${ROOT_DIR}/st2common/st2common/ \( -name \*.py ! -name runnersregistrar\.py -name \*.py ! -name compat\.py ! -name inquiry\.py \) -type f -print0 | xargs -0 cat | grep st2actions ; test $$? -eq 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@m4dcoder Is this change acceptable to you? I think this is what you were trying to do with this commit, but I want to double check with you.

Without this fix we get two errors: find: missing ) and Command not found '-name', which I think is caused by the | character terminating the find command prematurely.

I also noticed that -name \*.py is in the find parameters twice, but I don't think that would cause any issues.

@blag blag force-pushed the remove-python2.7 branch from ab703c7 to d11bc0e Compare December 8, 2020 02:00
@blag blag force-pushed the remove-python2.7 branch from d11bc0e to cf63d93 Compare December 8, 2020 04:06
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@blag blag merged commit fa6b568 into master Dec 15, 2020
@blag blag deleted the remove-python2.7 branch December 15, 2020 20:13
@arm4b arm4b mentioned this pull request Dec 15, 2020
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:st2auth component:st2client enhancement python3 size/L PR that changes 100-499 lines. Requires some effort to review. WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants