Aarni Koskela
6e6192d9a7
Merge 8f0a0b0eda
into 6ed2c67c8a
2025-04-18 16:33:58 +09:00
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
priya-kinthali
0b93645e9f
Enhance workflows: Add macOS 13 support, upgrade publish-action, and update documentation for arm64 and latest versions ( #965 )
...
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
* update ci workflows with latest versions and added macos-13
* updated document with latest versions
2024-10-24 08:38:22 -05:00
Aarni Koskela
8f0a0b0eda
Add cache-save: false
option
2023-12-12 15:26:56 +02:00
Dmitry Shibanov
0a5c615913
Update action to node20 ( #772 )
2023-12-05 14:52:09 +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
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
IvanZosimov
c318b92fd6
Fix review points
2022-07-28 09:38:24 +02:00
IvanZosimov
81cda82fb0
Fix review points
2022-07-26 14:47:59 +02:00
IvanZosimov
dd40245e5b
Fix merge artifacts
2022-07-26 11:06:43 +02:00
IvanZosimov
1f0a39a525
Sync with Main branch
2022-07-26 11:05:09 +02:00
IvanZosimov
b2241a4754
Change yml and rebuild action
2022-07-26 11:01:07 +02:00
Dmitry Shibanov
2f06e9da25
Add check-latest functionality ( #406 )
2022-07-25 16:54:04 +02:00
IvanZosimov
799afeb796
Fix action.yml file
2022-07-13 13:43:28 +02:00
IvanZosimov
61fb4e42ab
Fix review points
2022-07-13 12:17:04 +02:00
IvanZosimov
09086ccd46
Update action.yml file
2022-07-13 11:27:41 +02:00
Matthieu Darbois
00a5248c77
feature: add update-environment
input ( #411 )
...
This option allows to specify if the action shall update environment variables (default) or not.
This allows to use the setup-python action in a composite action without side effect (except downloading/installing python if version is missing).
2022-06-29 11:00:51 -04:00
Brian Cristante
cf86e08a31
Revert "Pass the token
input through on GHES ( #427 )" ( #437 )
...
This reverts commit 7e4abae443
.
2022-06-16 11:08:06 -04:00
Brian Cristante
7e4abae443
Pass the token
input through on GHES ( #427 )
...
* Pass the`token` input through on GHES
* Update the description for `token`
* Fix dist files
* Update package-lock.json
* Update README
* Fix indent level in YAML snippet
* secret names can't start with GITHUB_
2022-06-13 14:55:47 -04:00
Andrew DiLosa
53e15292cd
add support for python-version-file ( #336 )
...
* add support for python-version-file
* Update action.yml
* update to v4, remove python-version default
* python-version overrides python-version-file, like setup-node
* checks '.python-version' by default if nothing else specified
* update tests, update to checkout@v3
* update build
* appease the linter
* remove old test for default python version
* revert readme changes
* update build
2022-06-02 16:37:57 +02:00
mayeut
ff706563d7
feature: add a python-path
output
...
Expose a `python-path` output containing the chosen Python executable path.
2022-05-24 21:02:03 +02:00
Alexey
21c0493ecf
Cache hit output ( #373 )
...
* Remove useless await in getCacheDistributor calls
* Added cache-hit output
* Build action with cache-hit output
* Remove PromiseReturnType, add matchedKey == primaryKey check
* Update cache-distributor.ts
* Fix tests and rebuild
2022-04-05 09:57:13 -04:00
Patrick Arminio
18c67b44e4
Initial preparation to add support for poetry
2022-03-25 22:53:30 -05:00
Dmitry Shibanov
93cb78f17b
Update to node16 ( #340 )
2022-02-25 12:31:18 +03:00
Dmitry Shibanov
280924fbef
Implementation of python's caching ( #266 )
2021-11-17 13:31:22 +03:00
MaksimZhukov
e5af64b2df
Use GitHub releases to download python versions ( #85 )
...
This pull-request improves `setup-python` action to add ability to download specific version of Python on flight if it is not available by default.
**Details:**
`setup-python` action will download and install specific Python version from GitHub releases ([actions/python-versions](https://github.com/actions/python-versions/releases )) in case the version is not found in the local cache. All versions of Python available for installation are published in [actions/python-versions](https://github.com/actions/python-versions ) repository.
All available versions are listed in the [version-manifest.json](https://github.com/actions/python-versions/blob/master/versions-manifest.json ) file.
**Installation time:**
- Ubuntu / macOS: 10-20 seconds
- Windows: ~ 1 minute (mostly related to fact that we use MSI installer for Python on Windows)
Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2020-04-29 20:57:02 +03:00
Konrad Pabjan
9ac730844c
Update action.yml
2020-03-09 10:34:49 +01:00
Konrad Pabjan
c4000d2828
Update action.yml
2020-03-09 10:31:20 +01:00
Konrad Pabjan
5d7d800988
Merge branch 'releases/v1' into master
2020-03-09 10:29:14 +01:00
Robin Daumann
f8fb48e9f7
output installed version number after setup ( #51 )
...
* output installed version number after setup
* set output for the installed version
2020-03-09 08:18:12 +01:00
Brian Cristante
4f72cbc621
Fix quotes
2019-12-27 13:15:28 -05:00
Brian Cristante
c63dffb056
Address YAML linting errors
2019-12-27 13:08:34 -05:00
Edward Thomson
d7eab29295
Update description
2019-11-08 16:19:39 +00:00
Edward Thomson
a0449e049a
Update description
2019-11-08 16:19:00 +00:00
Konrad Pabjan
4875b9e438
PR Feedback
2019-11-06 10:20:01 -05:00
Konrad Pabjan
bbc52402b0
Add branding and correctly point to main file
2019-11-05 17:12:58 -05:00
Konrad Pabjan
28a6c1b915
Remove old parameter that is deprecated
2019-11-05 15:43:35 -05:00
Danny McCormick
6f6fcee330
Deprecate version
2019-09-12 10:36:03 -04:00
Danny McCormick
24b4fa76d2
Consume toolkit from npmjs ( #12 )
2019-08-20 10:27:52 -04:00
Danny McCormick
e336b852d5
Use python-version ( #10 )
2019-08-13 16:30:18 -04:00
Danny McCormick
fe821292b0
Update action name
2019-08-12 14:40:58 -04:00
Danny McCormick
0611362f9b
Update action.yml
2019-08-08 13:34:19 -04:00
Danny McCormick
8ee77cc1ee
Add default arch
2019-07-19 16:07:45 -04:00
Danny McCormick
6923ce3409
Update action.yml
2019-07-09 12:42:38 -04:00
Danny McCormick
b96ef7391c
Strings can't have '
2019-07-03 13:13:25 -04:00
Danny McCormick
39c08a0eaa
Initial pass
2019-06-26 21:12:00 -04:00