Commit Graph

327 Commits

Author SHA1 Message Date
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
Sergey Dolin 9c76df2a90 Build after rebase 2022-06-29 11:24:02 +02:00
Sergey Dolin 958897304a Exclude windows from the fix 2022-06-29 11:22:07 +02:00
Sergey Dolin 5d9fdcab75 Handle each OS in its own way 2022-06-29 11:22:07 +02:00
Sergey Dolin 7199395312 Fix dist folder 2022-06-29 11:22:06 +02:00
Sergey Dolin 5ad79022bc Change README 2022-06-29 11:21:25 +02:00
Sergey Dolin a8da2a66aa Use /opt/hostedtoolcache as default value AGENT_TOOLSDIRECTORY 2022-06-29 11:21:21 +02:00
IvanZosimov c61bc3d08e Update licenses 2022-06-28 15:40:29 +02:00
IvanZosimov 01408cef88 Update cache-save.ts to support @actions/cache v3.0.0 lib
Made package.json and package-lock.json to use @actions/cache v3.0.0,
updated logic of the cache-save operation and added unit-tests
2022-06-28 15:17:50 +02:00
Kurt von Laven ffcd00020c
Allow `python-version-file` to be a relative path (#431) 2022-06-20 16:04:59 +02: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
Dmitry Shibanov 0e03ef2a51 fix test-python.yml 2022-06-15 16:59:57 +02:00
Dmitry Shibanov 614f5d9bc8 rebuild dist 2022-06-15 16:41:37 +02:00
Dmitry Shibanov 6d01ca94fa Merge branch 'main' into v-dmshib/add-check-latest 2022-06-15 16:39:43 +02:00
Hugo van Kemenade 8fb4cbf7c8
README: Document pypy2 and pypy3 are deprecated (#265) 2022-06-15 14:03:21 +02: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
Marko Zivic 813f9b1556
Merge pull request #423 from vsafonkin/v-vsafonkin/update-docs-v4
Update docs to v4 version
2022-06-09 10:56:24 +02:00
Vladimir Safonkin 775367df99 Update docs to v4 version 2022-06-09 09:54:52 +02:00
Matthieu Darbois 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
Ivan f72db171ab
Made env.var pythonLocation consistent for Python and PyPy (#418)
* Change find-pypy.ts to redefine pythonLocaction environment variable

* Change README.md in order to add sentence about pythonLocation envvar

* Change sentence about pythonLocation envvar in README.md

* Rephrase the definition of pythonLocation env.var
2022-06-08 14:57:23 +02: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
Dmitry Shibanov 3f82819745
Fix output for prerelease version of poetry (#409) 2022-05-31 15:48:54 +02:00
Dmitry Shibanov 397252c582
Update zeit/ncc to vercel/ncc (#393) 2022-05-31 12:56:29 +02:00
Dmitry Shibanov 86e88a60ab Merge branch 'main' into v-dmshib/add-check-latest 2022-05-31 09:51:15 +02:00
Marko Zivic de977ad132
Merge pull request #412 from vsafonkin/v-vsafonkin/fix-poetry-cache-test
Fix e2e test for poetry cache and PyPy-3.7
2022-05-31 09:41:08 +02:00
Vladimir Safonkin 22c6af91ce Change PyPy version to rebuild cache 2022-05-30 15:02:04 +02:00
Marko Zivic 081a3cf1a5
Merge pull request #405 from mayeut/interpreter-path
feature: add a `python-path` output
2022-05-25 11:02:46 +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
Dmitry Shibanov ea1d6e985c Merge branch 'main' into v-dmshib/add-check-latest 2022-05-24 10:30:49 +02:00
Matthieu Darbois 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
Dmitry Shibanov 0753db15fe fix tests 2022-05-09 13:20:05 +02:00
Dmitry Shibanov 0c0e574755 run format 2022-05-09 13:13:15 +02:00
Dmitry Shibanov d43033cfcd add mock 2022-05-09 13:04:52 +02:00
Dmitry Shibanov bd01c0d9fb fix tests 2022-05-09 12:53:56 +02:00
Dmitry Shibanov ca41e9d2b6 fix tests 2022-05-09 11:53:48 +02:00
Dmitry Shibanov f50cbbf0a4 Merge branch 'v-dmshib/add-check-latest' of https://github.com/dmitry-shibanov/setup-python into v-dmshib/add-check-latest 2022-05-09 11:25:22 +02:00
Dmitry Shibanov ee3a2543f1 fix tests 2022-05-09 11:25:09 +02:00
Dmitry Shibanov 5dd8329ef6 add licenses 2022-05-09 11:25:08 +02:00
Dmitry Shibanov 71940d6132 add check-latest to the documentation 2022-05-09 11:25:08 +02:00
Dmitry Shibanov 73adf61d1f add check-latest for pypy 2022-05-09 11:25:08 +02:00
Dmitry Shibanov 4841389b47 add check-latest for python versions 2022-05-09 11:25:08 +02:00
Dmitry Shibanov 62079dbf4b fix tests 2022-05-09 11:16:24 +02:00
Dmitry Shibanov 381a73b90e add licenses 2022-05-09 10:48:49 +02:00
Dmitry Shibanov 7339590dca add check-latest to the documentation 2022-05-09 10:32:31 +02:00
Marko Zivic c57f79353b
Merge pull request #318 from neutrinoceros/document_dev_sugar
DOC: document -dev syntactic sugar
2022-05-06 13:03:34 +02:00
Dmitry Shibanov 8723b8aa5a add check-latest for pypy 2022-05-06 09:50:12 +02:00
Marko Zivic 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
Dmitry Shibanov 58a8109aea add check-latest for python versions 2022-05-04 11:40:08 +02:00
Marko Zivic ae11205ec6
Merge pull request #400 from akv-platform/v-sedoli/pkg-config
set PKG_CONFIG_PATH environment var
2022-05-04 09:56:28 +02:00
Sergey Dolin 8f73c1495f Formatting 2022-05-04 12:55:36 +05:00