Update actions/setup-python action to v6 #3

Open
mars3142 wants to merge 1 commits from renovate/actions-setup-python-6.x into main
Owner

This PR contains the following updates:

Package Type Update Change
actions/setup-python action major v3v6

Release Notes

actions/setup-python (actions/setup-python)

v6.2.0

Compare Source

What's Changed

Dependency Upgrades

Full Changelog: https://github.com/actions/setup-python/compare/v6...v6.2.0

v6.1.0

Compare Source

What's Changed

Enhancements:
Dependency and Documentation updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v6...v6.1.0

v6.0.0

Compare Source

What's Changed

Breaking Changes

Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. See Release Notes

Enhancements:
Bug fixes:
Dependency updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v6.0.0

v6

Compare Source

v5.6.0

Compare Source

What's Changed

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.6.0

v5.5.0

Compare Source

What's Changed

Enhancements:
Bug fixes:
  • Fix architecture for pypy on Linux ARM64 by @​mayeut in #​1011
    This update maps arm64 to aarch64 for Linux ARM64 PyPy installations.
Dependency updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.5.0

v5.4.0

Compare Source

What's Changed

Enhancements:
Documentation changes:
Dependency updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.4.0

v5.3.0

Compare Source

What's Changed

Bug Fixes:
Enhancements:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.3.0

v5.2.0

Compare Source

What's Changed

Bug fixes:
  • Add .zip extension to Windows package downloads for Expand-Archive Compatibility by @​priyagupta108 in #​916
    This addresses compatibility issues on Windows self-hosted runners by ensuring that the filenames for Python and PyPy package downloads explicitly include the .zip extension, allowing the Expand-Archive command to function correctly.
  • Add arch to cache key by @​Zxilly in #​896
    This addresses issues with caching by adding the architecture (arch) to the cache key, ensuring that cache keys are accurate to prevent conflicts.
    Note: This change may break previous cache keys as they will no longer be compatible with the new format.
Documentation changes:
Dependency updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.2.0

v5.1.1

Compare Source

What's Changed

Bug fixes:
  • fix(ci): update all failing workflows by @​mayeut in #​863
    This update ensures compatibility and optimal performance of workflows on the latest macOS version.
Documentation changes:
Dependency updates:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5...v5.1.1

v5.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v5.0.0...v5.1.0

v5.0.0

Compare Source

What's Changed

In scope of this release, we update node version runtime from node16 to node20 (#​772). Besides, we update dependencies to the latest versions.

Full Changelog: https://github.com/actions/setup-python/compare/v4.8.0...v5.0.0

v5

Compare Source

v4.9.1

Compare Source

What's Changed

Full Changelog: https://github.com/actions/setup-python/compare/v4...v4.9.1

v4.9.0

Compare Source

What's Changed

  • Upgrade actions/cache to 4.0.3 by @​priya-kinthali in #​1073
    In scope of this release we updated actions/cache package to ensure continued support and compatibility, as older versions of the package are now deprecated. For more information please refer to the toolkit/cache.

Full Changelog: https://github.com/actions/setup-python/compare/v4.8.0...v4.9.0

v4.8.0

Compare Source

What's Changed

In scope of this release we added support for GraalPy (#​694). You can use this snippet to set up GraalPy:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4 
  with:
    python-version: 'graalpy-22.3' 
- run: python my_script.py

Besides, the release contains such changes as:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v4...v4.8.0

v4.7.1

Compare Source

What's Changed

Full Changelog: https://github.com/actions/setup-python/compare/v4...v4.7.1

v4.7.0

Compare Source

In scope of this release, the support for reading python version from pyproject.toml was added (#​669).

      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version-file: pyproject.toml
Besides, it includes such changes as:

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v4...v4.7.0

v4.6.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/actions/setup-python/compare/v4...v4.6.1

v4.6.0: Add allow-prereleases input

Compare Source

In scope of this release we added a new input (allow-prereleases) to allow falling back to pre-release versions of Python when a matching GA version of Python is not available

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-python@v4
    with:
      python-version: 3.12
      allow-prereleases: true

Besides, we added such changes as:

  • Fix bug to trim new line for PyPy version: #​610
  • Added pip dependency file to generate hash from it: #​604
  • Improved error handling for saving and restoring cache: #​618
  • Add warning if cache paths are empty: #​642

v4.5.0: Fix cache issue for Poetry projects located in subfolders

Compare Source

In scope of this release we fixed cache issue for Poetry projects located in subfolders (#​446). Besides that we updated json5 version from 2.2.0 to 2.2.3 (#​579).

v4.4.0: Add support to install multiple python versions

Compare Source

In scope of this release we added support to install multiple python versions. For this you can try to use this snippet:

    - uses: actions/setup-python@v4
      with:
        python-version: |
            3.8
            3.9
            3.10

Besides, we changed logic with throwing the error for GHES if cache is unavailable to warn (#​566).

v4.3.1: Improve error handling and messages

Compare Source

In scope of this release we added improved error message to put operating system and its version in the logs (#​559). Besides, the release

v4.3.0

Compare Source

v4.2.0: Add check-latest input and bug fixes

Compare Source

In scope of this release we add the check-latest input. If check-latest is set to true, the action first checks if the cached version is the latest one. If the locally cached version is not the most up-to-date, the version will then be downloaded from python-versions repository. By default check-latest is set to false. For PyPy it will to try to reach https://downloads.python.org/pypy/versions.json

Example of usage:
steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-python@v4
    with:
      python-version: '3.9'
      check-latest: true
  - run: python --version

Besides, it includes such changes as

  • Resolved logs for python-version and file inputs: #​465
  • Added linux os release info to primary key: #​467
  • Added fix to change Python versions for poetry: #​445
  • Fix Tool Path handling for self-hosted runners: #​466

v4.1.0

Compare Source

In scope of this pull request we updated actions/cache package as the new version contains fixes for caching error handling. Moreover, we added a new input update-environment. This option allows to specify if the action shall update environment variables (default) or not.

Update-environment input
    - name: setup-python 3.9
      uses: actions/setup-python@v4
      with:
        python-version: 3.9
        update-environment: false

Besides, we added such changes as:

  • Allow python-version-file to be a relative path: #​431
  • Added new environment variables for Cmake: #​440
  • Updated error message for resolveVersion: #​450
  • Assign default value of AGENT_TOOLSDIRECTORY if not set: #​394

v4.0.0

Compare Source

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 equal AGENT_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 to vercel/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

  • Other improvements: #​318 #​396 #​384 #​387 #​388

v4

Compare Source

v3.1.4

Compare Source

What's Changed

In the scope of this patch release, the warning for deprecating Python 2.x was added in #​674 by @​dmitry-shibanov

For more information, check out #​672

Full Changelog: https://github.com/actions/setup-python/compare/v3...v3.1.4

v3.1.3: Update actions/core to 1.10.0 for v3

Compare Source

In scope of this release we update actions/core to 1.10.0 for v3 major tag: #​624

v3.1.2: Update actions/cache version to 2.0.2

Compare Source

In scope of this release we updated actions/cache package as the new version contains fixes related to GHES 3.5 (#​382)

v3.1.1: Add "cache-hit" output and fix "python-version" output for PyPy

Compare Source

This release introduces new output cache-hit (#​373) and fix python-version output for PyPy (#​365)

The cache-hit output contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled.

The python-version contains version of Python or PyPy.

v3.1.0: Support caching poetry dependencies and caching on GHES 3.5

Compare Source

steps:
- uses: actions/checkout@v3
- name: Install poetry
  run: pipx install poetry
- uses: actions/setup-python@v3
  with:
    python-version: '3.9'
    cache: 'poetry'
- run: poetry install
- run: poetry run pytest

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-python](https://github.com/actions/setup-python) | action | major | `v3` → `v6` | --- ### Release Notes <details> <summary>actions/setup-python (actions/setup-python)</summary> ### [`v6.2.0`](https://github.com/actions/setup-python/releases/tag/v6.2.0) [Compare Source](https://github.com/actions/setup-python/compare/v6.1.0...v6.2.0) #### What's Changed ##### Dependency Upgrades - Upgrade dependencies to Node 24 compatible versions by [@&#8203;salmanmkc](https://github.com/salmanmkc) in [#&#8203;1259](https://github.com/actions/setup-python/pull/1259) - Upgrade urllib3 from 2.5.0 to 2.6.3 in `/__tests__/data` by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1253](https://github.com/actions/setup-python/pull/1253) and [#&#8203;1264](https://github.com/actions/setup-python/pull/1264) **Full Changelog**: <https://github.com/actions/setup-python/compare/v6...v6.2.0> ### [`v6.1.0`](https://github.com/actions/setup-python/releases/tag/v6.1.0) [Compare Source](https://github.com/actions/setup-python/compare/v6...v6.1.0) #### What's Changed ##### Enhancements: - Add support for `pip-install` input by [@&#8203;gowridurgad](https://github.com/gowridurgad) in [#&#8203;1201](https://github.com/actions/setup-python/pull/1201) - Add graalpy early-access and windows builds by [@&#8203;timfel](https://github.com/timfel) in [#&#8203;880](https://github.com/actions/setup-python/pull/880) ##### Dependency and Documentation updates: - Enhanced wording and updated example usage for `allow-prereleases` by [@&#8203;yarikoptic](https://github.com/yarikoptic) in [#&#8203;979](https://github.com/actions/setup-python/pull/979) - Upgrade urllib3 from 1.26.19 to 2.5.0 and document breaking changes in v6 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1139](https://github.com/actions/setup-python/pull/1139) - Upgrade typescript from 5.4.2 to 5.9.3 and Documentation update by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1094](https://github.com/actions/setup-python/pull/1094) - Upgrade actions/publish-action from 0.3.0 to 0.4.0 & Documentation update for pip-install input by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1199](https://github.com/actions/setup-python/pull/1199) - Upgrade requests from 2.32.2 to 2.32.4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1130](https://github.com/actions/setup-python/pull/1130) - Upgrade prettier from 3.5.3 to 3.6.2 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1234](https://github.com/actions/setup-python/pull/1234) - Upgrade [@&#8203;types/node](https://github.com/types/node) from 24.1.0 to 24.9.1 and update macos-13 to macos-15-intel by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1235](https://github.com/actions/setup-python/pull/1235) #### New Contributors - [@&#8203;yarikoptic](https://github.com/yarikoptic) made their first contribution in [#&#8203;979](https://github.com/actions/setup-python/pull/979) **Full Changelog**: <https://github.com/actions/setup-python/compare/v6...v6.1.0> ### [`v6.0.0`](https://github.com/actions/setup-python/releases/tag/v6.0.0) [Compare Source](https://github.com/actions/setup-python/compare/v6...v6) #### What's Changed ##### Breaking Changes - Upgrade to node 24 by [@&#8203;salmanmkc](https://github.com/salmanmkc) in [#&#8203;1164](https://github.com/actions/setup-python/pull/1164) Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. [See Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1) ##### Enhancements: - Add support for `pip-version` by [@&#8203;priyagupta108](https://github.com/priyagupta108) in [#&#8203;1129](https://github.com/actions/setup-python/pull/1129) - Enhance reading from .python-version by [@&#8203;krystof-k](https://github.com/krystof-k) in [#&#8203;787](https://github.com/actions/setup-python/pull/787) - Add version parsing from Pipfile by [@&#8203;aradkdj](https://github.com/aradkdj) in [#&#8203;1067](https://github.com/actions/setup-python/pull/1067) ##### Bug fixes: - Clarify pythonLocation behaviour for PyPy and GraalPy in environment variables by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1183](https://github.com/actions/setup-python/pull/1183) - Change missing cache directory error to warning by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1182](https://github.com/actions/setup-python/pull/1182) - Add Architecture-Specific PATH Management for Python with --user Flag on Windows by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1122](https://github.com/actions/setup-python/pull/1122) - Include python version in PyPy python-version output by [@&#8203;cdce8p](https://github.com/cdce8p) in [#&#8203;1110](https://github.com/actions/setup-python/pull/1110) - Update docs: clarification on pip authentication with setup-python by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;1156](https://github.com/actions/setup-python/pull/1156) ##### Dependency updates: - Upgrade idna from 2.9 to 3.7 in /**tests**/data by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;843](https://github.com/actions/setup-python/pull/843) - Upgrade form-data to fix critical vulnerabilities [#&#8203;182](https://github.com/actions/setup-python/issues/182) & [#&#8203;183](https://github.com/actions/setup-python/issues/183) by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1163](https://github.com/actions/setup-python/pull/1163) - Upgrade setuptools to 78.1.1 to fix path traversal vulnerability in PackageIndex.download by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1165](https://github.com/actions/setup-python/pull/1165) - Upgrade actions/checkout from 4 to 5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1181](https://github.com/actions/setup-python/pull/1181) - Upgrade [@&#8203;actions/tool-cache](https://github.com/actions/tool-cache) from 2.0.1 to 2.0.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1095](https://github.com/actions/setup-python/pull/1095) #### New Contributors - [@&#8203;krystof-k](https://github.com/krystof-k) made their first contribution in [#&#8203;787](https://github.com/actions/setup-python/pull/787) - [@&#8203;cdce8p](https://github.com/cdce8p) made their first contribution in [#&#8203;1110](https://github.com/actions/setup-python/pull/1110) - [@&#8203;aradkdj](https://github.com/aradkdj) made their first contribution in [#&#8203;1067](https://github.com/actions/setup-python/pull/1067) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v6.0.0> ### [`v6`](https://github.com/actions/setup-python/compare/v5.6.0...v6) [Compare Source](https://github.com/actions/setup-python/compare/v5.6.0...v6) ### [`v5.6.0`](https://github.com/actions/setup-python/releases/tag/v5.6.0) [Compare Source](https://github.com/actions/setup-python/compare/v5.5.0...v5.6.0) #### What's Changed - Workflow updates related to Ubuntu 20.04 by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1065](https://github.com/actions/setup-python/pull/1065) - Fix for Candidate Not Iterable Error by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1082](https://github.com/actions/setup-python/pull/1082) - Upgrade semver and [@&#8203;types/semver](https://github.com/types/semver) by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1091](https://github.com/actions/setup-python/pull/1091) - Upgrade prettier from 2.8.8 to 3.5.3 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1046](https://github.com/actions/setup-python/pull/1046) - Upgrade ts-jest from 29.1.2 to 29.3.2 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1081](https://github.com/actions/setup-python/pull/1081) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.6.0> ### [`v5.5.0`](https://github.com/actions/setup-python/releases/tag/v5.5.0) [Compare Source](https://github.com/actions/setup-python/compare/v5.4.0...v5.5.0) #### What's Changed ##### Enhancements: - Support free threaded Python versions like '3.13t' by [@&#8203;colesbury](https://github.com/colesbury) in [#&#8203;973](https://github.com/actions/setup-python/pull/973) - Enhance Workflows: Include ubuntu-arm runners, Add e2e Testing for free threaded and Upgrade [@&#8203;action/cache](https://github.com/action/cache) from 4.0.0 to 4.0.3 by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;1056](https://github.com/actions/setup-python/pull/1056) - Add support for .tool-versions file in setup-python by [@&#8203;mahabaleshwars](https://github.com/mahabaleshwars) in [#&#8203;1043](https://github.com/actions/setup-python/pull/1043) ##### Bug fixes: - Fix architecture for pypy on Linux ARM64 by [@&#8203;mayeut](https://github.com/mayeut) in [#&#8203;1011](https://github.com/actions/setup-python/pull/1011) This update maps arm64 to aarch64 for Linux ARM64 PyPy installations. ##### Dependency updates: - Upgrade [@&#8203;vercel/ncc](https://github.com/vercel/ncc) from 0.38.1 to 0.38.3 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1016](https://github.com/actions/setup-python/pull/1016) - Upgrade [@&#8203;actions/glob](https://github.com/actions/glob) from 0.4.0 to 0.5.0 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1015](https://github.com/actions/setup-python/pull/1015) #### New Contributors - [@&#8203;colesbury](https://github.com/colesbury) made their first contribution in [#&#8203;973](https://github.com/actions/setup-python/pull/973) - [@&#8203;mahabaleshwars](https://github.com/mahabaleshwars) made their first contribution in [#&#8203;1043](https://github.com/actions/setup-python/pull/1043) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.5.0> ### [`v5.4.0`](https://github.com/actions/setup-python/releases/tag/v5.4.0) [Compare Source](https://github.com/actions/setup-python/compare/v5.3.0...v5.4.0) #### What's Changed ##### Enhancements: - Update cache error message by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;968](https://github.com/actions/setup-python/pull/968) - Enhance Workflows: Add Ubuntu-24, Remove Python 3.8 by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;985](https://github.com/actions/setup-python/pull/985) - Configure Dependabot settings by [@&#8203;HarithaVattikuti](https://github.com/HarithaVattikuti) in [#&#8203;1008](https://github.com/actions/setup-python/pull/1008) ##### Documentation changes: - Readme update - recommended permissions by [@&#8203;benwells](https://github.com/benwells) in [#&#8203;1009](https://github.com/actions/setup-python/pull/1009) - Improve Advanced Usage examples by [@&#8203;lrq3000](https://github.com/lrq3000) in [#&#8203;645](https://github.com/actions/setup-python/pull/645) ##### Dependency updates: - Upgrade `undici` from 5.28.4 to 5.28.5 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1012](https://github.com/actions/setup-python/pull/1012) - Upgrade `urllib3` from 1.25.9 to 1.26.19 in /**tests**/data by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;895](https://github.com/actions/setup-python/pull/895) - Upgrade `actions/publish-immutable-action` from 0.0.3 to 0.0.4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1014](https://github.com/actions/setup-python/pull/1014) - Upgrade `@actions/http-client` from 2.2.1 to 2.2.3 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1020](https://github.com/actions/setup-python/pull/1020) - Upgrade `requests` from 2.24.0 to 2.32.2 in /**tests**/data by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1019](https://github.com/actions/setup-python/pull/1019) - Upgrade `@actions/cache` to `^4.0.0` by [@&#8203;priyagupta108](https://github.com/priyagupta108) in [#&#8203;1007](https://github.com/actions/setup-python/pull/1007) #### New Contributors - [@&#8203;benwells](https://github.com/benwells) made their first contribution in [#&#8203;1009](https://github.com/actions/setup-python/pull/1009) - [@&#8203;HarithaVattikuti](https://github.com/HarithaVattikuti) made their first contribution in [#&#8203;1008](https://github.com/actions/setup-python/pull/1008) - [@&#8203;lrq3000](https://github.com/lrq3000) made their first contribution in [#&#8203;645](https://github.com/actions/setup-python/pull/645) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.4.0> ### [`v5.3.0`](https://github.com/actions/setup-python/releases/tag/v5.3.0) [Compare Source](https://github.com/actions/setup-python/compare/v5.2.0...v5.3.0) #### What's Changed - Add workflow file for publishing releases to immutable action package by [@&#8203;Jcambass](https://github.com/Jcambass) in [#&#8203;941](https://github.com/actions/setup-python/pull/941) - Upgrade IA publish by [@&#8203;Jcambass](https://github.com/Jcambass) in [#&#8203;943](https://github.com/actions/setup-python/pull/943) ##### Bug Fixes: - Normalise Line Endings to Ensure Cross-Platform Consistency by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;938](https://github.com/actions/setup-python/pull/938) - Revise `isGhes` logic by [@&#8203;jww3](https://github.com/jww3) in [#&#8203;963](https://github.com/actions/setup-python/pull/963) - Bump pillow from 7.2 to 10.2.0 by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;956](https://github.com/actions/setup-python/pull/956) ##### Enhancements: - Enhance workflows and documentation updates by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;965](https://github.com/actions/setup-python/pull/965) - Bump default versions to latest by [@&#8203;jeffwidman](https://github.com/jeffwidman) in [#&#8203;905](https://github.com/actions/setup-python/pull/905) #### New Contributors - [@&#8203;Jcambass](https://github.com/Jcambass) made their first contribution in [#&#8203;941](https://github.com/actions/setup-python/pull/941) - [@&#8203;jww3](https://github.com/jww3) made their first contribution in [#&#8203;963](https://github.com/actions/setup-python/pull/963) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.3.0> ### [`v5.2.0`](https://github.com/actions/setup-python/releases/tag/v5.2.0) [Compare Source](https://github.com/actions/setup-python/compare/v5.1.1...v5.2.0) #### What's Changed ##### Bug fixes: - Add `.zip` extension to Windows package downloads for `Expand-Archive` Compatibility by [@&#8203;priyagupta108](https://github.com/priyagupta108) in [#&#8203;916](https://github.com/actions/setup-python/pull/916) This addresses compatibility issues on Windows self-hosted runners by ensuring that the filenames for Python and PyPy package downloads explicitly include the .zip extension, allowing the Expand-Archive command to function correctly. - Add arch to cache key by [@&#8203;Zxilly](https://github.com/Zxilly) in [#&#8203;896](https://github.com/actions/setup-python/pull/896) This addresses issues with caching by adding the architecture (arch) to the cache key, ensuring that cache keys are accurate to prevent conflicts. Note: This change may break previous cache keys as they will no longer be compatible with the new format. ##### Documentation changes: - Fix display of emojis in contributors doc by [@&#8203;sciencewhiz](https://github.com/sciencewhiz) in [#&#8203;899](https://github.com/actions/setup-python/pull/899) - Documentation update for caching poetry dependencies by [@&#8203;gowridurgad](https://github.com/gowridurgad) in [#&#8203;908](https://github.com/actions/setup-python/pull/908) ##### Dependency updates: - Bump [@&#8203;iarna/toml](https://github.com/iarna/toml) version from 2.2.5 to 3.0.0 by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;912](https://github.com/actions/setup-python/pull/912) - Bump pyinstaller from 3.6 to 5.13.1 by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;923](https://github.com/actions/setup-python/pull/923) #### New Contributors - [@&#8203;sciencewhiz](https://github.com/sciencewhiz) made their first contribution in [#&#8203;899](https://github.com/actions/setup-python/pull/899) - [@&#8203;priyagupta108](https://github.com/priyagupta108) made their first contribution in [#&#8203;916](https://github.com/actions/setup-python/pull/916) - [@&#8203;Zxilly](https://github.com/Zxilly) made their first contribution in [#&#8203;896](https://github.com/actions/setup-python/pull/896) - [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) made their first contribution in [#&#8203;923](https://github.com/actions/setup-python/pull/923) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.2.0> ### [`v5.1.1`](https://github.com/actions/setup-python/releases/tag/v5.1.1) [Compare Source](https://github.com/actions/setup-python/compare/v5.1.0...v5.1.1) #### What's Changed ##### Bug fixes: - fix(ci): update all failing workflows by [@&#8203;mayeut](https://github.com/mayeut) in [#&#8203;863](https://github.com/actions/setup-python/pull/863) This update ensures compatibility and optimal performance of workflows on the latest macOS version. ##### Documentation changes: - Documentation update for cache by [@&#8203;gowridurgad](https://github.com/gowridurgad) in [#&#8203;873](https://github.com/actions/setup-python/pull/873) ##### Dependency updates: - Bump braces from 3.0.2 to 3.0.3 and undici from 5.28.3 to 5.28.4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;893](https://github.com/actions/setup-python/pull/893) #### New Contributors - [@&#8203;gowridurgad](https://github.com/gowridurgad) made their first contribution in [#&#8203;873](https://github.com/actions/setup-python/pull/873) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5...v5.1.1> ### [`v5.1.0`](https://github.com/actions/setup-python/releases/tag/v5.1.0) [Compare Source](https://github.com/actions/setup-python/compare/v5...v5.1.0) #### What's Changed - Leveraging the raw API to retrieve the version-manifest, as it does not impose a rate limit and hence facilitates unrestricted consumption without the need for a token for Github Enterprise Servers by [@&#8203;Shegox](https://github.com/Shegox) in [#&#8203;766](https://github.com/actions/setup-python/pull/766). - Dependency updates by [@&#8203;dependabot](https://github.com/dependabot) and [@&#8203;HarithaVattikuti](https://github.com/HarithaVattikuti) in [#&#8203;817](https://github.com/actions/setup-python/pull/817) - Documentation changes for version in README by [@&#8203;basnijholt](https://github.com/basnijholt) in [#&#8203;776](https://github.com/actions/setup-python/pull/776) - Documentation changes for link in README by [@&#8203;ukd1](https://github.com/ukd1) in [#&#8203;793](https://github.com/actions/setup-python/pull/793) - Documentation changes for link in Advanced Usage by [@&#8203;Jamim](https://github.com/Jamim) in [#&#8203;782](https://github.com/actions/setup-python/pull/782) - Documentation changes for avoiding rate limit issues on GHES by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;835](https://github.com/actions/setup-python/pull/835) #### New Contributors - [@&#8203;basnijholt](https://github.com/basnijholt) made their first contribution in [#&#8203;776](https://github.com/actions/setup-python/pull/776) - [@&#8203;ukd1](https://github.com/ukd1) made their first contribution in [#&#8203;793](https://github.com/actions/setup-python/pull/793) - [@&#8203;Jamim](https://github.com/Jamim) made their first contribution in [#&#8203;782](https://github.com/actions/setup-python/pull/782) - [@&#8203;Shegox](https://github.com/Shegox) made their first contribution in [#&#8203;766](https://github.com/actions/setup-python/pull/766) - [@&#8203;priya-kinthali](https://github.com/priya-kinthali) made their first contribution in [#&#8203;835](https://github.com/actions/setup-python/pull/835) **Full Changelog**: <https://github.com/actions/setup-python/compare/v5.0.0...v5.1.0> ### [`v5.0.0`](https://github.com/actions/setup-python/releases/tag/v5.0.0) [Compare Source](https://github.com/actions/setup-python/compare/v5...v5) #### What's Changed In scope of this release, we update node version runtime from node16 to node20 ([#&#8203;772](https://github.com/actions/setup-python/pull/772)). Besides, we update dependencies to the latest versions. **Full Changelog**: <https://github.com/actions/setup-python/compare/v4.8.0...v5.0.0> ### [`v5`](https://github.com/actions/setup-python/compare/v4.9.1...v5) [Compare Source](https://github.com/actions/setup-python/compare/v4.9.1...v5) ### [`v4.9.1`](https://github.com/actions/setup-python/releases/tag/v4.9.1) [Compare Source](https://github.com/actions/setup-python/compare/v4.9.0...v4.9.1) #### What's Changed - Add workflow file for publishing releases to immutable action package by [@&#8203;aparnajyothi-y](https://github.com/aparnajyothi-y) in [#&#8203;1084](https://github.com/actions/setup-python/pull/1084) **Full Changelog**: <https://github.com/actions/setup-python/compare/v4...v4.9.1> ### [`v4.9.0`](https://github.com/actions/setup-python/releases/tag/v4.9.0) [Compare Source](https://github.com/actions/setup-python/compare/v4.8.0...v4.9.0) #### What's Changed - Upgrade `actions/cache` to 4.0.3 by [@&#8203;priya-kinthali](https://github.com/priya-kinthali) in [#&#8203;1073](https://github.com/actions/setup-python/pull/1073) In scope of this release we updated actions/cache package to ensure continued support and compatibility, as older versions of the package are now deprecated. For more information please refer to the [toolkit/cache](https://github.com/actions/toolkit/discussions/1890). **Full Changelog**: <https://github.com/actions/setup-python/compare/v4.8.0...v4.9.0> ### [`v4.8.0`](https://github.com/actions/setup-python/releases/tag/v4.8.0) [Compare Source](https://github.com/actions/setup-python/compare/v4.7.1...v4.8.0) #### What's Changed In scope of this release we added support for GraalPy ([#&#8203;694](https://github.com/actions/setup-python/pull/694)). You can use this snippet to set up GraalPy: ```yaml steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: 'graalpy-22.3' - run: python my_script.py ``` Besides, the release contains such changes as: - Trim python version when reading from file by [@&#8203;FerranPares](https://github.com/FerranPares) in [#&#8203;628](https://github.com/actions/setup-python/pull/628) - Use non-deprecated versions in examples by [@&#8203;jeffwidman](https://github.com/jeffwidman) in [#&#8203;724](https://github.com/actions/setup-python/pull/724) - Change deprecation comment to past tense by [@&#8203;jeffwidman](https://github.com/jeffwidman) in [#&#8203;723](https://github.com/actions/setup-python/pull/723) - Bump [@&#8203;babel/traverse](https://github.com/babel/traverse) from 7.9.0 to 7.23.2 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;743](https://github.com/actions/setup-python/pull/743) - advanced-usage.md: Encourage the use actions/checkout\@&#8203;v4 by [@&#8203;cclauss](https://github.com/cclauss) in [#&#8203;729](https://github.com/actions/setup-python/pull/729) - Examples now use checkout\@&#8203;v4 by [@&#8203;simonw](https://github.com/simonw) in [#&#8203;738](https://github.com/actions/setup-python/pull/738) - Update actions/checkout to v4 by [@&#8203;dmitry-shibanov](https://github.com/dmitry-shibanov) in [#&#8203;761](https://github.com/actions/setup-python/pull/761) #### New Contributors - [@&#8203;FerranPares](https://github.com/FerranPares) made their first contribution in [#&#8203;628](https://github.com/actions/setup-python/pull/628) - [@&#8203;timfel](https://github.com/timfel) made their first contribution in [#&#8203;694](https://github.com/actions/setup-python/pull/694) - [@&#8203;jeffwidman](https://github.com/jeffwidman) made their first contribution in [#&#8203;724](https://github.com/actions/setup-python/pull/724) **Full Changelog**: <https://github.com/actions/setup-python/compare/v4...v4.8.0> ### [`v4.7.1`](https://github.com/actions/setup-python/releases/tag/v4.7.1) [Compare Source](https://github.com/actions/setup-python/compare/v4.7.0...v4.7.1) #### What's Changed - Bump word-wrap from 1.2.3 to 1.2.4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;702](https://github.com/actions/setup-python/pull/702) - Add range validation for toml files by [@&#8203;dmitry-shibanov](https://github.com/dmitry-shibanov) in [#&#8203;726](https://github.com/actions/setup-python/pull/726) **Full Changelog**: <https://github.com/actions/setup-python/compare/v4...v4.7.1> ### [`v4.7.0`](https://github.com/actions/setup-python/releases/tag/v4.7.0) [Compare Source](https://github.com/actions/setup-python/compare/v4.6.1...v4.7.0) In scope of this release, the support for reading python version from pyproject.toml was added ([#&#8203;669](https://github.com/actions/setup-python/pull/669)). ```yaml - name: Setup Python uses: actions/setup-python@v4 with: python-version-file: pyproject.toml ``` ##### Besides, it includes such changes as: - Bump tough-cookie and [@&#8203;azure/ms-rest-js](https://github.com/azure/ms-rest-js) by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;697](https://github.com/actions/setup-python/pull/697) - Bump semver from 7.3.8 to 7.5.2 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;692](https://github.com/actions/setup-python/pull/692) - Fix typos found by codespell by [@&#8203;DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [#&#8203;650](https://github.com/actions/setup-python/pull/650) #### New Contributors - [@&#8203;dariocurr](https://github.com/dariocurr) made their first contribution in [#&#8203;669](https://github.com/actions/setup-python/pull/669) - [@&#8203;DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) made their first contribution in [#&#8203;650](https://github.com/actions/setup-python/pull/650) **Full Changelog**: <https://github.com/actions/setup-python/compare/v4...v4.7.0> ### [`v4.6.1`](https://github.com/actions/setup-python/releases/tag/v4.6.1) [Compare Source](https://github.com/actions/setup-python/compare/v4.6.0...v4.6.1) #### What's Changed - Fix `allow-prereleases` sample configuration by [@&#8203;mayeut](https://github.com/mayeut) in [#&#8203;615](https://github.com/actions/setup-python/pull/615) - Fix a incorrect link advanced-usage.md by [@&#8203;siyuan0322](https://github.com/siyuan0322) in [#&#8203;657](https://github.com/actions/setup-python/pull/657) - Remove implicit dependency by [@&#8203;nikolai-laevskii](https://github.com/nikolai-laevskii) in [#&#8203;668](https://github.com/actions/setup-python/pull/668) - Automatic update of configuration files from 05/23/2023 by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;671](https://github.com/actions/setup-python/pull/671) - Add warning for python 2.7 on release/v4 by [@&#8203;dmitry-shibanov](https://github.com/dmitry-shibanov) in [#&#8203;673](https://github.com/actions/setup-python/pull/673) #### New Contributors - [@&#8203;siyuan0322](https://github.com/siyuan0322) made their first contribution in [#&#8203;657](https://github.com/actions/setup-python/pull/657) - [@&#8203;nikolai-laevskii](https://github.com/nikolai-laevskii) made their first contribution in [#&#8203;668](https://github.com/actions/setup-python/pull/668) **Full Changelog**: <https://github.com/actions/setup-python/compare/v4...v4.6.1> ### [`v4.6.0`](https://github.com/actions/setup-python/releases/tag/v4.6.0): Add allow-prereleases input [Compare Source](https://github.com/actions/setup-python/compare/v4.5.0...v4.6.0) In scope of this release we added a new input (`allow-prereleases`) to allow [falling back to pre-release versions of Python when a matching GA version of Python is not available](https://github.com/actions/setup-python/pull/414) ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.12 allow-prereleases: true ``` Besides, we added such changes as: - Fix bug to trim new line for PyPy version: [#&#8203;610](https://github.com/actions/setup-python/pull/610) - Added pip dependency file to generate hash from it: [#&#8203;604](https://github.com/actions/setup-python/pull/604) - Improved error handling for saving and restoring cache: [#&#8203;618](https://github.com/actions/setup-python/pull/618) - Add warning if cache paths are empty: [#&#8203;642](https://github.com/actions/setup-python/pull/642) ### [`v4.5.0`](https://github.com/actions/setup-python/releases/tag/v4.5.0): Fix cache issue for Poetry projects located in subfolders [Compare Source](https://github.com/actions/setup-python/compare/v4.4.0...v4.5.0) In scope of this release we fixed cache issue for Poetry projects located in subfolders ([#&#8203;446](https://github.com/actions/setup-python/issues/446)). Besides that we updated json5 version from 2.2.0 to 2.2.3 ([#&#8203;579](https://github.com/actions/setup-python/pull/579)). ### [`v4.4.0`](https://github.com/actions/setup-python/releases/tag/v4.4.0): Add support to install multiple python versions [Compare Source](https://github.com/actions/setup-python/compare/v4.3.1...v4.4.0) In scope of this release we added support to [install multiple python versions](https://github.com/actions/setup-python/pull/567). For this you can try to use this snippet: ```yaml - uses: actions/setup-python@v4 with: python-version: | 3.8 3.9 3.10 ``` Besides, we changed logic with throwing the error for GHES if cache is unavailable to warn ([#&#8203;566](https://github.com/actions/setup-python/pull/566)). ### [`v4.3.1`](https://github.com/actions/setup-python/releases/tag/v4.3.1): Improve error handling and messages [Compare Source](https://github.com/actions/setup-python/compare/v4.3.0...v4.3.1) In scope of this release we added improved error message to put operating system and its version in the logs ([#&#8203;559](https://github.com/actions/setup-python/pull/559)). Besides, the release - fixes issue about [specifying architecture for pypy-nightly on Windows](https://github.com/actions/setup-python/issues/518) with related [pull request](https://github.com/actions/setup-python/pull/520). - improves error handling for Http Errors ([#&#8203;511](https://github.com/actions/setup-python/pull/511)). - updates minimatch ([#&#8203;558](https://github.com/actions/setup-python/pull/558)). ### [`v4.3.0`](https://github.com/actions/setup-python/releases/tag/v4.3.0) [Compare Source](https://github.com/actions/setup-python/compare/v4.2.0...v4.3.0) - Update [@&#8203;actions/core](https://github.com/actions/core) to 1.10.0 version [#&#8203;517](https://github.com/actions/setup-python/issues/517) - Update [@&#8203;actions/cache](https://github.com/actions/cache) to 3.0.4 version [#&#8203;499](https://github.com/actions/setup-python/issues/499) - Only use github.token on github.com [#&#8203;443](https://github.com/actions/setup-python/issues/443) - Improvement of documentation [#&#8203;477](https://github.com/actions/setup-python/issues/477) [#&#8203;479](https://github.com/actions/setup-python/issues/479) [#&#8203;491](https://github.com/actions/setup-python/issues/491) [#&#8203;492](https://github.com/actions/setup-python/issues/492) ### [`v4.2.0`](https://github.com/actions/setup-python/releases/tag/v4.2.0): Add check-latest input and bug fixes [Compare Source](https://github.com/actions/setup-python/compare/v4.1.0...v4.2.0) In scope of this release we add the [check-latest](https://github.com/actions/setup-python/pull/406) input. If check-latest is set to true, the action first checks if the cached version is the latest one. If the locally cached version is not the most up-to-date, the version will then be downloaded from [python-versions](https://github.com/actions/python-versions) repository. By default check-latest is set to false. For PyPy it will to try to reach <https://downloads.python.org/pypy/versions.json> ##### Example of usage: ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: '3.9' check-latest: true - run: python --version ``` Besides, it includes such changes as - Resolved logs for python-version and file inputs: [#&#8203;465](https://github.com/actions/setup-python/pull/465) - Added linux os release info to primary key: [#&#8203;467](https://github.com/actions/setup-python/pull/467) - Added fix to change Python versions for poetry: [#&#8203;445](https://github.com/actions/setup-python/pull/445) - Fix Tool Path handling for self-hosted runners: [#&#8203;466](https://github.com/actions/setup-python/pull/466) ### [`v4.1.0`](https://github.com/actions/setup-python/releases/tag/v4.1.0) [Compare Source](https://github.com/actions/setup-python/compare/v4...v4.1.0) In scope of this pull request we updated `actions/cache` package as the new version contains fixes for [caching error handling](https://github.com/actions/setup-python/pull/448). Moreover, we added a new input [update-environment](https://github.com/actions/setup-python/pull/411). This option allows to specify if the action shall update environment variables (default) or not. ##### Update-environment input ```yaml - name: setup-python 3.9 uses: actions/setup-python@v4 with: python-version: 3.9 update-environment: false ``` **Besides, we added such changes as:** - Allow python-version-file to be a relative path: [#&#8203;431](https://github.com/actions/setup-python/pull/431) - Added new environment variables for `Cmake`: [#&#8203;440](https://github.com/actions/setup-python/pull/440) - Updated error message for resolveVersion: [#&#8203;450](https://github.com/actions/setup-python/pull/450) - Assign default value of `AGENT_TOOLSDIRECTORY` if not set: [#&#8203;394](https://github.com/actions/setup-python/pull/394) ### [`v4.0.0`](https://github.com/actions/setup-python/releases/tag/v4.0.0) [Compare Source](https://github.com/actions/setup-python/compare/v4...v4) ##### What's Changed - Support for `python-version-file` input: [#&#8203;336](https://github.com/actions/setup-python/issues/336) Example of usage: ```yaml - 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: [#&#8203;349](https://github.com/actions/setup-python/issues/349) Example of usage: ```yaml - 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 equal `AGENT_TOOLSDIRECTORY`: [#&#8203;338](https://github.com/actions/setup-python/issues/338) - Bugfix: create missing `pypyX.Y` symlinks: [#&#8203;347](https://github.com/actions/setup-python/issues/347) - `PKG_CONFIG_PATH` environment variable: [#&#8203;400](https://github.com/actions/setup-python/issues/400) - Added `python-path` output: [#&#8203;405](https://github.com/actions/setup-python/issues/405) `python-path` output contains Python executable path. - Updated `zeit/ncc` to `vercel/ncc` package: [#&#8203;393](https://github.com/actions/setup-python/issues/393) - Bugfix: fixed output for prerelease version of poetry: [#&#8203;409](https://github.com/actions/setup-python/issues/409) - Made `pythonLocation` environment variable consistent for Python and PyPy: [#&#8203;418](https://github.com/actions/setup-python/issues/418) - Bugfix for `3.x-dev` syntax: [#&#8203;417](https://github.com/actions/setup-python/issues/417) - Other improvements: [#&#8203;318](https://github.com/actions/setup-python/issues/318) [#&#8203;396](https://github.com/actions/setup-python/issues/396) [#&#8203;384](https://github.com/actions/setup-python/issues/384) [#&#8203;387](https://github.com/actions/setup-python/issues/387) [#&#8203;388](https://github.com/actions/setup-python/issues/388) ### [`v4`](https://github.com/actions/setup-python/compare/v3.1.4...v4) [Compare Source](https://github.com/actions/setup-python/compare/v3.1.4...v4) ### [`v3.1.4`](https://github.com/actions/setup-python/releases/tag/v3.1.4) [Compare Source](https://github.com/actions/setup-python/compare/v3.1.3...v3.1.4) #### What's Changed In the scope of this patch release, the warning for deprecating Python 2.x was added in [#&#8203;674](https://github.com/actions/setup-python/pull/674) by [@&#8203;dmitry-shibanov](https://github.com/dmitry-shibanov) For more information, check out [#&#8203;672](https://github.com/actions/setup-python/issues/672) **Full Changelog**: <https://github.com/actions/setup-python/compare/v3...v3.1.4> ### [`v3.1.3`](https://github.com/actions/setup-python/releases/tag/v3.1.3): Update actions/core to 1.10.0 for v3 [Compare Source](https://github.com/actions/setup-python/compare/v3.1.2...v3.1.3) In scope of this release we update actions/core to 1.10.0 for v3 major tag: [#&#8203;624](https://github.com/actions/setup-python/pull/624) ### [`v3.1.2`](https://github.com/actions/setup-python/releases/tag/v3.1.2): Update actions/cache version to 2.0.2 [Compare Source](https://github.com/actions/setup-python/compare/v3.1.1...v3.1.2) In scope of this release we updated `actions/cache` package as the new version contains fixes related to GHES 3.5 ([#&#8203;382](https://github.com/actions/setup-python/pull/382)) ### [`v3.1.1`](https://github.com/actions/setup-python/releases/tag/v3.1.1): Add "cache-hit" output and fix "python-version" output for PyPy [Compare Source](https://github.com/actions/setup-python/compare/v3.1.0...v3.1.1) This release introduces new output cache-hit ([#&#8203;373](https://github.com/actions/setup-python/pull/373)) and fix python-version output for PyPy ([#&#8203;365](https://github.com/actions/setup-python/pull/365)) The cache-hit output contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled. The python-version contains version of Python or PyPy. ### [`v3.1.0`](https://github.com/actions/setup-python/releases/tag/v3.1.0): Support caching poetry dependencies and caching on GHES 3.5 [Compare Source](https://github.com/actions/setup-python/compare/v3...v3.1.0) - In the scope of this release, we added [support for caching from GHES 3.5](https://github.com/actions/setup-python/issues/362) and fixed the download issue for files > 2GB during restore. - Caching poetry dependencies ```yaml steps: - uses: actions/checkout@v3 - name: Install poetry run: pipx install poetry - uses: actions/setup-python@v3 with: python-version: '3.9' cache: 'poetry' - run: poetry install - run: poetry run pytest ``` </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMjkuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
mars3142 added 1 commit 2026-04-19 02:52:34 +00:00
Update actions/setup-python action to v6
Intercity Express Build / build (ubuntu-latest) (pull_request) Failing after 1m4s
Intercity Express Build / build (macos-latest) (pull_request) Has been cancelled
895e67714a
Some checks are pending
Intercity Express Build / build (ubuntu-latest) (pull_request) Failing after 1m4s
Intercity Express Build / build (macos-latest) (pull_request) Has been cancelled
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/actions-setup-python-6.x:renovate/actions-setup-python-6.x
git checkout renovate/actions-setup-python-6.x
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: os-railway/firmware_intercity_express#3