Commit Graph

11 Commits

Author SHA1 Message Date
Aramís Segovia
36da51d563 Add version parsing from Pipfile (#1067)
Some checks failed
Validate GraalPy e2e / Setup GraalPy graalpy-24.1 ubuntu-24.04-arm (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-24.1 ubuntu-latest (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 macos-13 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 macos-13 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 macos-13 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.1 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 macos-13 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy24.1 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / check-latest (macos-13) (push) Has been cancelled
Validate GraalPy e2e / check-latest (macos-latest) (push) Has been cancelled
Validate GraalPy e2e / check-latest (ubuntu-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Has been cancelled
* feature: add version parsing from Pipfile

* Update utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: update dist/setup/index.js

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-24 17:40:39 -05:00
Kryštof Korb
5db1cf9a59 Enhance reading from .python-version (#787)
Some checks failed
Validate PyPy e2e / Check non-eol pypy-3.11 on windows-2025 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.11 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.11 macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.11 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (windows-latest) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-22.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.11 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-24.04-arm (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.11 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / check-latest (macos-13) (push) Has been cancelled
Validate PyPy e2e / check-latest (macos-latest) (push) Has been cancelled
Validate PyPy e2e / check-latest (ubuntu-22.04-arm) (push) Has been cancelled
Validate PyPy e2e / check-latest (ubuntu-24.04-arm) (push) Has been cancelled
Validate PyPy e2e / check-latest (windows-latest) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (macos-13) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (macos-latest) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (ubuntu-22.04-arm) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (ubuntu-24.04-arm) (push) Has been cancelled
* Enhance reading from .python-version

* Fix typos

* Fix lint

* Add built files

* Don't use EOL versions in `utils.test.ts`

* Fix Prettier

* Don't use unreleased versions in `utils.test.ts`

* Update versions in `utils.test.ts` again
2025-05-21 16:19:28 -05:00
mahabaleshwars
19e4675e06 Add support for .tool-versions file in setup-python (#1043)
Some checks failed
Validate PyPy e2e / Check non-eol pypy-3.10 on macos-14 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on macos-15 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on macos-15 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on ubuntu-22.04-arm (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on ubuntu-22.04-arm (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on ubuntu-24.04 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on ubuntu-24.04 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on ubuntu-24.04-arm (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on ubuntu-24.04-arm (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on windows-2019 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on windows-2019 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on windows-2022 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on windows-2022 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-2.7 on windows-2025 (push) Has been cancelled
Validate PyPy e2e / Check non-eol pypy-3.10 on windows-2025 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 macos-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.10-nightly windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / check-latest (macos-13) (push) Has been cancelled
Validate PyPy e2e / check-latest (macos-latest) (push) Has been cancelled
Validate PyPy e2e / check-latest (windows-latest) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (macos-13) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (macos-latest) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (windows-latest) (push) Has been cancelled
* add support for .tool-versions file

* update regex

* optimize code

* update test-python.yml for .tool-versions

* fix format-check errors

* fix formatting in test-python.yml

* Fix test-python.yml error

* workflow update with latest versions

* update test cases

* fix lint issue
2025-03-13 10:21:27 -05:00
John Wesley Walker III
f4c5a1183d Revise isGhes logic (#963)
Some checks failed
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Failing after 16s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} standard pyproject file (ubuntu-22.04, ==3.12.3) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-20.04, 3.8.10) (push) Failing after 13s
Validate Python e2e / Setup 3.13.0-alpha.6 ${{ matrix.os }} (ubuntu-22.04) (push) Failing after 12s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-22.04, 3.10.11) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-22.04, 3.11.9) (push) Failing after 13s
Validate Python e2e / Setup 3.13.0-alpha.6 ${{ matrix.os }} (ubuntu-20.04) (push) Failing after 12s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-20.04, 3.9) (push) Failing after 12s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-22.04, 3.10) (push) Successful in 13s
Validate Python e2e / check-latest (ubuntu-latest, 3.8) (push) Failing after 16s
Validate Python e2e / check-latest (ubuntu-latest, 3.12) (push) Failing after 16s
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-20.04, 3.10.11) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-22.04, 3.12.3) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-22.04, 3.9.13) (push) Failing after 13s
Validate Python e2e / Setup 3.13-dev ${{ matrix.os }} (ubuntu-latest) (push) Successful in 13s
Validate Python e2e / Setup 3.13 ${{ matrix.os }} (ubuntu-latest) (push) Successful in 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-20.04, 3.11) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-20.04, 3.12) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-22.04, 3.9) (push) Successful in 13s
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-20.04, 3.11.9) (push) Failing after 12s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-20.04, 3.12.3) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file (ubuntu-20.04, 3.9.13) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-20.04, 3.10) (push) Failing after 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-22.04, 3.12) (push) Successful in 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-20.04, 3.8) (push) Failing after 12s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-22.04, 3.11) (push) Successful in 13s
Validate Python e2e / Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) (ubuntu-22.04, 3.8) (push) Successful in 13s
Validate Python e2e / check-latest (ubuntu-latest, 3.11) (push) Failing after 14s
* Revise `isGhes` logic

* ran `npm run format`

* add unit test

* ran `npm run format`
2024-10-21 11:42:17 -05:00
Priya Gupta
036a523674 Fix: Add .zip extension to Windows package downloads for Expand-Archive Compatibility (#916)
Some checks failed
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-2.7-v7.3.14) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10-v7.3.14) (push) Successful in 24s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10-v7.3.x) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy3.9) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy3.10-v7.3.15) (push) Successful in 25s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-latest, pypy2.7) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-latest, pypy3.9) (push) Successful in 12s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10-v7.3.15) (push) Successful in 24s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy3.10-v7.3.15) (push) Successful in 23s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-2.7-v7.3.14) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10-nightly) (push) Successful in 30s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10-v7.3.x) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10-v7.3.15) (push) Successful in 24s
Validate PyPy e2e / check-latest (ubuntu-latest) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10-nightly) (push) Successful in 30s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-2.7) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-2.7-v7.3.12rc1) (push) Successful in 23s
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Failing after 42s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy-3.10-v7.x) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-20.04, pypy3.9) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-2.7-v7.3.12rc1) (push) Successful in 20s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10-v7.x) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-20.04, pypy3.10-nightly) (push) Successful in 29s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-latest, pypy3.10-nightly) (push) Successful in 30s
Validate PyPy e2e / setup-pypy-multiple-versions (ubuntu-latest) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (ubuntu-latest, pypy-3.10-v7.3.14) (push) Successful in 23s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-20.04, pypy2.7) (push) Successful in 13s
Validate PyPy e2e / Setup PyPy ${{ matrix.pypy }} ${{ matrix.os }} (noenv) (ubuntu-20.04, pypy3.9) (push) Successful in 13s
* Fix: specify filename during Windows package download

* Changed unit test download urls
2024-08-05 12:23:34 -05:00
Tim Felgentreff
5f2af211d6 Add GraalPy support (#694)
* Add support for graalpy

* add graalpy test workflow

* format, lint and build

* symlink graalpy binaries names

* fix macos names for graalpy

* Don't attempt to update pip for graalpy

* Remove test schedule

* Extract common getBinaryDirectory function for PyPy and GraalPy

* Clean up and format

* Pass GitHub token to GraalPy queries

* Utilize pagination when querying GraalPy GitHub releases

* Build

* Fix lint errors

* Deal with possible multiple artifacts for a single releases

* Skip few GraalPy tests on windows - we don't have a windows release yet

* Fix GraalPy test on Mac OS

* Build

* Skip one more GraalPy test on windows

---------

Co-authored-by: Michael Simacek <michael.simacek@oracle.com>
2023-10-10 14:59:54 +02:00
Dmitry Shibanov
65d7f2d534 Add range validation for toml files (#726) 2023-09-07 15:45:09 +02:00
Dario Curreri
0d5da6a89a Read python version from pyproject.toml (fix #542) (#669) 2023-06-28 22:02:44 +02:00
Jongwoo Han
206e984b94 refactor: Use early return pattern to avoid nested conditions (#566)
* refactor: Use early return pattern

Signed-off-by: jongwooo <jongwooo.han@gmail.com>

* fix: Replace throw with warn

Signed-off-by: jongwooo <jongwooo.han@gmail.com>

Signed-off-by: jongwooo <jongwooo.han@gmail.com>
2022-12-19 14:00:46 +01:00
Shubham Tiwari
05fb98de9a Cache on ghes (#363)
* initial changes

* updated version

* format check

* refactored code

* updated test cases

* Update src/utils.ts

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

* Update utils.ts

* Update utils.test.ts

* review comments

* dist update

* Review comment

* update version

* updated version

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-03-31 15:11:27 -04:00
Dmitry Shibanov
8c5ea631b2 Adding support for more PyPy versions and installing them on-flight (#168)
* add support to install pypy

* resolved comments, update readme, add e2e tests.

* resolve throw error

* Add pypy unit tests to cover code

* add tests

* Update test-pypy.yml

* Update test-python.yml

* Update test-python.yml

* Update README.md

* fixing tests

* change order

Co-authored-by: Maxim Lobanov <v-malob@microsoft.com>

* add pypy tests and fix issue with pypy-3-nightly

Co-authored-by: Maxim Lobanov <v-malob@microsoft.com>
2020-12-17 16:03:54 +01:00