Kevin Stillhammer
790df8f465
Revert "Set expected cache dir drive to C: on windows ( #451 )" ( #460 )
...
This reverts commit 60ecb381b4 .
2025-06-24 11:16:40 +02:00
Kevin Stillhammer
445689ea25
Use latest version from manifest-file ( #458 )
...
If a manifest-file is supplied the default value of the version input
(latest) will get the latest version available in the manifest. That
might not be the actual latest version available in the official uv
repo.
2025-06-19 21:23:43 +02:00
Kevin Stillhammer
a02a550bdd
Look for version-manifest.json relative to action path ( #456 )
...
Fixes : #455
2025-06-18 23:09:13 +02:00
Kevin Stillhammer
60cc2b4585
Add input manifest-file ( #454 )
...
Adds capability to maintain custom uv builds or to override the default
sources
2025-06-18 20:33:20 +00:00
Kevin Stillhammer
60ecb381b4
Set expected cache dir drive to C: on windows ( #451 )
...
Seems like the temp folder got moved to the C: drive
2025-06-17 09:40:23 +02:00
Kevin Stillhammer
c19c1b1ffd
Check that all jobs are in all-tests-passed.needs ( #432 )
2025-05-27 18:25:00 +02:00
Kevin Stillhammer
f0ec1fc3b3
Bump dependencies ( #424 )
2025-05-23 09:57:11 +02:00
Kevin Stillhammer
e3d2ea5ff3
Purge cache in cache key ( #423 )
...
Fixes : #416
2025-05-23 09:43:52 +02:00
Kevin Stillhammer
0e9cccb4b0
Fix path to known-checksums.ts ( #404 )
2025-05-08 09:37:11 +02:00
Kevin Stillhammer
b87cce2fc5
Fix update-known-versions workflow argument ( #401 )
...
Use version-manifest.json instead of .ts
2025-05-04 07:10:02 +00:00
Kevin Stillhammer
9641fcd493
Fix update-known-versions workflow ( #400 )
...
Add missing argument versionsManifestFilePath
2025-05-04 09:01:52 +02:00
Kevin Stillhammer
a4f1f549e9
Create version-manifest.json on uv release ( #399 )
2025-05-03 19:51:16 +02:00
Kevin Stillhammer
ced7c1dde4
Run infrastructure workflows on arm runners ( #396 )
...
Use more efficient runners to save resources. Every bit counts.
2025-05-01 20:22:40 +02:00
Kevin Stillhammer
6b9c6063ab
Bump dependencies ( #389 )
2025-04-29 22:50:17 +02:00
Kevin Stillhammer
ef6bcdff59
Fix default cache dependency glob ( #388 )
...
The new default in v6 used illegal patterns and therefore didn't match
requirements files
Fixes : #385
2025-04-29 22:42:06 +02:00
Kevin Stillhammer
c7f87aa956
bump to v6 in README ( #382 )
2025-04-24 15:29:56 +02:00
Kevin Stillhammer
aadfaf08d6
Change default cache-dependency-glob ( #352 )
...
To support more users by default we should support popular dependency
file formats. A quick GitHub search shows ~40k uses of `constraint.txt`
and ~16k uses of `requirements.in`.
Closes : #261
2025-04-24 15:18:27 +02:00
Kevin Stillhammer
a0f9da6273
No default UV_CACHE_DIR on selfhosted runners ( #380 )
...
Closes : #371
2025-04-24 15:17:56 +02:00
Kevin Stillhammer
ec4c691628
new inputs activate-environment and working-directory ( #381 )
...
venv activation was implicit when python-version was supplied. This now
only happens when activate-environment is true. working-directory
controls where we work and thus also where the .venv will be created
Closes : #351
Closes : #271
Closes : #251
Closes : #211
2025-04-24 15:17:35 +02:00
Kevin Stillhammer
fb3a0a97fa
log info on venv activation ( #375 )
...
Make sure we get more info by default instead of just exiting with 1
Contributes to: #374
2025-04-17 21:02:21 +02:00
Kevin Stillhammer
d4b2f3b6ec
Make sure uv installed by setup-uv is first in PATH ( #373 )
...
Fixes : #372
2025-04-16 10:31:45 +00:00
Kevin Stillhammer
839076380b
Fix pep440 identifier instead of specifier ( #358 )
2025-03-31 06:49:49 +00:00
Kevin Stillhammer
0c5e2b8115
Add pep440 to docs header ( #355 )
2025-03-30 16:25:01 +00:00
Kevin Stillhammer
794ea9455c
Add support for pep440 version identifiers ( #353 )
...
Fixes : #264
2025-03-30 18:00:56 +02:00
Kevin Stillhammer
224dce1d79
Add link to supported glob patterns ( #348 )
...
Closes : #346
2025-03-27 10:34:21 +00:00
Kevin Stillhammer
22695119d7
Add uv-path and uvx-path output ( #341 )
...
Closes : #338
2025-03-21 13:44:23 +01:00
Kevin Stillhammer
1fb7cdfc29
Merge workflows and add all-tests-passed ( #331 )
2025-03-19 16:51:30 +01:00
Kevin Stillhammer
72002e8b87
Fix wrong warning message in FAQ ( #337 )
2025-03-19 11:12:56 +00:00
Kevin Stillhammer
389b596663
Set required workflow permissions ( #329 )
2025-03-18 15:21:29 +01:00
Kevin Stillhammer
04c950a723
Add workflow_dispatch triggers to every workflow ( #326 )
...
Allows for easier testing.
2025-03-18 15:04:58 +01:00
Kevin Stillhammer
d02c4c2d68
Bump dependencies ( #324 )
2025-03-17 10:32:59 +01:00
Kevin Stillhammer
a4fd982317
Inline action-update-semver ( #323 )
...
What the action does is easily inlined. This reduces the attack surface
of this repo.
2025-03-16 21:17:49 +00:00
Kevin Stillhammer
a05a582c56
Warn when the workdir is empty ( #322 )
...
Closes : #306
2025-03-16 22:15:17 +01:00
Kevin Stillhammer
0e855c90d0
Remove apk add python3 for musl test ( #319 )
2025-03-12 09:27:54 +01:00
Kevin Stillhammer
f94ec6bedd
bump dependencies ( #308 )
2025-02-28 16:35:57 +00:00
Kevin Stillhammer
0313224678
Always fall back to anonymous download ( #304 )
...
Closes : #268
Closes : #305
2025-02-28 17:25:17 +01:00
Kevin Stillhammer
1edb52594c
Add more debug logs ( #297 )
2025-02-21 11:10:37 +01:00
Kevin Stillhammer
a4fbf7b827
Add FAQ on resolution strategy and cache not found warnings ( #296 )
...
Fixes : #294
2025-02-21 10:47:37 +01:00
Kevin Stillhammer
e2e9087257
Support OS using musl ( #284 )
...
Fixes : #278
2025-02-17 10:32:34 +01:00
Kevin Stillhammer
f95cd8710c
Run update-known-checksums every night ( #273 )
2025-02-06 07:45:58 +00:00
Kevin Stillhammer
4db96194c3
Do not expect GITHUB_TOKEN to be set or valid ( #262 )
...
This fixes issues with GHES
Fixes : #221
2025-01-30 14:37:07 +01:00
Kevin Stillhammer
1c21f62d98
Fix TOC ( #257 )
2025-01-27 18:17:02 +01:00
Kevin Stillhammer
14dc0be27c
Fallback if toml file parsing failed ( #246 )
2025-01-16 16:54:33 +01:00
Kevin Stillhammer
b5f58b2abc
Support toml spec 1.0.0 ( #245 )
...
iarna/toml is unmaintained.
Replaced by smol-toml which is maintained and has the same api
Fixes : #242
2025-01-16 16:38:18 +01:00
Kevin Stillhammer
4e3dbecc19
Add venv/bin as absolute path to PATH ( #241 )
...
Fixes : #239
2025-01-16 09:14:32 +00:00
Kevin Stillhammer
9fffe05b88
Add documentation for new inputs uv-file and pyproject-file ( #235 )
2025-01-13 14:32:41 +00:00
Kevin Stillhammer
5ce9ee0011
Detect required-version from config file ( #233 )
...
1. If defined use version input
2. If defined use uv-file input
3. If defined use pyproject-file input
4. Search for required-version in uv.toml in repo root
5. Search for required-version in pyproject.toml in repo root
6. Use latest
Closes : #215
2025-01-13 15:24:25 +01:00
Kevin Stillhammer
887a942a15
Set VIRTUAL_ENV to .venv instead of .venv/bin ( #210 )
...
Closes : #209
2024-12-23 17:45:21 +01:00
Kevin Stillhammer
d174a24c07
Align use of actions/setup-python with uv docu ( #207 )
...
Closes : #197
2024-12-22 11:13:40 +00:00
Kevin Stillhammer
12c852e6ba
Remove uv version from cache key ( #206 )
...
This approach was copied from setup-rye but uv now has the capability to
determine if a cache version is compatible. By removing it we will less
frequently invalidate the cache and thus save bandwidth
Closes : #203
2024-12-22 12:12:29 +01:00
Kevin Stillhammer
180f8b4439
Fix wrong cacheDependencyPathHash ( #201 )
...
Introduced in https://github.com/astral-sh/setup-uv/pull/200 and not
caught because the test is not needed for automerge to pass
2024-12-20 11:42:38 +01:00
Kevin Stillhammer
e3fb95a689
Warn instead of fail for no-dependency-glob ( #200 )
...
Closes : #199
2024-12-20 10:32:52 +00:00
Kevin Stillhammer
dd578776bb
Auto activate venv when python-version is set ( #194 )
...
Closes : #124
2024-12-20 08:24:43 +01:00
Kevin Stillhammer
856099c958
Add python version to cache key ( #187 )
...
Closes : #182
2024-12-13 20:52:12 +01:00
Kevin Stillhammer
e3017a763c
Default to enable-cache: true on GitHub hosted runners ( #193 )
...
Closes : #54
2024-12-13 20:12:42 +01:00
Kevin Stillhammer
3460fe1a9a
Always use api.github.com ( #191 )
...
The octokit client would default to the URL of enterprise instances and
then not be able to find the uv repo.
Closes : #188
2024-12-11 18:42:54 +01:00
Kevin Stillhammer
f064c84ddb
Update dependencies ( #186 )
2024-12-08 16:55:10 +00:00
Kevin Stillhammer
be4207d29e
Add **/requirements*.txt to default cache-dependency-glob ( #185 )
...
Contributes to: https://github.com/astral-sh/setup-uv/issues/181
2024-12-08 17:51:13 +01:00
Kevin Stillhammer
bdcda7e77f
Add hint why cache-dependency-glob fails ( #184 )
...
Make it clear which input can be used to solve the error
Contributes to: #181
2024-12-08 11:09:18 +01:00
Kevin Stillhammer
8bdd012be5
Add test for python-version ( #177 )
2024-11-29 09:32:51 +01:00
Kevin Stillhammer
5f42d5af6c
Replace v3 with v4 in README.md ( #176 )
2024-11-28 20:49:05 +00:00
Kevin Stillhammer
26ddfef6e1
Add matrix example for python-version ( #175 )
2024-11-28 20:46:52 +00:00
Kevin Stillhammer
ee4fa33003
Add input python-version ( #174 )
2024-11-28 20:41:37 +00:00
Kevin Stillhammer
420915557e
Reduce test matrices ( #173 )
...
Basic functionality for the different OS is tested in
`test-latest-version` Everything else is not OS dependent
2024-11-28 21:07:46 +01:00
Kevin Stillhammer
196fe5f098
Speed up updating known checksums ( #166 )
...
Before downloading the checksum file from the releases, check if we
already know that version.
2024-11-25 09:18:03 +01:00
Kevin Stillhammer
49d8a3d9a8
Clarify caching will only fail when enabled and nothing to cache ( #165 )
2024-11-23 16:24:42 +00:00
Kevin Stillhammer
d8db0a86d3
Change some formulations in README.md ( #164 )
2024-11-23 15:47:24 +00:00
Kevin Stillhammer
ed171c292b
Fail when cache local path does not exist when trying to cache ( #163 )
...
Can be disabled by setting `ignore-nothing-to-cache: true`
2024-11-23 16:30:54 +01:00
Kevin Stillhammer
691a091485
Remove working dir from cacheDependencyGlob error message ( #162 )
...
Since https://github.com/astral-sh/setup-uv/pull/160 we allow searching
everywhere
2024-11-23 11:03:08 +00:00
Kevin Stillhammer
9b71657bb2
Add comment to clarify process.exit(0) ( #161 )
...
Copied from https://github.com/actions/cache/pull/1217
2024-11-23 10:58:21 +00:00
Kevin Stillhammer
caf0cab7a6
Expand TILDE (~) in path inputs ( #160 )
...
Closes : #159
2024-11-23 09:21:51 +01:00
Kevin Stillhammer
2e657c127d
Avoid leftover files by using temp dir ( #150 )
...
Fixes : #149
2024-11-06 12:52:46 +01:00
Kevin Stillhammer
6f467a02b3
add archive extension to downloaded assets ( #148 )
...
Fixes missing .zip extensions
which breaks on old PowerShell versions
Fixes : #147
2024-11-05 21:21:57 +01:00
Kevin Stillhammer
f3bcaebff5
Update deps ( #121 )
...
Fixes: https://github.com/astral-sh/setup-uv/issues/119
2024-10-15 11:33:59 +00:00
Kevin Stillhammer
8c3a35e468
Only log checksum is valid when it really is ( #97 )
2024-09-21 19:10:22 +00:00
Kevin Stillhammer
abac0ce7b0
Use runner label selfhosted-ubuntu-arm64 ( #96 )
...
Replaces oracle-aarch64 to better express what the runner is used for
2024-09-21 20:19:02 +02:00
Kevin Stillhammer
aeb46491c7
Set tool(-bin) dir and add to PATH ( #87 )
...
Fixes : #83
Fixes : #60
2024-09-21 10:14:36 +02:00
Kevin Stillhammer
8205eab75b
Update version in README from v2 to v3 ( #85 )
2024-09-18 09:34:56 +00:00
Kevin Stillhammer
ce0062aac7
Add support for semver version ranges ( #82 )
...
Closes : #38
2024-09-18 09:29:09 +00:00
Kevin Stillhammer
79fb68ebfe
Fix prettier destroying markdown NOTE ( #80 )
2024-09-17 08:27:37 +02:00
Kevin Stillhammer
9f1f1fece2
Run prettier ( #78 )
2024-09-16 19:33:16 +00:00
Kevin Stillhammer
8d65000ec9
Set the cache-dependency-glob default to **/uv.lock ( #77 )
...
We should aim for a solution with sane defaults that work as most users
would expect it.
The current default leads to a cache that is never invalidated and thus
never updated.
This also mirrors the default behaviors for setup-python which use
`**/requirements.txt`, `**/Pipfile.lock` or `**/poetry.lock`
Also make it clear that the uv cache on the filesystem can be uploaded to the GitHub Actions cache, but they are distinct things.
Also make it clear that the local cache path can be changed without using `enable-cache: true`
2024-09-16 21:08:44 +02:00
Kevin Stillhammer
4456fa154a
Add .idea files to gitignore ( #76 )
2024-09-16 13:05:47 +00:00
Kevin Stillhammer
b463f5b8ca
rename utils/utils.ts to constants.ts ( #59 )
2024-09-07 12:13:50 +00:00
Kevin Stillhammer
417c97acee
Use D:\a\_tmp\setup-uv-cache as default cacheLocalPath on Windows ( #57 )
...
Fixes : #52
2024-09-07 14:11:25 +02:00
Kevin Stillhammer
d9a2b6b6fa
Support a list of cache-dependency-glob ( #41 )
...
Closes : #40
Because of build conflics (forgot to run `npm i` after pulling) I
deleted the `dist`folder to start fresh. Turns out that it still
contained the source maps from the very first commit. I removed the
argument to generate those a long time ago
2024-09-06 14:44:31 +02:00
Kevin Stillhammer
67736b0f01
Always run check-dist check ( #53 )
...
Currently we mark it as a required check and thus prevent automatic PR
merges when only markdown files are contained in the PR
2024-09-06 13:07:34 +02:00
Kevin Stillhammer
79643936e1
Run test build only on ubuntu-latest ( #51 )
...
It is unnecessary to test this on several OS. This is done by the actual
action tests in other jobs.
2024-09-06 09:19:26 +02:00
Kevin Stillhammer
663d8f7082
Fix typo "relaying" in README.md ( #47 )
2024-09-05 09:54:40 -04:00
Kevin Stillhammer
b3cf8231d5
Do not change default version on known checksum update ( #39 )
2024-09-05 13:26:17 +00:00
Kevin Stillhammer
e4d1d0eef8
Rename repo org in examples and urls ( #33 )
2024-09-04 20:09:26 +02:00
Kevin Stillhammer
6a540e2907
Add default-version-update category ( #24 )
...
This way a default version update is not a bugfix in release notes
2024-09-02 15:58:05 +02:00
Kevin Stillhammer
4e90b426ca
Add faq on how to install python ( #17 )
2024-08-28 13:28:02 +02:00
Kevin Stillhammer
c69e1d6616
Add link to example workflow ( #7 )
2024-08-25 16:21:20 +02:00
Kevin Stillhammer
332ac35295
Prune cache before saving
2024-08-24 10:08:12 +02:00
Kevin Stillhammer
6c37ad0dd4
Update deps
2024-08-24 09:28:20 +02:00
Kevin Stillhammer
4b677dce24
Create no-dependency-glob cache key
2024-08-24 09:23:57 +02:00
Kevin Stillhammer
3e3aecd6b6
On windows extracting the zip does not create an intermediate directory
2024-08-24 09:20:02 +02:00
Kevin Stillhammer
4203354a33
Compute correct cacheDependencyPathHash
2024-08-24 09:14:37 +02:00
Kevin Stillhammer
e4c1a1723b
Debug windows directory
2024-08-24 09:12:22 +02:00