Sourced from actions/setup-python's releases.
v4.0.0
What's Changed
- Support for
python-version-file
input: #336Example of usage:
- uses: actions/setup-python@v4 with: python-version-file: '.python-version' # Read python version from a file - run: python my_script.py
There is no default python version for this
setup-python
major version, the action requires to specify eitherpython-version
input orpython-version-file
input. If thepython-version
input is not specified the action will try to read required version from file frompython-version-file
input.
- Use pypyX.Y for PyPy
python-version
input: #349Example of usage:
- uses: actions/setup-python@v4 with: python-version: 'pypy3.9' # pypy-X.Y kept for backward compatibility - run: python my_script.py
RUNNER_TOOL_CACHE
environment variable is equalAGENT_TOOLSDIRECTORY
: #338Bugfix: create missing
pypyX.Y
symlinks: #347
PKG_CONFIG_PATH
environment variable: #400Added
python-path
output: #405python-path
output contains Python executable path.Updated
zeit/ncc
tovercel/ncc
package: #393Bugfix: fixed output for prerelease version of poetry: #409
Made
pythonLocation
environment variable consistent for Python and PyPy: #418Bugfix for
3.x-dev
syntax: #417v3.1.4
What's Changed
In the scope of this patch release, the warning for deprecating Python 2.x was added in actions/setup-python#674 by
@dmitry-shibanov
For more information, check out actions/setup-python#672
... (truncated)
61a6322
Fix typos found by codespell (#650)ea5b57f
Bump semver from 7.3.8 to 7.5.2 (#692)014d32a
Bump tough-cookie and @azure/ms-rest-js
(#697)c16c4b8
Fix pipenv jobs (#699)0d5da6a
Read python version from pyproject.toml (fix #542)
(#669)3f824b7
remove python 2.7 from the tests (#687)bd6b4b6
Add warning for python 2.7 (#673)0cbcb9a
Merge pull request #668
from akv-platform/disallow-implicit-dependencies669664d
Merge branch 'tool-config-auto-update' into
disallow-implicit-dependencies9cbf792
Update configuration files