5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-17 11:05:59 +00:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Kevin Stillhammer
f0d8d1c5f0 Add faq on how to install python 2024-08-28 13:25:20 +02:00
github-actions[bot]
e9305af4bc chore: update checksums (#14)
Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2024-08-28 08:36:00 +02:00
Kevin Stillhammer
c69e1d6616 Add link to example workflow (#7) 2024-08-25 16:21:20 +02:00
github-actions[bot]
19a0b38226 chore: update checksums (#6)
Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2024-08-25 14:44:51 +02:00
4 changed files with 179 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
## Usage ## Usage
Example workflow will be added later Example workflow in a real world project can be found [here](https://github.com/eifinger/hass-weenect/blob/main/.github/workflows/ci.yml)
### Install specific version ### Install specific version
@@ -115,7 +115,7 @@ The cache will be invalidated if any file matching the glob pattern changes.
The glob matches files relative to the repository root. The glob matches files relative to the repository root.
```yaml ```yaml
- name: Define a custom cache dependency glob - name: Define a cache dependency glob
uses: eifinger/setup-uv@v1 uses: eifinger/setup-uv@v1
with: with:
enable-cache: true enable-cache: true
@@ -123,7 +123,7 @@ The glob matches files relative to the repository root.
``` ```
```yaml ```yaml
- name: Define a custom cache dependency glob - name: Define a cache dependency glob
uses: eifinger/setup-uv@v1 uses: eifinger/setup-uv@v1
with: with:
enable-cache: true enable-cache: true
@@ -162,10 +162,19 @@ A simple example workflow could look like this:
uses: eifinger/setup-uv@v1 uses: eifinger/setup-uv@v1
with: with:
enable-cache: true enable-cache: true
- name: Sync dependencies
run: uv sync
- name: Test - name: Test
run: uv run pytest run: uv run --frozen pytest
```
If you want to have a specific python version installed you can use the command [`uv python install`](https://docs.astral.sh/uv/guides/install-python/):
```yaml
- name: Install the latest version of uv
uses: eifinger/setup-uv@v1
with:
enable-cache: true
- name: Install Python 3.12
run: uv python install 3.12
``` ```
### What is the default version? ### What is the default version?
@@ -177,7 +186,7 @@ If you have to know the version installed for other steps of your workflow you c
```yaml ```yaml
- name: Checkout the repository - name: Checkout the repository
uses: actions/checkout@latest uses: actions/checkout@main
- name: Install the default version of uv - name: Install the default version of uv
id: setup-uv id: setup-uv
uses: eifinger/setup-uv@v1 uses: eifinger/setup-uv@v1

View File

@@ -4,7 +4,7 @@ author: 'eifinger'
inputs: inputs:
version: version:
description: 'The version of uv to install' description: 'The version of uv to install'
default: '0.3.2' default: '0.3.5'
checksum: checksum:
description: 'The checksum of the uv version to install' description: 'The checksum of the uv version to install'
required: false required: false

54
dist/setup/index.js generated vendored
View File

@@ -83845,6 +83845,60 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.KNOWN_CHECKSUMS = void 0; exports.KNOWN_CHECKSUMS = void 0;
// AUTOGENERATED_DO_NOT_EDIT // AUTOGENERATED_DO_NOT_EDIT
exports.KNOWN_CHECKSUMS = { exports.KNOWN_CHECKSUMS = {
'undefined-0.3.5': '7f136b52040652a108a3ad45dc9c9deb94045c73fbc2ea59a11f578faeb55572',
'aarch64-apple-darwin-0.3.5': 'a9ddfd6d9350e6cb93e0e57d679f39a4493b510e5d14d475f8524a5ade1132d8',
'aarch64-unknown-linux-gnu-0.3.5': '30ae840dad58774f0617de8d4a36a1fc9f2ea87a0ff6293f06babe0ddf0d56ae',
'aarch64-unknown-linux-musl-0.3.5': '012b9455d53fb732fc1ec83c0148f87df6e2da15f206e44585577a1a3daef6a5',
'arm-unknown-linux-musleabihf-0.3.5': '88ae64b409bcf91070022d19b9fb0e172e6137dcfbf388840b8ab60c8b8a523f',
'armv7-unknown-linux-gnueabihf-0.3.5': 'ed21de216cb027e443518f7efe4ce12b5f966be836b1e7c2a8612612bff719a3',
'armv7-unknown-linux-musleabihf-0.3.5': '1fcf0ac7f29ffc7f05961a3abfcecc4f25f0d7d6fa78e304a073e03dcc5e6f25',
'i686-pc-windows-msvc-0.3.5': '3607d1495951607e0e04ee763d67733b171146e3003f071894cc83d344b3943c',
'i686-unknown-linux-gnu-0.3.5': '91ef1a96b3bd2780c55bd01b8f7631ff3d70c2956c9ec8e0d651bbcde8210df8',
'i686-unknown-linux-musl-0.3.5': '8b70ff380216770feb7cdf32442e1819eb5fc25e5d161e4b7bf232e33b9e0966',
'powerpc64-unknown-linux-gnu-0.3.5': 'cb9dd4ece47beb2107f71bc36a3b7945640d4316a782778bce10f4c178187e12',
'powerpc64le-unknown-linux-gnu-0.3.5': '343967158a0490afea4ba9f98b932da4a2681d3132b0e98be11f137e21c310f7',
'powerpc64le-unknown-linux-musl-0.3.5': '7c65f135dce64e954b96893f0ac6ecbdbfb2db6b9d43c7c1e3d0d8a980a6ef55',
's390x-unknown-linux-gnu-0.3.5': 'b335ff326e5096a7b76ff13e023948172b2f4d5e0ca306909f439176ecd05a8d',
'x86_64-apple-darwin-0.3.5': '483bd51fdf952e039b715aa95887700e37efbd35eda37e38ecdb07fe136e1e9c',
'x86_64-pc-windows-msvc-0.3.5': '339f3bec736bf392966b5451dedce7f88097bf410168a7c2b559a101e81ffe95',
'x86_64-unknown-linux-gnu-0.3.5': 'a1de10f96dbb75a549159bea5771d2be320c130d233422a327ada653e80967db',
'x86_64-unknown-linux-musl-0.3.5': 'f2b0ec58c2215aa618740a1a66344193f135652b1b8da25b065ae18fa71e7f84',
'undefined-0.3.4': '89b619436021c5d28a680cc4c8002867199f5ad898c6e1c7afcf9f04054ebb0d',
'aarch64-apple-darwin-0.3.4': 'd00391fa2e398d431d0ab62868d3430cb20ae0b6ccea84afa61c4c63252e3086',
'aarch64-unknown-linux-gnu-0.3.4': 'f8b3a8fe20a3d5157ba9a49a45e57b94615a1488ef234377011b605355ec778f',
'aarch64-unknown-linux-musl-0.3.4': '743f179ca7eb1fb4e12852d132923d7f764f27384270cb61b1a9441b61806346',
'arm-unknown-linux-musleabihf-0.3.4': '8b21608c9a5f7f3a2ab329c453cb253173e0e6231e39163a13fa0dee6695aa16',
'armv7-unknown-linux-gnueabihf-0.3.4': '2c9d6172143155f47a10c451ca2f6e8085bd69063268a0a5580be767b951545c',
'armv7-unknown-linux-musleabihf-0.3.4': '9d1b93f687e1c2800dd48eeb6e9dceb6845af473ad9c8981edf234a53e7647dd',
'i686-pc-windows-msvc-0.3.4': '9d164ee3db2ba3903a5993ce36ed93ca6bfa7ca429871829a1791fb27ee8cdbf',
'i686-unknown-linux-gnu-0.3.4': '4b7a066c0f41691933e8a2e92a17ae0ae04853cc0539ee6b1e355bc73dcff6c3',
'i686-unknown-linux-musl-0.3.4': '1bc925e4e94666c6b0ed21a89e61a72abc87549e2b1ab19fc29c7f786a5749dd',
'powerpc64-unknown-linux-gnu-0.3.4': '63f90d3ad9a5fb6926ca799a609825bf838e280ce2d86e39339c4dfe0afe8158',
'powerpc64le-unknown-linux-gnu-0.3.4': '513b36159e8deff8944398322aaf0d2e4e1a39c847419f48b7201f61c6018232',
'powerpc64le-unknown-linux-musl-0.3.4': 'a6c59a23ae3b23d7d17acef707ffe0ac077acd41c4a84941eba74707b4c021e5',
's390x-unknown-linux-gnu-0.3.4': '4c9aa26a2c8a92a2aeb2c3b5663a427cd17b16ee10e82a95ef054fb09826a0b9',
'x86_64-apple-darwin-0.3.4': '70eaaaadb3145e7ba3551ee92559d19a926d165c60ed0c5f22a84940c4bcbf23',
'x86_64-pc-windows-msvc-0.3.4': '32932773c45ee57e87225203b86db8283feb46a99fd53cb09ee17598046e064d',
'x86_64-unknown-linux-gnu-0.3.4': 'd0235c11b43ca285d066bdff63e674f71063c43d398b22590e0c7817f48c59fe',
'x86_64-unknown-linux-musl-0.3.4': 'c93ba9ebfd97440c9936630d5667f5ec53bb54f0dd8a5fc9a297a781aa338747',
'undefined-0.3.3': '40a3283f6a16c73342f5cba24f7c1395f17712dadeb1d87b0e354a331229ac4e',
'aarch64-apple-darwin-0.3.3': 'a8e6593f5f787823de4c0509af030b0327b536903044c77c9e61941e0032def7',
'aarch64-unknown-linux-gnu-0.3.3': 'a0815f3950be714b4d32efacecf32cb33b2857f837fe9cda56b717d69a33851b',
'aarch64-unknown-linux-musl-0.3.3': '47f6794a78e3ae62c27bd19d347b30362f3aa7466eb1767c10bbc5ddd015208e',
'arm-unknown-linux-musleabihf-0.3.3': '90384cd65b755d3e60cbe21c2b991a1ddb03e42649d8598248b782d66fb41135',
'armv7-unknown-linux-gnueabihf-0.3.3': 'bf4e8c2d1137959dc2271190e036f9046ea95e82ef3af948ec9bf6a8e4ed4c45',
'armv7-unknown-linux-musleabihf-0.3.3': '92578e0da2b2fff1002a70d217d54b3b1a37be424bbe91b03aa0ee1ec233d54f',
'i686-pc-windows-msvc-0.3.3': '7184333831c6608f395c600ac2bb98890babf38fcea48eee8a9fe5e3a8c81bcb',
'i686-unknown-linux-gnu-0.3.3': '11f0071666d5dd10255c73a80938eb573d7d080203c3f6b7f13ddbc9054cbad9',
'i686-unknown-linux-musl-0.3.3': 'de74c76c0c03a2a9638276d46c2fae14d732679a011600e5d361c880124a9aef',
'powerpc64-unknown-linux-gnu-0.3.3': '6bd8a0cb576b49a25f57dc3f602f1caa1e37a60c602d0f170809af78fd66c55d',
'powerpc64le-unknown-linux-gnu-0.3.3': 'd9d6db9f3ffcedfd8a29a8f18af3fb09fd639fbdb33c2cb58b2bf5e428942269',
'powerpc64le-unknown-linux-musl-0.3.3': 'cd7d6199b1682d0348b3411f094e653e132a2c78ed39424ebc3278f78b51d0e1',
's390x-unknown-linux-gnu-0.3.3': 'bc941ccd12529957eff13882cc8f2f37b5a47a4ab80ea67ba5444778764efec5',
'x86_64-apple-darwin-0.3.3': 'be1cdcdee3d91402d259c34b756a42beaafe7bb93567bb5d48c7fdcf799e423b',
'x86_64-pc-windows-msvc-0.3.3': '742f3c5aefd0966c38705b0439641c390aef290e8ea007496ac83fcb825203a6',
'x86_64-unknown-linux-gnu-0.3.3': '729da13410ba857c6e258753c4fabcccc39d32801fea7f5149997e9f88b27b3d',
'x86_64-unknown-linux-musl-0.3.3': '8c7a7bf83bbe25bc5e5d7d41cc5f58148a8b577a298cd91ea9173b4e612bafda',
'undefined-0.3.2': '1aadddb260b5a9f3d44f5832a834b55a6fd1573bb657d62759495dcdbe212507', 'undefined-0.3.2': '1aadddb260b5a9f3d44f5832a834b55a6fd1573bb657d62759495dcdbe212507',
'aarch64-apple-darwin-0.3.2': 'a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218', 'aarch64-apple-darwin-0.3.2': 'a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218',
'aarch64-unknown-linux-gnu-0.3.2': '6be360abe140f6818844aa3fdf6a3d004b2337b9c240be77c348bcf1f032e877', 'aarch64-unknown-linux-gnu-0.3.2': '6be360abe140f6818844aa3fdf6a3d004b2337b9c240be77c348bcf1f032e877',

View File

@@ -1,5 +1,113 @@
// AUTOGENERATED_DO_NOT_EDIT // AUTOGENERATED_DO_NOT_EDIT
export const KNOWN_CHECKSUMS: {[key: string]: string} = { export const KNOWN_CHECKSUMS: {[key: string]: string} = {
'undefined-0.3.5':
'7f136b52040652a108a3ad45dc9c9deb94045c73fbc2ea59a11f578faeb55572',
'aarch64-apple-darwin-0.3.5':
'a9ddfd6d9350e6cb93e0e57d679f39a4493b510e5d14d475f8524a5ade1132d8',
'aarch64-unknown-linux-gnu-0.3.5':
'30ae840dad58774f0617de8d4a36a1fc9f2ea87a0ff6293f06babe0ddf0d56ae',
'aarch64-unknown-linux-musl-0.3.5':
'012b9455d53fb732fc1ec83c0148f87df6e2da15f206e44585577a1a3daef6a5',
'arm-unknown-linux-musleabihf-0.3.5':
'88ae64b409bcf91070022d19b9fb0e172e6137dcfbf388840b8ab60c8b8a523f',
'armv7-unknown-linux-gnueabihf-0.3.5':
'ed21de216cb027e443518f7efe4ce12b5f966be836b1e7c2a8612612bff719a3',
'armv7-unknown-linux-musleabihf-0.3.5':
'1fcf0ac7f29ffc7f05961a3abfcecc4f25f0d7d6fa78e304a073e03dcc5e6f25',
'i686-pc-windows-msvc-0.3.5':
'3607d1495951607e0e04ee763d67733b171146e3003f071894cc83d344b3943c',
'i686-unknown-linux-gnu-0.3.5':
'91ef1a96b3bd2780c55bd01b8f7631ff3d70c2956c9ec8e0d651bbcde8210df8',
'i686-unknown-linux-musl-0.3.5':
'8b70ff380216770feb7cdf32442e1819eb5fc25e5d161e4b7bf232e33b9e0966',
'powerpc64-unknown-linux-gnu-0.3.5':
'cb9dd4ece47beb2107f71bc36a3b7945640d4316a782778bce10f4c178187e12',
'powerpc64le-unknown-linux-gnu-0.3.5':
'343967158a0490afea4ba9f98b932da4a2681d3132b0e98be11f137e21c310f7',
'powerpc64le-unknown-linux-musl-0.3.5':
'7c65f135dce64e954b96893f0ac6ecbdbfb2db6b9d43c7c1e3d0d8a980a6ef55',
's390x-unknown-linux-gnu-0.3.5':
'b335ff326e5096a7b76ff13e023948172b2f4d5e0ca306909f439176ecd05a8d',
'x86_64-apple-darwin-0.3.5':
'483bd51fdf952e039b715aa95887700e37efbd35eda37e38ecdb07fe136e1e9c',
'x86_64-pc-windows-msvc-0.3.5':
'339f3bec736bf392966b5451dedce7f88097bf410168a7c2b559a101e81ffe95',
'x86_64-unknown-linux-gnu-0.3.5':
'a1de10f96dbb75a549159bea5771d2be320c130d233422a327ada653e80967db',
'x86_64-unknown-linux-musl-0.3.5':
'f2b0ec58c2215aa618740a1a66344193f135652b1b8da25b065ae18fa71e7f84',
'undefined-0.3.4':
'89b619436021c5d28a680cc4c8002867199f5ad898c6e1c7afcf9f04054ebb0d',
'aarch64-apple-darwin-0.3.4':
'd00391fa2e398d431d0ab62868d3430cb20ae0b6ccea84afa61c4c63252e3086',
'aarch64-unknown-linux-gnu-0.3.4':
'f8b3a8fe20a3d5157ba9a49a45e57b94615a1488ef234377011b605355ec778f',
'aarch64-unknown-linux-musl-0.3.4':
'743f179ca7eb1fb4e12852d132923d7f764f27384270cb61b1a9441b61806346',
'arm-unknown-linux-musleabihf-0.3.4':
'8b21608c9a5f7f3a2ab329c453cb253173e0e6231e39163a13fa0dee6695aa16',
'armv7-unknown-linux-gnueabihf-0.3.4':
'2c9d6172143155f47a10c451ca2f6e8085bd69063268a0a5580be767b951545c',
'armv7-unknown-linux-musleabihf-0.3.4':
'9d1b93f687e1c2800dd48eeb6e9dceb6845af473ad9c8981edf234a53e7647dd',
'i686-pc-windows-msvc-0.3.4':
'9d164ee3db2ba3903a5993ce36ed93ca6bfa7ca429871829a1791fb27ee8cdbf',
'i686-unknown-linux-gnu-0.3.4':
'4b7a066c0f41691933e8a2e92a17ae0ae04853cc0539ee6b1e355bc73dcff6c3',
'i686-unknown-linux-musl-0.3.4':
'1bc925e4e94666c6b0ed21a89e61a72abc87549e2b1ab19fc29c7f786a5749dd',
'powerpc64-unknown-linux-gnu-0.3.4':
'63f90d3ad9a5fb6926ca799a609825bf838e280ce2d86e39339c4dfe0afe8158',
'powerpc64le-unknown-linux-gnu-0.3.4':
'513b36159e8deff8944398322aaf0d2e4e1a39c847419f48b7201f61c6018232',
'powerpc64le-unknown-linux-musl-0.3.4':
'a6c59a23ae3b23d7d17acef707ffe0ac077acd41c4a84941eba74707b4c021e5',
's390x-unknown-linux-gnu-0.3.4':
'4c9aa26a2c8a92a2aeb2c3b5663a427cd17b16ee10e82a95ef054fb09826a0b9',
'x86_64-apple-darwin-0.3.4':
'70eaaaadb3145e7ba3551ee92559d19a926d165c60ed0c5f22a84940c4bcbf23',
'x86_64-pc-windows-msvc-0.3.4':
'32932773c45ee57e87225203b86db8283feb46a99fd53cb09ee17598046e064d',
'x86_64-unknown-linux-gnu-0.3.4':
'd0235c11b43ca285d066bdff63e674f71063c43d398b22590e0c7817f48c59fe',
'x86_64-unknown-linux-musl-0.3.4':
'c93ba9ebfd97440c9936630d5667f5ec53bb54f0dd8a5fc9a297a781aa338747',
'undefined-0.3.3':
'40a3283f6a16c73342f5cba24f7c1395f17712dadeb1d87b0e354a331229ac4e',
'aarch64-apple-darwin-0.3.3':
'a8e6593f5f787823de4c0509af030b0327b536903044c77c9e61941e0032def7',
'aarch64-unknown-linux-gnu-0.3.3':
'a0815f3950be714b4d32efacecf32cb33b2857f837fe9cda56b717d69a33851b',
'aarch64-unknown-linux-musl-0.3.3':
'47f6794a78e3ae62c27bd19d347b30362f3aa7466eb1767c10bbc5ddd015208e',
'arm-unknown-linux-musleabihf-0.3.3':
'90384cd65b755d3e60cbe21c2b991a1ddb03e42649d8598248b782d66fb41135',
'armv7-unknown-linux-gnueabihf-0.3.3':
'bf4e8c2d1137959dc2271190e036f9046ea95e82ef3af948ec9bf6a8e4ed4c45',
'armv7-unknown-linux-musleabihf-0.3.3':
'92578e0da2b2fff1002a70d217d54b3b1a37be424bbe91b03aa0ee1ec233d54f',
'i686-pc-windows-msvc-0.3.3':
'7184333831c6608f395c600ac2bb98890babf38fcea48eee8a9fe5e3a8c81bcb',
'i686-unknown-linux-gnu-0.3.3':
'11f0071666d5dd10255c73a80938eb573d7d080203c3f6b7f13ddbc9054cbad9',
'i686-unknown-linux-musl-0.3.3':
'de74c76c0c03a2a9638276d46c2fae14d732679a011600e5d361c880124a9aef',
'powerpc64-unknown-linux-gnu-0.3.3':
'6bd8a0cb576b49a25f57dc3f602f1caa1e37a60c602d0f170809af78fd66c55d',
'powerpc64le-unknown-linux-gnu-0.3.3':
'd9d6db9f3ffcedfd8a29a8f18af3fb09fd639fbdb33c2cb58b2bf5e428942269',
'powerpc64le-unknown-linux-musl-0.3.3':
'cd7d6199b1682d0348b3411f094e653e132a2c78ed39424ebc3278f78b51d0e1',
's390x-unknown-linux-gnu-0.3.3':
'bc941ccd12529957eff13882cc8f2f37b5a47a4ab80ea67ba5444778764efec5',
'x86_64-apple-darwin-0.3.3':
'be1cdcdee3d91402d259c34b756a42beaafe7bb93567bb5d48c7fdcf799e423b',
'x86_64-pc-windows-msvc-0.3.3':
'742f3c5aefd0966c38705b0439641c390aef290e8ea007496ac83fcb825203a6',
'x86_64-unknown-linux-gnu-0.3.3':
'729da13410ba857c6e258753c4fabcccc39d32801fea7f5149997e9f88b27b3d',
'x86_64-unknown-linux-musl-0.3.3':
'8c7a7bf83bbe25bc5e5d7d41cc5f58148a8b577a298cd91ea9173b4e612bafda',
'undefined-0.3.2': 'undefined-0.3.2':
'1aadddb260b5a9f3d44f5832a834b55a6fd1573bb657d62759495dcdbe212507', '1aadddb260b5a9f3d44f5832a834b55a6fd1573bb657d62759495dcdbe212507',
'aarch64-apple-darwin-0.3.2': 'aarch64-apple-darwin-0.3.2':