-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix autopep8 checks by tying it to version 1.3.5 #8641
Conversation
@@ -130,7 +130,7 @@ notice: python-env | |||
.PHONY: python-env | |||
python-env: | |||
@test -d $(PYTHON_ENV) || virtualenv $(VIRTUALENV_PARAMS) $(PYTHON_ENV) | |||
@$(PYTHON_ENV)/bin/pip install -q --upgrade pip autopep8 six | |||
@$(PYTHON_ENV)/bin/pip install -q --upgrade pip autopep8==1.3.5 six |
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 think we should not upgrade autopep8
and six
here. Also, not specify a version here.
We need to provide a requirements.txt
and let pip
install every dependency based on that file.
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.
We also upgrade pip in other places. I remember there is some historic reason for it. ++ on tying it to a specific version.
We don't have a global requirements.txt file yet. To get our builds back to green I suggest we get it in with this minimal change and follow up using requirements.txt file and not upgrading pip as it could be more effort then it seems.
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.
For the record: I am fine with upgrading pip
. I am not fine with upgrading other packages e.g autopep8
here.
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.
Minor comment on how to select specific version for a dependency.
The newest autopep8 release breaks our checks.
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.
Proper fix is coming in a new PR.
Created follow-up issue #8642 |
Merging as test failure is a flaky test. |
The newest autopep8 release breaks our checks.
The newest autopep8 release breaks our checks. (cherry picked from commit 1b6ef7d)
The newest autopep8 release breaks our checks.