From 64a9900c412f12a23d720975c61de8229a619859 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:53:41 +0000 Subject: [PATCH 01/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 1.3.0 to 1.4.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/004dc2989b38616af18eb8aba45fe49d5f813264...b3bac255307d789f3cbdfdb57d12a10e7e04bbe6) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 404f247..0cd49a3 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@004dc2989b38616af18eb8aba45fe49d5f813264 + - uses: MatteoH2O1999/build-and-install-python@b3bac255307d789f3cbdfdb57d12a10e7e04bbe6 id: build with: python-version: ${{ inputs.python-version }} From 0fca6c8caedb22f0bfa7a3f3391cc787981edcda Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Wed, 28 Jun 2023 20:17:12 +0200 Subject: [PATCH 02/48] Update action limitations --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index be4756e..1ddb428 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,14 @@ The objective of this action is to guarantee that for every major Python version TLDR: If you use the major version specification (`3.6` instead of `3.6.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. +### Exceptions + +Python versions < 3.5 are too difficult to build from source on Windows. +For these versions the action tries to use the official installer from [python.org](https://www.python.org/ftp/python). +If this fails, the action fails with an appropriate error message. +In this case you should request a version for which [python.org](https://www.python.org/ftp/python) offers a binary installer, and not just the source code. +On the positive side, every version of Python 2.7 has a binary installer so it shouldn't be a problem. + ## Known limits This action at the moment does not support: @@ -81,6 +89,7 @@ This action at the moment does not support: - installing multiple Python versions; - building PyPy from source; - building from source in UNIX systems for a different architecture +- building shared libraries for UNIX systems This actions tries to but does not guarantee to work on any arbitrary pair (`python-version`, `architecture`). From b15c65e156276c4d4deda19cbf67c7c1731bd816 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Jul 2023 18:19:07 +0000 Subject: [PATCH 03/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/b3bac255307d789f3cbdfdb57d12a10e7e04bbe6...707030a519a2abe1f9d1d9e83d1c7965c6843b7e) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0cd49a3..0747125 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@b3bac255307d789f3cbdfdb57d12a10e7e04bbe6 + - uses: MatteoH2O1999/build-and-install-python@707030a519a2abe1f9d1d9e83d1c7965c6843b7e id: build with: python-version: ${{ inputs.python-version }} From 00c5192d6d04238e57d678f1acad85cd13969162 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 02:13:22 +0000 Subject: [PATCH 04/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 1.4.1 to 1.5.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/707030a519a2abe1f9d1d9e83d1c7965c6843b7e...835cede8324691d1282121b9c3c27ecc969a7694) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0747125..8fb50bb 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@707030a519a2abe1f9d1d9e83d1c7965c6843b7e + - uses: MatteoH2O1999/build-and-install-python@4c5bdb9242b6757d60e7dc27a6b913761cad6992 id: build with: python-version: ${{ inputs.python-version }} From 3e8bd0e0fb386d52a10b1828a11ce8b7b8e9eccd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 09:20:09 +0000 Subject: [PATCH 05/48] fix(deps): bump actions/setup-python from 4.6.1 to 4.7.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.6.1 to 4.7.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/bd6b4b6205c4dbad673328db7b31b7fab9e241c0...61a6322f88396a6271a6ee3565807d608ecaddd1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8fb50bb..3e9cf38 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 + - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 id: setup with: python-version: ${{ steps.build.outputs.python-version }} From daee64f9b86143947d377593dc0cf3a6e1d278e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:30:49 +0000 Subject: [PATCH 06/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 1.5.0 to 2.0.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/4c5bdb9242b6757d60e7dc27a6b913761cad6992...fa6aa49b741ec1b3d0cc31c20c5cc0ce1e49f9a1) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3e9cf38..614f65f 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@4c5bdb9242b6757d60e7dc27a6b913761cad6992 + - uses: MatteoH2O1999/build-and-install-python@fa6aa49b741ec1b3d0cc31c20c5cc0ce1e49f9a1 id: build with: python-version: ${{ inputs.python-version }} From 7f67b73e38406a3fd99b05ca1c451f642da45799 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 00:51:16 +0000 Subject: [PATCH 07/48] fix(deps): bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/check.yml | 2 +- .github/workflows/periodic_check.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 12da61d..3d9ccf2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,7 +24,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Test action with Python ${{ inputs.python-version }} diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index c2bcc8a..64d3aed 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -15,7 +15,7 @@ jobs: matrix-json: ${{ steps.matrix.outputs.matrix }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Update pip @@ -38,7 +38,7 @@ jobs: matrix: ${{ fromJSON(needs.create_matrix.outputs.matrix-json) }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0b71e0..7480ff9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: matrix-json: ${{ steps.matrix.outputs.matrix }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Update pip @@ -43,7 +43,7 @@ jobs: matrix: ${{ fromJSON(needs.create_matrix.outputs.matrix-json) }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} From de00e6d9aec5cb2552f39928496cd0cbbb8f2b22 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 00:52:47 +0000 Subject: [PATCH 08/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 2.0.0 to 3.0.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/fa6aa49b741ec1b3d0cc31c20c5cc0ce1e49f9a1...a78a0734a89b8bfdefa35d5da8a9de8abee8f216) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 614f65f..36c7dfd 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@fa6aa49b741ec1b3d0cc31c20c5cc0ce1e49f9a1 + - uses: MatteoH2O1999/build-and-install-python@a78a0734a89b8bfdefa35d5da8a9de8abee8f216 id: build with: python-version: ${{ inputs.python-version }} From de42482b706da16e671acec80f8424d0aff77fe5 Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Tue, 12 Sep 2023 05:30:27 +0200 Subject: [PATCH 09/48] Update action limitations --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1ddb428..107a99a 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,9 @@ On the positive side, every version of Python 2.7 has a binary installer so it s This action at the moment does not support: -- installing multiple Python versions; -- building PyPy from source; +- installing multiple Python versions +- building PyPy from source - building from source in UNIX systems for a different architecture -- building shared libraries for UNIX systems This actions tries to but does not guarantee to work on any arbitrary pair (`python-version`, `architecture`). From af3d5cedf7dbb813676b9454390fe07e0a4fd2d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 03:40:11 +0000 Subject: [PATCH 10/48] fix(deps): bump MatteoH2O1999/setup-python from 1 to 2 Bumps [MatteoH2O1999/setup-python](https://github.com/matteoh2o1999/setup-python) from 1 to 2. - [Release notes](https://github.com/matteoh2o1999/setup-python/releases) - [Commits](https://github.com/matteoh2o1999/setup-python/compare/v1...v2) --- updated-dependencies: - dependency-name: MatteoH2O1999/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/periodic_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index 64d3aed..4eb12ed 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -42,7 +42,7 @@ jobs: with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v1 + uses: MatteoH2O1999/setup-python@v2 with: python-version: ${{ matrix.python-version }} allow-build: info From fec5bc76a83f0a172a1d1f23c635f732e9199eb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:24:07 +0000 Subject: [PATCH 11/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/a78a0734a89b8bfdefa35d5da8a9de8abee8f216...b1ae3e7370ed4edf7173a598ff5ad2129511021b) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 36c7dfd..ada57b5 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@a78a0734a89b8bfdefa35d5da8a9de8abee8f216 + - uses: MatteoH2O1999/build-and-install-python@b1ae3e7370ed4edf7173a598ff5ad2129511021b id: build with: python-version: ${{ inputs.python-version }} From 17dbc43cc1fa803b6f74407b96353f81eb0fe593 Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Wed, 20 Sep 2023 22:31:45 +0200 Subject: [PATCH 12/48] Update version used in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 107a99a..053f048 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v1 +- uses: MatteoH2O1999/setup-python@v2 with: python-version: '3.6' cache: pip @@ -39,7 +39,7 @@ In general you could replace the original action with this one and it should alr But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v1 +- uses: MatteoH2O1999/setup-python@v2 with: python-version: '3.6' allow-build: info From 91bd4f959dbee51bf737b893de8707a08e4c775a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:37:59 +0000 Subject: [PATCH 13/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/b1ae3e7370ed4edf7173a598ff5ad2129511021b...bbdf8246275d42feb7936c6bc8c0d99df116eb47) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ada57b5..e9aa7cf 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@b1ae3e7370ed4edf7173a598ff5ad2129511021b + - uses: MatteoH2O1999/build-and-install-python@bbdf8246275d42feb7936c6bc8c0d99df116eb47 id: build with: python-version: ${{ inputs.python-version }} From e1ca9b4629cdfee3b888a51d164fd1e7350917da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:55:45 +0000 Subject: [PATCH 14/48] fix(deps): bump actions/setup-python from 4.7.0 to 4.7.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.0 to 4.7.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/61a6322f88396a6271a6ee3565807d608ecaddd1...65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e9aa7cf..db426fb 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 + - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 79db77dd286296d3c6a90ce8eb5e977d605859a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 00:30:13 +0000 Subject: [PATCH 15/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 3.0.2 to 3.0.3. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/bbdf8246275d42feb7936c6bc8c0d99df116eb47...a6d24a3d358b6334118d12bc92dca1ac1dbcc445) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index db426fb..f0dba97 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@bbdf8246275d42feb7936c6bc8c0d99df116eb47 + - uses: MatteoH2O1999/build-and-install-python@a6d24a3d358b6334118d12bc92dca1ac1dbcc445 id: build with: python-version: ${{ inputs.python-version }} From 579ec2abefcdfb3425b9586b2cf9005d8852ff28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:41:39 +0000 Subject: [PATCH 16/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 3.0.3 to 3.0.4. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/a6d24a3d358b6334118d12bc92dca1ac1dbcc445...ea5ba1f69f1aaacccf79e5a057841fef4f1d577a) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f0dba97..0d4bf8d 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@a6d24a3d358b6334118d12bc92dca1ac1dbcc445 + - uses: MatteoH2O1999/build-and-install-python@ea5ba1f69f1aaacccf79e5a057841fef4f1d577a id: build with: python-version: ${{ inputs.python-version }} From 243e40316185d8514d2b04ff0dff519693fc8b54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 00:19:21 +0000 Subject: [PATCH 17/48] fix(deps): bump actions/publish-action from 0.2.2 to 0.3.0 Bumps [actions/publish-action](https://github.com/actions/publish-action) from 0.2.2 to 0.3.0. - [Commits](https://github.com/actions/publish-action/compare/v0.2.2...v0.3.0) --- updated-dependencies: - dependency-name: actions/publish-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16565fc..079ed4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,6 @@ jobs: name: Update version tags steps: - name: Update tags - uses: actions/publish-action@v0.2.2 + uses: actions/publish-action@v0.3.0 with: source-tag: ${{ github.event.release.tag_name }} \ No newline at end of file From 6cf4fa0d38abf6c2c132b9492ca851e794302bfb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:54:33 +0000 Subject: [PATCH 18/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 3.0.4 to 4.0.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/ea5ba1f69f1aaacccf79e5a057841fef4f1d577a...154f5b627566871af67b336972c50be18bf9883a) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0d4bf8d..e81e245 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@ea5ba1f69f1aaacccf79e5a057841fef4f1d577a + - uses: MatteoH2O1999/build-and-install-python@154f5b627566871af67b336972c50be18bf9883a id: build with: python-version: ${{ inputs.python-version }} From 211af38fbc758593f4712f233f9b52ea8fe9c7db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:10:56 +0000 Subject: [PATCH 19/48] fix(deps): bump actions/setup-python from 4.7.1 to 5.0.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.1 to 5.0.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236...0a5c61591373683505ea898e09a3ea4f39ef2b9c) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e81e245..9de1bed 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 26ce6f6ea88faa2768271bb17a3069b731d4e48a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:36:49 +0000 Subject: [PATCH 20/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/154f5b627566871af67b336972c50be18bf9883a...768952272fbb9041a0f308d4721efb3ace09c1f9) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9de1bed..a76634a 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@154f5b627566871af67b336972c50be18bf9883a + - uses: MatteoH2O1999/build-and-install-python@768952272fbb9041a0f308d4721efb3ace09c1f9 id: build with: python-version: ${{ inputs.python-version }} From d407302caab184234ebaea4a265280967208f4b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 21:40:45 +0000 Subject: [PATCH 21/48] fix(deps): bump MatteoH2O1999/setup-python from 2 to 3 Bumps [MatteoH2O1999/setup-python](https://github.com/matteoh2o1999/setup-python) from 2 to 3. - [Release notes](https://github.com/matteoh2o1999/setup-python/releases) - [Commits](https://github.com/matteoh2o1999/setup-python/compare/v2...v3) --- updated-dependencies: - dependency-name: MatteoH2O1999/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/periodic_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index 4eb12ed..efb886e 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -42,7 +42,7 @@ jobs: with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v2 + uses: MatteoH2O1999/setup-python@v3 with: python-version: ${{ matrix.python-version }} allow-build: info From b2cc42c6a95df55e1c70deab1dba7994ab426dcd Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:59:34 +0100 Subject: [PATCH 22/48] Update README suggested version and inputs --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 053f048..5cad624 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,15 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v2 +- uses: MatteoH2O1999/setup-python@v3 with: python-version: '3.6' - cache: pip ``` But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v2 +- uses: MatteoH2O1999/setup-python@v3 with: python-version: '3.6' allow-build: info From 85f5198f96a28cc1d15310b4e19c5826c20a453d Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Tue, 23 Jan 2024 22:13:41 +0100 Subject: [PATCH 23/48] Update README with FAQ --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 5cad624..59402ca 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ This action wraps around [actions/setup-python](https://github.com/actions/setup - [Inputs](#inputs) - [allow-build input](#allow-build-input) - [Outputs](#outputs) + - [FAQ](#faq) - [Contributing](#contributing) ## Basic usage @@ -156,6 +157,14 @@ This action will emit the following outputs: |cache-hit|A boolean value to indicate a cache entry was found (for pip, pipenv and poetry).| |python-path|The absolute path to the Python or PyPy executable.| +## FAQ + +#### No file in (...) matched to [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository + +This is a byproduct of [actions/setup-python](https://github.com/actions/setup-python). +If you wish to cache your pip dependencies, you need to have anywhere in your repository a `requirements.txt` or a `pyproject.toml` file. +The solution in this case is either creating a blank `requirements.txt` file or stop caching pip (in order to do so simply remove `cache: pip` from your `.yml` file). + ## Contributing This action is pretty much only a wrapper for a javascript action. From 829f12c26160a80943a9bbd64c88332267f002d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Mar 2024 21:51:58 +0000 Subject: [PATCH 24/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 4.0.1 to 4.1.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/768952272fbb9041a0f308d4721efb3ace09c1f9...ec33fa01bae5abf04d51e485ec7dee869f50054c) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a76634a..c21738f 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@768952272fbb9041a0f308d4721efb3ace09c1f9 + - uses: MatteoH2O1999/build-and-install-python@ec33fa01bae5abf04d51e485ec7dee869f50054c id: build with: python-version: ${{ inputs.python-version }} From f6cb1e1357816c085c87e6cc1c205b3b8a6c4a0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 00:33:42 +0000 Subject: [PATCH 25/48] fix(deps): bump actions/setup-python from 5.0.0 to 5.1.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.0.0 to 5.1.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/0a5c61591373683505ea898e09a3ea4f39ef2b9c...82c7e631bb3cdc910f68e0081d67478d79c6982d) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c21738f..6ef9c6d 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 429b7dee8a48c31eb72ce0b420ea938ff51c2f11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Apr 2024 01:45:57 +0000 Subject: [PATCH 26/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/ec33fa01bae5abf04d51e485ec7dee869f50054c...495a82dacb60fc49d7764e08360f5d253ad40ee1) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6ef9c6d..1b44976 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@ec33fa01bae5abf04d51e485ec7dee869f50054c + - uses: MatteoH2O1999/build-and-install-python@495a82dacb60fc49d7764e08360f5d253ad40ee1 id: build with: python-version: ${{ inputs.python-version }} From a7b8143b2f3c7d277d813af185b2bb853602bad9 Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Tue, 21 May 2024 01:23:28 +0200 Subject: [PATCH 27/48] Drop support for CPython < 3.7 and change guarantees --- .github/scripts/create_python_matrix.py | 5 ++- README.md | 41 ++++++------------------- 2 files changed, 13 insertions(+), 33 deletions(-) diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index f766882..69c399e 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -18,7 +18,10 @@ short_tag = tag.name.replace('v', '') while short_tag.count('.') > 1: short_tag = short_tag[:-1] - if float(short_tag) >= 2.7 and short_tag not in json_dict['python-version']: + splits = short_tag.split('.') + major = int(splits[0]) + minor = int(splits[1]) + if major == 3 and minor >= 7 and short_tag not in json_dict['python-version']: json_dict['python-version'].append(short_tag) with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: diff --git a/README.md b/README.md index 59402ca..ad09211 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,6 @@ This action wraps around [actions/setup-python](https://github.com/actions/setup - [Table of contents](#table-of-contents) - [Basic usage](#basic-usage) - [Motivation](#motivation) - - [But why? It's deprecated: just use a more recent version](#but-why-its-deprecated-just-use-a-more-recent-version) - - [But why a dedicated action? Just use `ubuntu-20.04` for that 1 job](#but-why-a-dedicated-action-just-use-ubuntu-2004-for-that-1-job) - [Guarantees](#guarantees) - [Known limits](#known-limits) - [Performance](#performance) @@ -23,6 +21,7 @@ This action wraps around [actions/setup-python](https://github.com/actions/setup - [allow-build input](#allow-build-input) - [Outputs](#outputs) - [FAQ](#faq) + - [No file in (...) matched to \[\*\*/requirements.txt or \*\*/pyproject.toml\], make sure you have checked out the target repository](#no-file-in--matched-to-requirementstxt-or-pyprojecttoml-make-sure-you-have-checked-out-the-target-repository) - [Contributing](#contributing) ## Basic usage @@ -33,7 +32,7 @@ In general you could replace the original action with this one and it should alr ```yaml - uses: MatteoH2O1999/setup-python@v3 with: - python-version: '3.6' + python-version: '3.8' ``` But if you wish for a more optimized experience you could use inputs exclusive to this action: @@ -41,7 +40,7 @@ But if you wish for a more optimized experience you could use inputs exclusive t ```yaml - uses: MatteoH2O1999/setup-python@v3 with: - python-version: '3.6' + python-version: '3.8' allow-build: info cache-build: true cache: pip @@ -49,38 +48,16 @@ But if you wish for a more optimized experience you could use inputs exclusive t ## Motivation -Since the replacement of `ubuntu-20.04` with `ubuntu-22.04` runner images [actions/setup-python](https://github.com/actions/setup-python) no longer supports `Python 3.6` for the `ubuntu-latest` label. -This broke a large number of pipelines as Python 3.6 is still widely used. +While initially this action was meant to guarantee a successful build of all CPython versions `2.7`, it has now become too complex to maintain it. -This made apparent that a way to support deprecated versions was needed. - -### But why? It's deprecated: just use a more recent version - -Yes, in a perfect world that would be the go to solution. -Unfortunately, we do not live in that world, so we can't always choose our dependencies. -In fact, I would be willing to bet that most deprecated dependencies are there despite the developers, not because of them. -That is why this action came about: to offer an easier way to continue supporting deprecated builds even if github does not anymore. - -### But why a dedicated action? Just use `ubuntu-20.04` for that 1 job - -Once again, that is possible, but that is - -1. not good practice as editing the main job matrix will not edit the "special" one; -2. a pain to maintain as each new deprecated version needs another job to be created. +The new objective of this action is to provide a buffer when something gets yanked out by Github, as this will guarantee that if the pair `(label, version)` works, it will keep working. +Older versions may still work, but no effort will be spent in ensuring so. ## Guarantees -The objective of this action is to guarantee that for every major Python version starting from `2.7` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. - -TLDR: If you use the major version specification (`3.6` instead of `3.6.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. - -### Exceptions +The objective of this action is to guarantee that for every major Python version starting from `3.7` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. -Python versions < 3.5 are too difficult to build from source on Windows. -For these versions the action tries to use the official installer from [python.org](https://www.python.org/ftp/python). -If this fails, the action fails with an appropriate error message. -In this case you should request a version for which [python.org](https://www.python.org/ftp/python) offers a binary installer, and not just the source code. -On the positive side, every version of Python 2.7 has a binary installer so it shouldn't be a problem. +TLDR: If you use the major version specification (`3.7` instead of `3.7.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. ## Known limits @@ -159,7 +136,7 @@ This action will emit the following outputs: ## FAQ -#### No file in (...) matched to [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository +### No file in (...) matched to [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository This is a byproduct of [actions/setup-python](https://github.com/actions/setup-python). If you wish to cache your pip dependencies, you need to have anywhere in your repository a `requirements.txt` or a `pyproject.toml` file. From f8bc62e188b48f59872b6b56613c3286ecc2e443 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 03:39:12 +0000 Subject: [PATCH 28/48] --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1b44976..7c63f13 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@495a82dacb60fc49d7764e08360f5d253ad40ee1 + - uses: MatteoH2O1999/build-and-install-python@290b02cc83b4f34611620ea4b735ec1dd27fdfda id: build with: python-version: ${{ inputs.python-version }} From d7aee1e43dffa63c46daff1cf30280ff9feaf6b1 Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Tue, 21 May 2024 20:38:56 +0200 Subject: [PATCH 29/48] Update action version in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad09211..22c70a0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v3 +- uses: MatteoH2O1999/setup-python@v4 with: python-version: '3.8' ``` @@ -38,7 +38,7 @@ In general you could replace the original action with this one and it should alr But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v3 +- uses: MatteoH2O1999/setup-python@v4 with: python-version: '3.8' allow-build: info From bb6bc93118aadc7c130aebe9194f9b77f8d4b11d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 19:08:42 +0000 Subject: [PATCH 30/48] --- updated-dependencies: - dependency-name: MatteoH2O1999/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/periodic_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index efb886e..959ee2b 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -42,7 +42,7 @@ jobs: with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v3 + uses: MatteoH2O1999/setup-python@v4 with: python-version: ${{ matrix.python-version }} allow-build: info From fb4407747a623783d78ad4b1f57dbdf21b8d6ecd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 00:17:12 +0000 Subject: [PATCH 31/48] fix(deps): bump actions/setup-python from 5.1.0 to 5.1.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/82c7e631bb3cdc910f68e0081d67478d79c6982d...39cd14951b08e74b54015e9e001cdefcf80e669f) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7c63f13..3c2d525 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d + - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 2d998beee56acc0d62844c174bac9a53e6a6c170 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:51:16 +0000 Subject: [PATCH 32/48] fix(deps): bump actions/setup-python from 5.1.1 to 5.2.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.1.1 to 5.2.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/39cd14951b08e74b54015e9e001cdefcf80e669f...f677139bbe7f9c59b41e40162b753c062f5d49a3) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3c2d525..94958ec 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f + - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 id: setup with: python-version: ${{ steps.build.outputs.python-version }} From beeeb24b46b56bd2575582dd52406062a79d4560 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 01:03:25 +0000 Subject: [PATCH 33/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 5.0.0 to 5.1.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/290b02cc83b4f34611620ea4b735ec1dd27fdfda...8310656a9858e110ecead71af1be1cf00d92cc6d) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 94958ec..e152c9e 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@290b02cc83b4f34611620ea4b735ec1dd27fdfda + - uses: MatteoH2O1999/build-and-install-python@8310656a9858e110ecead71af1be1cf00d92cc6d id: build with: python-version: ${{ inputs.python-version }} From ca074e4eaaaf9f4e5ac2db92e45cb7821f2fa266 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:58:55 +0000 Subject: [PATCH 34/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/8310656a9858e110ecead71af1be1cf00d92cc6d...6761ab2a979648b4704649564f4f201977aa9a78) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e152c9e..e696918 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@8310656a9858e110ecead71af1be1cf00d92cc6d + - uses: MatteoH2O1999/build-and-install-python@6761ab2a979648b4704649564f4f201977aa9a78 id: build with: python-version: ${{ inputs.python-version }} From 102e4974bb109e950c74bef7ba74dc96a3b199c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:58:53 +0000 Subject: [PATCH 35/48] fix(deps): bump actions/setup-python from 5.2.0 to 5.3.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/f677139bbe7f9c59b41e40162b753c062f5d49a3...0b93645e9fea7318ecaed2b359559ac225c90a2b) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e696918..2901d4c 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 + - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b id: setup with: python-version: ${{ steps.build.outputs.python-version }} From a5fbd4bc7a8ac7e3d4b9add7a18876656a45dc9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:43:07 +0000 Subject: [PATCH 36/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 5.1.1 to 5.2.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/6761ab2a979648b4704649564f4f201977aa9a78...5197587c27a5b4f476cd319117f0eeaf9208f9eb) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2901d4c..8afdf57 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@6761ab2a979648b4704649564f4f201977aa9a78 + - uses: MatteoH2O1999/build-and-install-python@5197587c27a5b4f476cd319117f0eeaf9208f9eb id: build with: python-version: ${{ inputs.python-version }} From 523ec529cfa48ab9e59f27afd61018be5d41784c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:20:45 +0000 Subject: [PATCH 37/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 5.2.0 to 6.0.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/5197587c27a5b4f476cd319117f0eeaf9208f9eb...432ca4fdfe0cfc97b0b56cb49f057ff53d3ef63a) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8afdf57..0067864 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@5197587c27a5b4f476cd319117f0eeaf9208f9eb + - uses: MatteoH2O1999/build-and-install-python@432ca4fdfe0cfc97b0b56cb49f057ff53d3ef63a id: build with: python-version: ${{ inputs.python-version }} From 26edde7d0c19dc29f485f27f33d77e0c3c5daf5d Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Wed, 11 Dec 2024 20:41:35 +0100 Subject: [PATCH 38/48] Drop support for Python < 3.8 --- .github/scripts/create_python_matrix.py | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index 69c399e..946a1c9 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -21,7 +21,7 @@ splits = short_tag.split('.') major = int(splits[0]) minor = int(splits[1]) - if major == 3 and minor >= 7 and short_tag not in json_dict['python-version']: + if major == 3 and minor >= 8 and short_tag not in json_dict['python-version']: json_dict['python-version'].append(short_tag) with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: diff --git a/README.md b/README.md index 22c70a0..5391bd4 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v4 +- uses: MatteoH2O1999/setup-python@v5 with: python-version: '3.8' ``` @@ -38,7 +38,7 @@ In general you could replace the original action with this one and it should alr But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v4 +- uses: MatteoH2O1999/setup-python@v5 with: python-version: '3.8' allow-build: info @@ -55,9 +55,9 @@ Older versions may still work, but no effort will be spent in ensuring so. ## Guarantees -The objective of this action is to guarantee that for every major Python version starting from `3.7` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. +The objective of this action is to guarantee that for every major Python version starting from `3.8` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. -TLDR: If you use the major version specification (`3.7` instead of `3.7.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. +TLDR: If you use the major version specification (`3.8` instead of `3.8.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. ## Known limits From 30d2e233a5a425336375102063211db3317e2bb1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:50:10 +0000 Subject: [PATCH 39/48] fix(deps): bump MatteoH2O1999/setup-python from 4 to 5 Bumps [MatteoH2O1999/setup-python](https://github.com/matteoh2o1999/setup-python) from 4 to 5. - [Release notes](https://github.com/matteoh2o1999/setup-python/releases) - [Commits](https://github.com/matteoh2o1999/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: MatteoH2O1999/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/periodic_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index 959ee2b..c1ffc00 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -42,7 +42,7 @@ jobs: with: submodules: recursive - name: Setup Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v4 + uses: MatteoH2O1999/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-build: info From 5405dcff6b2b30d9d9fc306ef87cc1ce06a19a31 Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Thu, 16 Jan 2025 18:12:15 +0100 Subject: [PATCH 40/48] Action audit --- .github/workflows/check.yml | 12 ++++++------ .github/workflows/periodic_check.yml | 7 ++++--- .github/workflows/release.yml | 4 +++- .github/workflows/test.yml | 6 ++++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3d9ccf2..3d95411 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,11 +8,10 @@ on: description: Specific version to check type: string allow-prereleases: - required: true - default: false - description: Include prereleases in the check - type: boolean - + required: true + default: false + description: Include prereleases in the check + type: boolean jobs: test_python_build: @@ -26,6 +25,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Test action with Python ${{ inputs.python-version }} id: build @@ -35,4 +35,4 @@ jobs: allow-build: info allow-prereleases: ${{ inputs.allow-prereleases }} - name: Check Python version - run: python ./.github/scripts/check_python_version.py ${{ inputs.python-version }} \ No newline at end of file + run: python ./.github/scripts/check_python_version.py ${{ inputs.python-version }} diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index c1ffc00..896cc27 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -4,7 +4,6 @@ on: schedule: - cron: 0 0 * * * workflow_dispatch: - jobs: # Create strategy matrix with a python script @@ -17,6 +16,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Update pip run: python -m pip install --upgrade pip @@ -27,7 +27,7 @@ jobs: - name: Create matrix id: matrix run: python ./.github/scripts/create_python_matrix.py true - + # Test the action with all possible combinations of python versions and os test_action: needs: create_matrix @@ -40,6 +40,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Setup Python ${{ matrix.python-version }} uses: MatteoH2O1999/setup-python@v5 @@ -48,4 +49,4 @@ jobs: allow-build: info cache-build: ${{ matrix.cache }} - name: Check Python version - run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }} \ No newline at end of file + run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 079ed4b..b5be4a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,10 @@ jobs: update_tags: runs-on: ubuntu-latest name: Update version tags + permissions: + contents: write steps: - name: Update tags uses: actions/publish-action@v0.3.0 with: - source-tag: ${{ github.event.release.tag_name }} \ No newline at end of file + source-tag: ${{ github.event.release.tag_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7480ff9..f299b58 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Update pip run: python -m pip install --upgrade pip @@ -32,7 +33,7 @@ jobs: - name: Create matrix id: matrix run: python ./.github/scripts/create_python_matrix.py false - + # Test the action with all possible combinations of python versions and os test_action: needs: create_matrix @@ -45,6 +46,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Setup Python ${{ matrix.python-version }} uses: ./ @@ -52,4 +54,4 @@ jobs: python-version: ${{ matrix.python-version }} allow-build: info - name: Check Python version - run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }} \ No newline at end of file + run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }} From 46f31c8bf274aea1cf49a50976449be88fb3e050 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 01:02:09 +0000 Subject: [PATCH 41/48] fix(deps): bump actions/setup-python from 5.3.0 to 5.4.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.3.0 to 5.4.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/0b93645e9fea7318ecaed2b359559ac225c90a2b...42375524e23c412d93fb67b49958b491fce71c38) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0067864..9887e7d 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 7ec1a293e2ca0708258be69b0e87adea76423b8f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 10:56:54 +0000 Subject: [PATCH 42/48] fix(deps): bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/check.yml | 2 +- .github/workflows/periodic_check.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3d95411..0b2a7b4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -23,7 +23,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: persist-credentials: false submodules: recursive diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index 896cc27..e197f0f 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -14,7 +14,7 @@ jobs: matrix-json: ${{ steps.matrix.outputs.matrix }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: persist-credentials: false submodules: recursive @@ -38,7 +38,7 @@ jobs: matrix: ${{ fromJSON(needs.create_matrix.outputs.matrix-json) }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: persist-credentials: false submodules: recursive diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f299b58..54950f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: matrix-json: ${{ steps.matrix.outputs.matrix }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: persist-credentials: false submodules: recursive @@ -44,7 +44,7 @@ jobs: matrix: ${{ fromJSON(needs.create_matrix.outputs.matrix-json) }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: persist-credentials: false submodules: recursive From 2b21253f1edb08a56c5f42b13961b9729a09972a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 00:30:11 +0000 Subject: [PATCH 43/48] fix(deps): bump actions/setup-python from 5.4.0 to 5.6.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.4.0 to 5.6.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/42375524e23c412d93fb67b49958b491fce71c38...a26af69be951a213d495a4c3e4e4022e16d87065) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9887e7d..09a7e71 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} - - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 id: setup with: python-version: ${{ steps.build.outputs.python-version }} From 24d9e1309af790003583a02be152fcab721bfc8a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 23 Aug 2025 03:10:50 +0000 Subject: [PATCH 44/48] fix(deps): bump MatteoH2O1999/build-and-install-python Bumps [MatteoH2O1999/build-and-install-python](https://github.com/matteoh2o1999/build-and-install-python) from 6.0.0 to 7.0.0. - [Release notes](https://github.com/matteoh2o1999/build-and-install-python/releases) - [Commits](https://github.com/matteoh2o1999/build-and-install-python/compare/432ca4fdfe0cfc97b0b56cb49f057ff53d3ef63a...a6b9b8e2b6b4f57808cb6b7707b160744354860a) --- updated-dependencies: - dependency-name: MatteoH2O1999/build-and-install-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 09a7e71..4b3dc23 100644 --- a/action.yml +++ b/action.yml @@ -49,7 +49,7 @@ outputs: runs: using: composite steps: - - uses: MatteoH2O1999/build-and-install-python@432ca4fdfe0cfc97b0b56cb49f057ff53d3ef63a + - uses: MatteoH2O1999/build-and-install-python@a6b9b8e2b6b4f57808cb6b7707b160744354860a id: build with: python-version: ${{ inputs.python-version }} From 7541c50b5eed9bb934ee4a22816402890fbd80c1 Mon Sep 17 00:00:00 2001 From: Matteo Dell'Acqua <82184604+MatteoH2O1999@users.noreply.github.com> Date: Sat, 23 Aug 2025 16:23:06 +0200 Subject: [PATCH 45/48] Add freethreaded input --- .github/scripts/check_python_version.py | 14 ++++++++++++-- .github/scripts/create_python_matrix.py | 2 ++ README.md | 5 +++-- action.yml | 5 +++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/scripts/check_python_version.py b/.github/scripts/check_python_version.py index 9fbb8e1..24a76fd 100644 --- a/.github/scripts/check_python_version.py +++ b/.github/scripts/check_python_version.py @@ -1,6 +1,6 @@ import sys -def check_version(version): +def check_version(version, freethreaded): split_version = version.split('.') if int(split_version[0]) != sys.version_info[0]: return False @@ -8,11 +8,21 @@ def check_version(version): return False if split_version[2] != 'x' and int(split_version[2].split('-')[0]) != sys.version_info[2]: return False + if freethreaded: + try: + if sys._is_gil_enabled(): + return False + except: + return False return True if __name__ == '__main__': version = sys.argv[1] + freethreaded = False + if version.endswith("t"): + freethreaded = True + version = version[:-1] while version.count('.') < 2: version += '.x' - if not check_version(version): + if not check_version(version, freethreaded): raise ValueError('Expected python version to be ' + str(version) + ', got ' + str(sys.version_info.major) + '.' + str(sys.version_info.minor) + '.' + str(sys.version_info.micro) + '.') \ No newline at end of file diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index 946a1c9..e8eee1d 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -23,6 +23,8 @@ minor = int(splits[1]) if major == 3 and minor >= 8 and short_tag not in json_dict['python-version']: json_dict['python-version'].append(short_tag) + if minor >= 13: + json_dict['python-version'].append(f"{short_tag}t") with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: print(f'matrix={json.dumps(json_dict)}', file=fh) \ No newline at end of file diff --git a/README.md b/README.md index 5391bd4..29b3941 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v5 +- uses: MatteoH2O1999/setup-python@v6 with: python-version: '3.8' ``` @@ -38,7 +38,7 @@ In general you could replace the original action with this one and it should alr But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v5 +- uses: MatteoH2O1999/setup-python@v6 with: python-version: '3.8' allow-build: info @@ -111,6 +111,7 @@ This action supports the following inputs (in bold are the names of the exclusiv |token|The token used to authenticate when fetching Python distributions from [actions/python-versions](https://github.com/actions/python-versions). When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.|example: `TokenString`|`github.token`| |cache-dependency-path|Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies.|example: `path/to/dependency/files`|`''`| |update-environment|Set this option if you want the action to update environment variables.|`true`, `false`|`true`| +|freethreaded| When 'true', use the freethreaded version of Python.|`true`, `false`|`false`| |**cache-build**|Whether to cache the built Python distribution to speed up successive runs.|`true`, `false`|`false`| |**allow-build**|Set the behavior of the action when [actions/setup-python](https://github.com/actions/setup-python) fails and has to be built from source.|`allow`, `info`, `warn`, `error`, `force`|`warn`| diff --git a/action.yml b/action.yml index 4b3dc23..d511558 100644 --- a/action.yml +++ b/action.yml @@ -36,6 +36,9 @@ inputs: allow-prereleases: description: "When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython." default: false + freethreaded: + description: "When 'true', use the freethreaded version of Python." + default: false outputs: python-version: description: "The installed Python or PyPy version. Useful when given a version range as input." @@ -60,6 +63,7 @@ runs: allow-build: ${{ inputs.allow-build }} token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} + freethreaded: ${{ inputs.freethreaded }} - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 id: setup with: @@ -70,6 +74,7 @@ runs: token: ${{ inputs.token }} cache-dependency-path: ${{ inputs.cache-dependency-path }} update-environment: ${{ inputs.update-environment }} + freethreaded: ${{ steps.build.outputs.freethreaded }} - run: ${{ github.action_path }}/setup_pip.ps1 shell: pwsh env: From 01e76a9576ea04ffcec8f51e3451bc4db1224607 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 00:12:53 +0000 Subject: [PATCH 46/48] fix(deps): bump MatteoH2O1999/setup-python from 5 to 6 Bumps [MatteoH2O1999/setup-python](https://github.com/matteoh2o1999/setup-python) from 5 to 6. - [Release notes](https://github.com/matteoh2o1999/setup-python/releases) - [Commits](https://github.com/matteoh2o1999/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: MatteoH2O1999/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/periodic_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic_check.yml b/.github/workflows/periodic_check.yml index e197f0f..6253b48 100644 --- a/.github/workflows/periodic_check.yml +++ b/.github/workflows/periodic_check.yml @@ -43,7 +43,7 @@ jobs: persist-credentials: false submodules: recursive - name: Setup Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v5 + uses: MatteoH2O1999/setup-python@v6 with: python-version: ${{ matrix.python-version }} allow-build: info From 5576e3f8c59012024611a5523267d97149ebb71f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 00:06:31 +0000 Subject: [PATCH 47/48] fix(deps): bump actions/setup-python from 5.6.0 to 6.0.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.6.0 to 6.0.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/a26af69be951a213d495a4c3e4e4022e16d87065...e797f83bcb11b83ae66e0230d6156d7c80228e7c) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d511558..a4388ea 100644 --- a/action.yml +++ b/action.yml @@ -64,7 +64,7 @@ runs: token: ${{ inputs.token }} allow-prereleases: ${{ inputs.allow-prereleases }} freethreaded: ${{ inputs.freethreaded }} - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 + - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c id: setup with: python-version: ${{ steps.build.outputs.python-version }} From ce9bc5e985d3b6bc9d8a1ac845b15d4f0f1df011 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 08:20:19 +0000 Subject: [PATCH 48/48] fix(deps): bump actions/publish-action from 0.3.0 to 0.4.0 Bumps [actions/publish-action](https://github.com/actions/publish-action) from 0.3.0 to 0.4.0. - [Commits](https://github.com/actions/publish-action/compare/v0.3.0...v0.4.0) --- updated-dependencies: - dependency-name: actions/publish-action dependency-version: 0.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5be4a0..32f1602 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,6 @@ jobs: contents: write steps: - name: Update tags - uses: actions/publish-action@v0.3.0 + uses: actions/publish-action@v0.4.0 with: source-tag: ${{ github.event.release.tag_name }}