Commit graph

34 commits

Author SHA1 Message Date
Dmitry Shibanov
3542bca263
Add warning for python 2.7 on release/v3 (#674)
* add warning

* npm run format

* remove ubuntu-18.04
2023-05-30 15:00:26 +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
Sergey Dolin
7933d5a3dd
Add pyton-version to setup PyPy output (#365)
* Add pyton-version to setup PyPy output

* remove new line from pypy version

* Move setOutput to findPyPyVersion

* Resolve conflict: 2
2022-04-04 13:12:56 -04: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
Patrick Arminio
6c31eb3fc7
Use \n instead of os.EOL
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-03-30 22:41:41 +01:00
Patrick Arminio
b0c8e3dab7
Remove console.log 2022-03-25 22:53:31 -05:00
Patrick Arminio
42ed863652
Parse values from poetry 2022-03-25 22:53:31 -05:00
Patrick Arminio
1259541ec8
Add tests 2022-03-25 22:53:30 -05:00
Patrick Arminio
95824fd246
Get poetry cache implementation when requested 2022-03-25 22:53:30 -05:00
Patrick Arminio
59cb3f4919
Add untest poetry cache implementation 2022-03-25 22:53:30 -05:00
Dmitry Shibanov
0ebf233433
Remove legacy PyPy input (#342) 2022-02-28 10:19:48 +03:00
Dmitry Shibanov
7f80679172
Add fix for Windows caching of pip (#332) 2022-02-04 14:00:41 +03:00
Hugo van Kemenade
ba33a692f1
Include Python version in pip cache key (#303) 2022-01-31 13:42:08 +03:00
Dmitry Shibanov
280924fbef
Implementation of python's caching (#266) 2021-11-17 13:31:22 +03:00
Alena Sviridenko
dc73133d4d
Fix PyPy installation on Windows to adopt new parameters format (#201)
* test for pypy new version notation

* formatting

* uncommented condition

* test

* added pypy to test matrix

* test

* test

* restored all tests

* removed logs, added multiarch support for toolcache

* reduced test matrix

* removed extra condition about arch
2021-04-12 13:59:38 -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
Nikita Bykov
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
Maxim Lobanov
3b3f2de1b1
update pypy3 to point to 3.6 (#164) 2020-12-07 16:59:14 -05:00
Peter Mescalchin
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
Nikita Bykov
0c28554988
Fix path of extracted folder for Python (#118)
* fixed path for pythonExtractedFolder

* build on node v12

* updated index.js

* removed fileName variable

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2020-07-20 19:29:05 +03:00
MaksimZhukov
306c473438
Add support of pre-release Python versions (#112)
* Add support of unstable Python versions

* Update README

* Get rid of stable boolean input

* Fix typo in the test.yml

* Update README

Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
2020-07-17 11:58:03 +02:00
Konrad Pabjan
7a69c2bc7d
Improved logging during setup (#113)
* Improved error output during setup

* Change from debug to info for normal output

* Apply suggestions from code review

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

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2020-07-15 19:13:43 +02:00
Maxim Lobanov
6f45e887f6
update MANIFEST_URL (#111) 2020-07-15 11:26:28 +02:00
Konrad Pabjan
4dda7a3aa1
Support for GHES (#95) 2020-05-20 15:35:09 +02: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
8ad00a65a6
Updates to npm packages (#66)
* npm package updates

* Updates to ncc build
2020-03-09 10:16:37 +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
11c9de6408 Update terminology in comments 2019-12-27 11:25:11 -05:00
Konrad Pabjan
28a6c1b915 Remove old parameter that is deprecated 2019-11-05 15:43:35 -05: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
f7f8dbaddf Add matcher 2019-07-08 14:43:29 -04:00
Danny McCormick
04b8867918 Fail on error 2019-07-03 14:04:51 -04:00
Danny McCormick
39c08a0eaa Initial pass 2019-06-26 21:12:00 -04:00