You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setup-python action used in the test workflow invokes pip. On Python 2.7 and 3.5, the pip invocation displays a Python deprecation message:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as
Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
More details about Python 2support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
That warning shows up in the actions summary and clutters up the summary. The same happens on Python 3.5.
When running pip locally, it is possible to disable that warning by setting the environment variable:
PIP_NO_PYTHON_VERSION_WARNING=1
PR #2962 sets that environment variable in the workflow step that invokes the setup-python action. However, while the environment variable is listed in the log, it seems to be ignored because the warning is still shown.
The env var PIP_DISABLE_PIP_VERSION_CHECK=1 works as expected with the setup-python action.
The issue I reported was investigated and it turns out the warning about Python 2.7 is issued in the setup-python action when it invokes python -m ensurepip to get pip upgraded.
I assume that before that upgrade, pip is below the version (presumably 20.0) that introduced support for disabling the warnings via the env var. I think we have to live with that warning.
The setup-python action used in the test workflow invokes pip. On Python 2.7 and 3.5, the pip invocation displays a Python deprecation message:
That warning shows up in the actions summary and clutters up the summary. The same happens on Python 3.5.
When running pip locally, it is possible to disable that warning by setting the environment variable:
PR #2962 sets that environment variable in the workflow step that invokes the setup-python action. However, while the environment variable is listed in the log, it seems to be ignored because the warning is still shown.
The env var PIP_DISABLE_PIP_VERSION_CHECK=1 works as expected with the setup-python action.
Opened issue actions/setup-python#575 to follow up.
The text was updated successfully, but these errors were encountered: