8635b1ccc5
Change deprecation comment to past tense ( #723 )
2023-10-16 11:19:29 +02:00
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
0d5da6a89a
Read python version from pyproject.toml ( fix #542 ) ( #669 )
2023-06-28 22:02:44 +02:00
bd6b4b6205
Add warning for python 2.7 ( #673 )
2023-05-24 14:37:35 +02:00
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
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
5ccb29d877
Install multiple python versions ( #567 )
2022-12-22 13:02:09 +01:00
7e39d25e3f
refactor: Debug message for Python installation path
2022-07-26 20:40:49 +08:00
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
467a981225
feat: Add 'IS_MAC' util
2022-07-26 19:38:18 +08:00
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
2f06e9da25
Add check-latest functionality ( #406 )
2022-07-25 16:54:04 +02:00
49a521fa06
Fix poetry version ( #445 )
2022-07-25 15:02:06 +02:00
b88a682917
Fix resolveVersionInput() logic
2022-07-15 16:52:20 +02:00
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
099ed898be
Optimize code
2022-06-30 18:42:04 +02:00
ccb7da8ae9
Change warning handler to default
2022-06-30 18:28:17 +02:00
5fbb819407
Optimize logic, rebuild action
2022-06-30 17:32:12 +02:00
82eddc4023
Add warning in case the versionFile isn't found
2022-06-30 16:34:29 +02:00
d97b6edda3
Fix typos
2022-06-30 16:25:46 +02:00
84087f5301
Rearrange logic
2022-06-30 16:21:14 +02:00
56f6060254
Fix naming
2022-06-30 14:41:09 +02:00
6733fc44ec
Fix typo
2022-06-30 13:44:10 +02:00
afd3e72a25
Fix bug in resolveVersionInput()
2022-06-30 13:38:43 +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
958897304a
Exclude windows from the fix
2022-06-29 11:22:07 +02:00
5d9fdcab75
Handle each OS in its own way
2022-06-29 11:22:07 +02:00
a8da2a66aa
Use /opt/hostedtoolcache as default value AGENT_TOOLSDIRECTORY
2022-06-29 11:21:21 +02:00
ffcd00020c
Allow python-version-file
to be a relative path ( #431 )
2022-06-20 16:04:59 +02:00
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
fff15a21cc
Use pypyX.Y for PyPy python-version input ( #349 )
...
This versioning scheme is consistent with other
tools in the python ecosystem so it feels more natural
and allows better interaction with other tools.
fixes #346
2022-05-18 15:20:53 +02:00
fd8f0a9fb8
Merge pull request #396 from akv-platform/v-sedoli/issue-241
...
Add warning if python version set to empty value
2022-05-04 15:21:43 +02:00
8f73c1495f
Formatting
2022-05-04 12:55:36 +05:00
e31727ce0a
Improve warning message
...
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com >
2022-05-04 12:43:58 +05:00
a69041ca9f
Successfully set up ( #399 )
2022-05-03 08:43:53 -04:00
0b56b76337
Improve wording
2022-04-29 12:49:49 +05:00
ac4e858835
Add warning if python version set to empty value
2022-04-29 09:14:59 +05:00
c36dc43e7b
Fix conflicts ( #389 )
2022-04-26 16:50:29 +02:00
bcc31375e1
Throw exe on empty python-version
2022-04-21 08:19:23 +05:00
f4b66dec00
Merge branch 'actions:main' into main
2022-04-06 12:51:31 +05:00
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
0ebf233433
Remove legacy PyPy input ( #342 )
2022-02-28 10:19:48 +03:00
65fe6a82c7
Use template literals instead of string concatenation
2022-02-21 05:26:51 +00:00
011c443f81
prettier
2022-02-17 19:21:13 +00:00
3250b5373c
Force RUNNER_TOOL_CACHE to be equal AGENT_TOOLSDIRECTORY
2022-02-17 18:35:19 +00:00
280924fbef
Implementation of python's caching ( #266 )
2021-11-17 13:31:22 +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
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
8ad00a65a6
Updates to npm packages ( #66 )
...
* npm package updates
* Updates to ncc build
2020-03-09 10:16:37 +01: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