What's Changed
- Support for
python-version-file
input: #336
Example 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 either python-version
input or python-version-file
input. If the python-version
input is not specified the action will try to read required version from file from python-version-file
input.
- Use pypyX.Y for PyPy
python-version
input: #349
Example 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
: #338 -
Bugfix: create missing
pypyX.Y
symlinks: #347 -
PKG_CONFIG_PATH
environment variable: #400 -
Added
python-path
output: #405
python-path
output contains Python executable path. -
Updated
zeit/ncc
tovercel/ncc
package: #393 -
Bugfix: fixed output for prerelease version of poetry: #409
-
Made
pythonLocation
environment variable consistent for Python and PyPy: #418 -
Bugfix for
3.x-dev
syntax: #417