1
0
mirror of https://github.com/actions/setup-python synced 2024-11-30 21:22:28 +08:00
Commit Graph

97 Commits

Author SHA1 Message Date
Russell Smith
2f078955e4
Fix broken README.md link (#793) 2024-01-18 11:33:07 +05:30
Bas Nijholt
e9d6f99097
Replace setup-python@v4 by setup-python@v5 in README (#776) 2023-12-14 16:28:18 +01:00
Dmitry Shibanov
0ae58361cd
Add example of GraalPy to docs (#773) 2023-12-05 11:40:46 +01:00
Simon Willison
8d2896179a
Examples now use checkout@v4 (#738) 2023-11-08 10:25:26 +01:00
Evgenii Korolevskii
7b9ef6fc5a
Add another pip default dependency file for cache hash (#604) 2023-02-20 13:36:57 +01:00
Ivan
181184007f
Update workflow badges (#594) 2023-01-31 08:46:32 +02: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
Oran Avraham
8b89ef08a0
Use correct Poetry config when collecting Poetry projects (#447)
* Use correct Poetry config when collecting Poetry projects

When collecting Poetry projects for caching, a '**/poetry.lock' glob is
used.  However, in order to process the Poetry configuration, the
"poetry" command is run from the repo's root directory; this causes
Poetry to return an invalid configuration when there is a Poetry project
inside an inner directory.

Instead of running a single Poetry command, glob for the same pattern,
and run a Poetry command for every discovered project.

* Fix typo: saveSatetSpy -> saveStateSpy

* poetry: Support same virtualenv appearing in multiple projects

* Add nested Poetry projects test

* poetry: Set up environment for each project individually

* tests/cache-restore: Do not look for dependency files outside `data`

When the default dependency path is used for cache distributors, they
are looking for the dependency file in the project's root (including the
source code), which leads to tests taking a significant amount of time,
especially on Windows runners.  We thus hit sporadic test failures.

Change the test cases such that dependency files are always searched for
inside of `__tests__/data`, ignoring the rest of the project.

* poetry: Simplify `virtualenvs.in-project` boolean check

* README: Explain that poetry might create multiple caches

* poetry: Run `poetry env use` only after cache is loaded

The virtualenv cache might contain invalid entries, such as virtualenvs
built in previous, buggy versions of this action.  The `poetry env use`
command will recreate virtualenvs in case they are invalid, but it has
to be run only *after* the cache is loaded.

Refactor `CacheDistributor` a bit such that the validation (and possible
recreation) of virtualenvs happens only after the cache is loaded.

* poetry: Bump cache primary key
2023-01-03 11:13:00 -05:00
Watal M. Iwasaki
5cddb27885
Recommend setting python-version (#545)
* Recommend setting python-version

* Recommend both options to set Python version

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2022-11-21 13:47:16 +01:00
Larissa Fortuna
050e616f66
Update README.md
Updating outdated reference to virtual environments
2022-08-26 08:26:51 -07:00
IvanZosimov
789730b666 Fix broken links in the text body 2022-08-01 16:44:50 +02:00
IvanZosimov
c4e98b741b Fix broken links 2022-08-01 16:33:59 +02:00
IvanZosimov
cfcafa57ec Fix review points 2022-08-01 16:23:57 +02: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
a624f1f4bc Fix grammar in both documents 2022-07-26 11:32:45 +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
Dmitry Shibanov
2f06e9da25
Add check-latest functionality (#406) 2022-07-25 16:54:04 +02:00
IvanZosimov
5517d5f7b5 Fix documentation
Docs were updated to incorporate changes regarding tool cache folder
on the self-hosted runner and changes in resolveVersionInput()
2022-07-18 14:33:42 +02:00
IvanZosimov
386e4eaaed Fix review points 2022-07-13 13:34:22 +02:00
IvanZosimov
61fb4e42ab Fix review points 2022-07-13 12:17:04 +02:00
IvanZosimov
746f28a2d3 Update REAMDE.md and advanced-usage.md 2022-07-13 11:15:35 +02:00
IvanZosimov
6dd8ff72eb Change tool cache wording 2022-07-12 17:32:40 +02:00
IvanZosimov
9a40041e25 Rearrange README.md, add advanced-usage.md 2022-07-12 16:38:54 +02:00
James
c4e89fac7e
Improve readme for 3.x and 3.11-dev style python-version (#441) 2022-07-07 23:34:44 +02:00
Aarni Koskela
af97157ae6
doc: Add multiple wildcards example to readme
Based on https://www.npmjs.com/package/@actions/glob (the library used for cache file globbing), newline-separating multiple patterns is accepted.
2022-07-04 12:24:58 +03:00
Marko Zivic
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
Dmitry Shibanov
766e8c6088
Fixing pipenv CI (#444)
* work on fixing pipenv

* change installation of pipenv to curl

* add different logs

* regenerate pipefile.lock

* change pipenv ci
2022-06-29 13:09:14 -04: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
Sergey Dolin
5ad79022bc Change README 2022-06-29 11:21:25 +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
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
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
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
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
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
6a4c6c1309
adjust documentation for python versions (#388) 2022-04-20 14:48:22 +02:00
Vladimir Safonkin
abfd16b121 Fix virtual-env toolcache links 2022-04-19 15:21:09 +02:00
Shubham Tiwari
9c644ca2ab
Update README.md to fix setup-python version in example (#368) 2022-04-01 13:20:54 +02:00
Patrick Arminio
18c67b44e4
Initial preparation to add support for poetry 2022-03-25 22:53:30 -05:00
Christian Clauss
8c1441c007
README.md: Upgrade to v3
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-python/releases
2022-03-17 07:40:10 +01:00
Clément Robert
0bcf8ef2ba DOC: document -dev syntactic sugar 2022-01-12 10:35:17 +01:00
Christian Clauss
9a115684c9
README.md: Bring Python versions up to date (#256) 2021-12-30 11:55:42 +03:00
Lenin
3a40ba0199
Fix small typo in README (comma missing) (#277) 2021-12-29 16:01:07 +03:00
killuazhu
fa17801fa7
Fix typo in README.md (#224) 2021-12-29 15:30:46 +03:00
Dmitry Shibanov
2b732b899c
Removing a non-existent command from the documentation (#293) 2021-12-13 18:51:02 +03:00