mahabaleshwars
d5a4d05a4b
optimize code
2025-03-06 16:36:53 +05:30
mahabaleshwars
e34c938f7b
Merge branch 'actions:main' into feature/tool-versions-file-support
2025-03-06 08:41:45 +05:30
Sam Gross
9e62be81b2
Support free threaded Python versions like '3.13t' ( #973 )
...
Validate Python e2e / Setup 3.11.9 ubuntu-20.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.12.3 ubuntu-20.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.13.0 ubuntu-20.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-20.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.10.11 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.11.9 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.12.3 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.13.0 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.10.11 ubuntu-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.11.9 ubuntu-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.12.3 ubuntu-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.13.0 ubuntu-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.10.11 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.11.9 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.12.3 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.13.0 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 macos-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 ubuntu-20.04 (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 ubuntu-22.04 (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 ubuntu-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14.0-alpha.1 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14-dev macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.14-dev macos-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14-dev ubuntu-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14-dev windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.14 macos-13 (push) Has been cancelled
* Support free threaded Python versions like '3.13t'
Python wheels, pyenv, and a number of other tools use 't' in the Python
version number to identify free threaded builds. For example, '3.13t',
'3.14.0a1', '3.14t-dev'.
This PR supports that syntax in `actions/setup-python`, strips the "t",
and adds "-freethreading" to the architecture to select the correct
Python version.
See #771
* Add free threading to advanced usage documentation
* Fix desugaring of `3.13.1t` and add test case.
* Add freethreaded input and fix handling of prerelease versions
* Fix lint
* Add 't' suffix to python-version output
* Use distinct cache key for free threaded Python
* Remove support for syntax like '3.14.0a1'
* Clarify use of 't' suffix
* Improve error message when trying to use free threaded Python versions before 3.13
2025-03-04 16:49:43 -06:00
mahabaleshwars
80c5969e70
update regex
2025-02-27 19:49:49 +05:30
mahabaleshwars
b79caba6bd
add support for .tool-versions file
2025-02-24 15:50:42 +05:30
Matthieu Darbois
8039c45ed9
fix: install PyPy on Linux ARM64 ( #1011 )
...
Validate Python e2e / Setup 3.9 ubuntu-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.10 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.11 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.12 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.13 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.9 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.9) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (macos-13) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (macos-latest) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (windows-latest) (push) Has been cancelled
* ci: check non-eol versions of PyPy are available on all runners
* fix: install PyPy on Linux ARM64
* ci: remove eol ubuntu-20.04
2025-02-05 13:58:38 -06:00
aparnajyothi-y
55aad42e46
Update error message for no dependencies to cache ( #968 )
Validate Python e2e / Setup 3.8 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.9 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (macos-13, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.11) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.12) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.13) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.9) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (macos-13) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (macos-latest) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (windows-latest) (push) Has been cancelled
2024-11-04 19:27:40 -06:00
John Wesley Walker III
f4c5a1183d
Revise isGhes
logic ( #963 )
...
Validate Python e2e / Setup 3.8 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 ubuntu-20.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.11 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 ubuntu-22.04 (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.10 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.11 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.12 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.8 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / Setup 3.9 windows-latest (noenv) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (macos-latest, 3.9) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.10) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.11) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.12) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.8) (push) Waiting to run
Validate Python e2e / check-latest (windows-latest, 3.9) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (macos-latest) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-latest) (push) Waiting to run
Validate Python e2e / setup-python-multiple-python-versions (windows-latest) (push) Waiting to run
* Revise `isGhes` logic
* ran `npm run format`
* add unit test
* ran `npm run format`
2024-10-21 11:42:17 -05:00
priya-kinthali
29a37be0a3
initial commit ( #938 )
2024-09-06 11:40:29 -05:00
Zxilly
80b49d3ed8
fix: add arch to cache key ( #896 )
...
* fix: add arch to cache key
* test: update tests accordingly
2024-08-07 15:12:32 -05:00
Priya Gupta
036a523674
Fix: Add .zip
extension to Windows package downloads for Expand-Archive
Compatibility ( #916 )
...
* Fix: specify filename during Windows package download
* Changed unit test download urls
2024-08-05 12:23:34 -05:00
Tobias
10aa35afd7
feat: fallback to raw endpoint for manifest when rate limit is reached ( #766 )
2024-03-26 08:56:00 -05:00
Dmitry Shibanov
0a5c615913
Update action to node20 ( #772 )
2023-12-05 14:52:09 +01:00
Jeff Widman
8635b1ccc5
Change deprecation comment to past tense ( #723 )
2023-10-16 11:19:29 +02:00
Jeff Widman
f6cc428f53
Use non-deprecated versions in examples ( #724 )
2023-10-16 11:01:43 +02: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
Ferran Parés
3467d92d48
Trim python version to get rid of '\n' ( #628 )
2023-10-06 12:34:33 +02:00
Dmitry Shibanov
65d7f2d534
Add range validation for toml files ( #726 )
2023-09-07 15:45:09 +02:00
Dimitri Papadopoulos Orfanos
61a6322f88
Fix typos found by codespell ( #650 )
2023-07-13 15:35:02 +02:00
Dario Curreri
0d5da6a89a
Read python version from pyproject.toml ( fix #542 ) ( #669 )
2023-06-28 22:02:44 +02:00
Dmitry Shibanov
bd6b4b6205
Add warning for python 2.7 ( #673 )
2023-05-24 14:37:35 +02:00
Dmitry Shibanov
7a4f344e33
Add warning for empty cache paths ( #642 )
2023-04-06 12:02:34 +02:00
Dmitry Shibanov
03eb867e3d
Add error handling for saving and restoring cache ( #618 )
2023-03-10 12:15:18 +01:00
Ivan
ec365b4eba
Add and configure ESLint and update configuration for Prettier ( #617 )
...
* Add ESLint, update Prettier
* Update docs
* Update tests
* Update licenses
* Fix review points
2023-03-09 12:44:56 +02:00
Evgenii Korolevskii
7b9ef6fc5a
Add another pip default dependency file for cache hash ( #604 )
2023-02-20 13:36:57 +01:00
Kurt McKee
869e769ec8
Trim trailing newlines from resolvedPyPyVersion
( #610 )
...
Fixes #609
2023-02-20 11:28:16 +01:00
Matthieu Darbois
2652534ead
feature: fallback to pre-release when no stable version is found ( #414 )
...
This allows to specify version like `3.11` or `pypy3.10` in workflows before those versions are released.
This lessen the burden for users of `setup-python` by not having to modify their workflow twice: once when a pre-release is available (e.g. `3.11-dev`) and once when the first stable release is published (e.g. `3.11`)
2023-01-27 16:19:31 -05:00
Oran Avraham
8b89ef08a0
Use correct Poetry config when collecting Poetry projects ( #447 )
...
* Use correct Poetry config when collecting Poetry projects
When collecting Poetry projects for caching, a '**/poetry.lock' glob is
used. However, in order to process the Poetry configuration, the
"poetry" command is run from the repo's root directory; this causes
Poetry to return an invalid configuration when there is a Poetry project
inside an inner directory.
Instead of running a single Poetry command, glob for the same pattern,
and run a Poetry command for every discovered project.
* Fix typo: saveSatetSpy -> saveStateSpy
* poetry: Support same virtualenv appearing in multiple projects
* Add nested Poetry projects test
* poetry: Set up environment for each project individually
* tests/cache-restore: Do not look for dependency files outside `data`
When the default dependency path is used for cache distributors, they
are looking for the dependency file in the project's root (including the
source code), which leads to tests taking a significant amount of time,
especially on Windows runners. We thus hit sporadic test failures.
Change the test cases such that dependency files are always searched for
inside of `__tests__/data`, ignoring the rest of the project.
* poetry: Simplify `virtualenvs.in-project` boolean check
* README: Explain that poetry might create multiple caches
* poetry: Run `poetry env use` only after cache is loaded
The virtualenv cache might contain invalid entries, such as virtualenvs
built in previous, buggy versions of this action. The `poetry env use`
command will recreate virtualenvs in case they are invalid, but it has
to be run only *after* the cache is loaded.
Refactor `CacheDistributor` a bit such that the validation (and possible
recreation) of virtualenvs happens only after the cache is loaded.
* poetry: Bump cache primary key
2023-01-03 11:13:00 -05:00
Dmitry Shibanov
5ccb29d877
Install multiple python versions ( #567 )
2022-12-22 13:02:09 +01: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
MaksimZhukov
2c3dd9e7e2
Add OS info to the error message ( #559 )
2022-12-07 18:12:42 +01:00
Sergey Dolin
4818a5a153
Handle download HTTP error ( #511 )
2022-10-24 11:10:18 +02:00
Vladimir Safonkin
8bcd2560e2
Add architecture input check for PyPy for Windows platform ( #520 )
...
* Revert cache index.js
* build cache index file
* Refactor
* Debug
* Debug
* Debug
* Debug
* Debug
* Debug
* Debug
* Debug
* Format code
* Rebuild dist
* Minor refactor
* Format code
* Minor fixes
* Check platform firstly
2022-10-18 11:01:15 +02:00
ChristopherHX
98c991d13f
Only use github.token on github.com ( #443 )
...
* Only use github.token on github.com
This expression evaluates to `''` if called from GHES hosted elsewhere
You can still provide your token on both github.com and GHES
* Enshure blank result of expression and not false
* Revert "Revert "Pass the `token` input through on GHES (#427 )" (#437 )"
This reverts commit cf86e08a31
.
* fix typo
* Add back the doc on the tool cache for self-hosted
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-08-30 15:02:20 -04:00
Leon Wright
7e39d25e3f
refactor: Debug message for Python installation path
2022-07-26 20:40:49 +08:00
Leon Wright
bc8ee42330
fix: Mac Toolpath
...
Shared libraries for the Mac python builds are not configured with the
relocatable flag, thus must always be configured with the hosted path.
Relates #459
2022-07-26 19:40:29 +08:00
Leon Wright
467a981225
feat: Add 'IS_MAC' util
2022-07-26 19:38:18 +08:00
Leon Wright
9f1915a970
fix: Self-Hosted Tool Cache
...
This fixes the tool cache path for self-hosted runners, along
with handling AGENT_TOOLSDIRECTORY for both hosted + self-hosted.
Fixes actions#459
2022-07-26 19:37:39 +08:00
Dmitry Shibanov
2f06e9da25
Add check-latest functionality ( #406 )
2022-07-25 16:54:04 +02:00
Dmitry Shibanov
49a521fa06
Fix poetry version ( #445 )
2022-07-25 15:02:06 +02:00
Milos Pantic
592a7a7a45
Add linux os release info to primary key ( #467 )
2022-07-19 14:20:19 +02:00
IvanZosimov
b88a682917
Fix resolveVersionInput() logic
2022-07-15 16:52:20 +02:00
Marko Zivic
0ad0f6a0a5
Merge pull request #452 from mayeut/fix-env
...
Remove duplicate code introduced in #440
2022-07-06 16:11:51 +02:00
Marko Zivic
364e819741
Merge pull request #394 from akv-platform/v-sedoli/set-env-by-default
...
Assign default value of AGENT_TOOLSDIRECTORY if not set
2022-07-04 10:35:46 +02:00
mayeut
2c9de4ed41
Remove duplicate code introduced in #440
...
#440 duplicated a block of code outside of `if (updateEnvironment) {` condition. This was probably an oversight when merging `main` back on the PR branch. The tests should have seen that `core.exportVariable` was being called and should have failed.
2022-07-02 11:50:48 +02:00
IvanZosimov
099ed898be
Optimize code
2022-06-30 18:42:04 +02:00
IvanZosimov
ccb7da8ae9
Change warning handler to default
2022-06-30 18:28:17 +02:00
IvanZosimov
5fbb819407
Optimize logic, rebuild action
2022-06-30 17:32:12 +02:00
IvanZosimov
82eddc4023
Add warning in case the versionFile isn't found
2022-06-30 16:34:29 +02:00
IvanZosimov
d97b6edda3
Fix typos
2022-06-30 16:25:46 +02:00