8f1f09d543
Use distinct cache key for free threaded Python
2025-02-10 17:23:09 +00:00
1ec1b0d2bd
Add 't' suffix to python-version output
2025-02-05 21:07:34 +00:00
72902a03bd
Add freethreaded input and fix handling of prerelease versions
2025-01-31 21:17:47 +00:00
d653c0b66e
Fix desugaring of 3.13.1t
and add test case.
2025-01-22 20:43:27 +00:00
eb2a6532f9
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
2024-10-29 20:33:12 +00:00
61a6322f88
Fix typos found by codespell ( #650 )
2023-07-13 15:35:02 +02:00
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
2c3dd9e7e2
Add OS info to the error message ( #559 )
2022-12-07 18:12:42 +01:00
2f06e9da25
Add check-latest functionality ( #406 )
2022-07-25 16:54:04 +02:00
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
e629242ad4
Fix failed check
2022-06-30 07:56:08 +02:00
69b94463f5
Add CMake hints
2022-06-30 07:43:57 +02:00
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
d09bd5e600
fix: 3.x-dev can install a 3.y version ( #417 )
...
* fix: 3.x-dev can install a 3.y version
* Update README section for `-dev`
2022-06-08 14:58:05 +02:00
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
5e1e05c694
set PKG_CONFIG_PATH environment var
2022-05-03 16:04:39 +05:00
0ebf233433
Remove legacy PyPy input ( #342 )
2022-02-28 10:19:48 +03:00
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
2831efe49a
Improve find-python to add "Scripts" folder to PATH on Windows machines ( #169 )
...
* added 'Scripts' folder to PATH on Windows
* add release code
* update index.js
* rebuild index.js
* remove duplicate block
Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com >
Co-authored-by: Dmitry Shibanov <dmitry-shibanov@github.com >
2020-12-17 16:02:13 +01:00
3b3f2de1b1
update pypy3 to point to 3.6 ( #164 )
2020-12-07 16:59:14 -05:00
878156f1de
Inject LD_LIBRARY_PATH library path into Python manifest install and setup ( #144 )
...
* Adding LD_LIBRARY_PATH env var to both setup and install tasks
* Rebuild dist/index.js
* Fixed some typos in contributors.md Markdown
2020-10-05 14:51:21 +02:00
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
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
11c9de6408
Update terminology in comments
2019-12-27 11:25:11 -05:00
24b4fa76d2
Consume toolkit from npmjs ( #12 )
2019-08-20 10:27:52 -04:00
39c08a0eaa
Initial pass
2019-06-26 21:12:00 -04:00