mirror of
https://gitea.com/actions/setup-python.git
synced 2025-12-15 11:01:04 +00:00
Compare commits
2 Commits
dependabot
...
1565e1db2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1565e1db2c | ||
|
|
5437d3a38f |
18
.github/workflows/e2e-cache-freethreaded.yml
vendored
18
.github/workflows/e2e-cache-freethreaded.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
|
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
|
||||||
steps:
|
steps:
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0, 3.13.1, 3.13.2]
|
python-version: [3.13.0, 3.13.1, 3.13.2]
|
||||||
steps:
|
steps:
|
||||||
@@ -118,7 +118,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
|
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
|
||||||
steps:
|
steps:
|
||||||
@@ -177,7 +177,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
@@ -205,7 +205,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
@@ -234,7 +234,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
@@ -260,7 +260,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
18
.github/workflows/e2e-cache.yml
vendored
18
.github/workflows/e2e-cache.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version:
|
python-version:
|
||||||
[
|
[
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version:
|
python-version:
|
||||||
['3.10', 'pypy-3.10-v7.x', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13']
|
['3.10', 'pypy-3.10-v7.x', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13']
|
||||||
@@ -129,7 +129,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version:
|
python-version:
|
||||||
[
|
[
|
||||||
@@ -170,7 +170,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version:
|
python-version:
|
||||||
[
|
[
|
||||||
@@ -213,7 +213,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version:
|
python-version:
|
||||||
['3.10', 'pypy-3.10-v7.x', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13']
|
['3.10', 'pypy-3.10-v7.x', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13']
|
||||||
@@ -269,7 +269,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
@@ -297,7 +297,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
@@ -326,7 +326,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
@@ -352,7 +352,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
2
.github/workflows/e2e-tests.yml
vendored
2
.github/workflows/e2e-tests.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
macos-latest,
|
macos-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
6
.github/workflows/test-graalpy.yml
vendored
6
.github/workflows/test-graalpy.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
graalpy:
|
graalpy:
|
||||||
- 'graalpy-22.3'
|
- 'graalpy-22.3'
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
graalpy: ['graalpy22.3', 'graalpy23.0', 'graalpy23.1', 'graalpy24.1']
|
graalpy: ['graalpy22.3', 'graalpy23.0', 'graalpy23.1', 'graalpy24.1']
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
|
os: [ubuntu-latest, macos-latest, macos-13]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Setup GraalPy and check latest
|
- name: Setup GraalPy and check latest
|
||||||
|
|||||||
10
.github/workflows/test-pypy.yml
vendored
10
.github/workflows/test-pypy.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
pypy:
|
pypy:
|
||||||
- 'pypy-2.7'
|
- 'pypy-2.7'
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- macos-15-intel
|
- macos-13
|
||||||
- macos-14
|
- macos-14
|
||||||
- macos-15
|
- macos-15
|
||||||
- windows-2022
|
- windows-2022
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
pypy: ['pypy2.7', 'pypy3.9', 'pypy3.10-nightly', 'pypy3.11']
|
pypy: ['pypy2.7', 'pypy3.9', 'pypy3.10-nightly', 'pypy3.11']
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
@@ -220,7 +220,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|||||||
30
.github/workflows/test-python-freethreaded.yml
vendored
30
.github/workflows/test-python-freethreaded.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -103,7 +103,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -182,7 +182,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -223,7 +223,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -254,7 +254,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -294,7 +294,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -334,7 +334,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -373,7 +373,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -410,7 +410,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -446,7 +446,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -481,7 +481,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: [3.13t, 3.14t-dev]
|
python-version: [3.13t, 3.14t-dev]
|
||||||
steps:
|
steps:
|
||||||
@@ -508,7 +508,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
@@ -535,7 +535,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
|
|||||||
28
.github/workflows/test-python.yml
vendored
28
.github/workflows/test-python.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -212,7 +212,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -262,7 +262,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -296,7 +296,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -346,7 +346,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -396,7 +396,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -441,7 +441,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -478,7 +478,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -514,7 +514,7 @@ jobs:
|
|||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-15-intel,
|
macos-13,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
ubuntu-24.04-arm
|
ubuntu-24.04-arm
|
||||||
]
|
]
|
||||||
@@ -549,7 +549,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
@@ -582,7 +582,7 @@ jobs:
|
|||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
ubuntu-24.04-arm,
|
ubuntu-24.04-arm,
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
macos-15-intel
|
macos-13
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|||||||
2
.licenses/npm/@types/node.dep.yml
generated
2
.licenses/npm/@types/node.dep.yml
generated
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: "@types/node"
|
name: "@types/node"
|
||||||
version: 24.10.1
|
version: 24.1.0
|
||||||
type: npm
|
type: npm
|
||||||
summary: TypeScript definitions for node
|
summary: TypeScript definitions for node
|
||||||
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
||||||
|
|||||||
6
.licenses/npm/undici-types.dep.yml
generated
6
.licenses/npm/undici-types.dep.yml
generated
@@ -1,17 +1,15 @@
|
|||||||
---
|
---
|
||||||
name: undici-types
|
name: undici-types
|
||||||
version: 7.16.0
|
version: 7.8.0
|
||||||
type: npm
|
type: npm
|
||||||
summary: A stand-alone types package for Undici
|
summary: A stand-alone types package for Undici
|
||||||
homepage: https://undici.nodejs.org
|
homepage: https://undici.nodejs.org
|
||||||
license: mit
|
license: mit
|
||||||
licenses:
|
licenses:
|
||||||
- sources: LICENSE
|
- sources: Auto-generated MIT license text
|
||||||
text: |
|
text: |
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) Matteo Collina and Undici contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
in the Software without restriction, including without limitation the rights
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,6 @@ Kivy-Garden==0.1.4
|
|||||||
packaging==20.7
|
packaging==20.7
|
||||||
pdf2image==1.12.1
|
pdf2image==1.12.1
|
||||||
Pygments==2.6.1
|
Pygments==2.6.1
|
||||||
requests==2.32.4
|
requests==2.32.2
|
||||||
urllib3==2.5.0
|
urllib3==2.5.0
|
||||||
xlrd==1.2.0
|
xlrd==1.2.0
|
||||||
@@ -40,7 +40,7 @@ pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3
|
|||||||
|
|
||||||
pywin32-ctypes==0.2.0
|
pywin32-ctypes==0.2.0
|
||||||
|
|
||||||
requests==2.32.4
|
requests==2.32.2
|
||||||
|
|
||||||
urllib3==2.5.0
|
urllib3==2.5.0
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import * as path from 'path';
|
|||||||
import * as semver from 'semver';
|
import * as semver from 'semver';
|
||||||
|
|
||||||
import * as finder from '../src/find-graalpy';
|
import * as finder from '../src/find-graalpy';
|
||||||
import {IGraalPyManifestRelease} from '../src/utils';
|
import {IGraalPyManifestRelease, IS_WINDOWS} from '../src/utils';
|
||||||
|
|
||||||
import manifestData from './data/graalpy.json';
|
import manifestData from './data/graalpy.json';
|
||||||
|
|
||||||
@@ -19,6 +19,9 @@ const architecture = 'x64';
|
|||||||
const toolDir = path.join(__dirname, 'runner', 'tools');
|
const toolDir = path.join(__dirname, 'runner', 'tools');
|
||||||
const tempDir = path.join(__dirname, 'runner', 'temp');
|
const tempDir = path.join(__dirname, 'runner', 'temp');
|
||||||
|
|
||||||
|
/* GraalPy doesn't have a windows release yet */
|
||||||
|
const describeSkipOnWindows = IS_WINDOWS ? describe.skip : describe;
|
||||||
|
|
||||||
describe('parseGraalPyVersion', () => {
|
describe('parseGraalPyVersion', () => {
|
||||||
it.each([
|
it.each([
|
||||||
['graalpy-23', '23'],
|
['graalpy-23', '23'],
|
||||||
@@ -105,7 +108,7 @@ describe('findGraalPyToolCache', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('findGraalPyVersion', () => {
|
describeSkipOnWindows('findGraalPyVersion', () => {
|
||||||
let getBooleanInputSpy: jest.SpyInstance;
|
let getBooleanInputSpy: jest.SpyInstance;
|
||||||
let warningSpy: jest.SpyInstance;
|
let warningSpy: jest.SpyInstance;
|
||||||
let debugSpy: jest.SpyInstance;
|
let debugSpy: jest.SpyInstance;
|
||||||
@@ -355,13 +358,13 @@ describe('findGraalPyVersion', () => {
|
|||||||
it('found and install successfully, pre-release fallback', async () => {
|
it('found and install successfully, pre-release fallback', async () => {
|
||||||
spyCacheDir = jest.spyOn(tc, 'cacheDir');
|
spyCacheDir = jest.spyOn(tc, 'cacheDir');
|
||||||
spyCacheDir.mockImplementation(() =>
|
spyCacheDir.mockImplementation(() =>
|
||||||
path.join(toolDir, 'GraalPy', '24.1', architecture)
|
path.join(toolDir, 'GraalPy', '23.1', architecture)
|
||||||
);
|
);
|
||||||
spyChmodSync = jest.spyOn(fs, 'chmodSync');
|
spyChmodSync = jest.spyOn(fs, 'chmodSync');
|
||||||
spyChmodSync.mockImplementation(() => undefined);
|
spyChmodSync.mockImplementation(() => undefined);
|
||||||
await expect(
|
await expect(
|
||||||
finder.findGraalPyVersion(
|
finder.findGraalPyVersion(
|
||||||
'graalpy24.1',
|
'graalpy23.1',
|
||||||
architecture,
|
architecture,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
@@ -369,7 +372,7 @@ describe('findGraalPyVersion', () => {
|
|||||||
)
|
)
|
||||||
).rejects.toThrow();
|
).rejects.toThrow();
|
||||||
await expect(
|
await expect(
|
||||||
finder.findGraalPyVersion('graalpy24.1', architecture, false, false, true)
|
finder.findGraalPyVersion('graalpy23.1', architecture, false, false, true)
|
||||||
).resolves.toEqual('24.1.0-ea.9');
|
).resolves.toEqual('23.1.0-a.1');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,21 +21,24 @@ const architecture = 'x64';
|
|||||||
const toolDir = path.join(__dirname, 'runner', 'tools');
|
const toolDir = path.join(__dirname, 'runner', 'tools');
|
||||||
const tempDir = path.join(__dirname, 'runner', 'temp');
|
const tempDir = path.join(__dirname, 'runner', 'temp');
|
||||||
|
|
||||||
|
/* GraalPy doesn't have a windows release yet */
|
||||||
|
const describeSkipOnWindows = IS_WINDOWS ? describe.skip : describe;
|
||||||
|
|
||||||
describe('graalpyVersionToSemantic', () => {
|
describe('graalpyVersionToSemantic', () => {
|
||||||
it.each([
|
it.each([
|
||||||
['graalpy-24.1.0-ea.09', '24.1.0-ea.9'],
|
['23.0.0a1', '23.0.0a1'],
|
||||||
['graal-23.0.0', '23.0.0'],
|
['23.0.0', '23.0.0'],
|
||||||
['vm-23.0.x', '23.0.x'],
|
['23.0.x', '23.0.x'],
|
||||||
['graal-23.x', '23.x']
|
['23.x', '23.x']
|
||||||
])('%s -> %s', (input, expected) => {
|
])('%s -> %s', (input, expected) => {
|
||||||
expect(installer.graalPyTagToVersion(input)).toEqual(expected);
|
expect(installer.graalPyTagToVersion(input)).toEqual(expected);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('findRelease', () => {
|
describeSkipOnWindows('findRelease', () => {
|
||||||
const result = JSON.stringify(manifestData);
|
const result = JSON.stringify(manifestData);
|
||||||
const releases = JSON.parse(result) as IGraalPyManifestRelease[];
|
const releases = JSON.parse(result) as IGraalPyManifestRelease[];
|
||||||
const extension = IS_WINDOWS ? 'zip' : 'tar.gz';
|
const extension = 'tar.gz';
|
||||||
const arch = installer.toGraalPyArchitecture(architecture);
|
const arch = installer.toGraalPyArchitecture(architecture);
|
||||||
const platform = installer.toGraalPyPlatform(process.platform);
|
const platform = installer.toGraalPyPlatform(process.platform);
|
||||||
const extensionName = `${platform}-${arch}.${extension}`;
|
const extensionName = `${platform}-${arch}.${extension}`;
|
||||||
@@ -44,8 +47,8 @@ describe('findRelease', () => {
|
|||||||
browser_download_url: `https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-${extensionName}`
|
browser_download_url: `https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-${extensionName}`
|
||||||
};
|
};
|
||||||
const filesRC1: IGraalPyManifestAsset = {
|
const filesRC1: IGraalPyManifestAsset = {
|
||||||
name: `graalpy-24.1.0-ea.09-${extensionName}`,
|
name: `graalpython-23.1.0a1-${extensionName}`,
|
||||||
browser_download_url: `https://github.com/graalvm/graal-languages-ea-builds/releases/download/graalpy-24.1.0-ea.09/graalpy-24.1.0-ea.09-${extensionName}`
|
browser_download_url: `https://github.com/oracle/graalpython/releases/download/graal-23.1.0a1/graalpython-23.1.0a1-${extensionName}`
|
||||||
};
|
};
|
||||||
|
|
||||||
let warningSpy: jest.SpyInstance;
|
let warningSpy: jest.SpyInstance;
|
||||||
@@ -81,15 +84,15 @@ describe('findRelease', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Preview version of GraalPy is found', () => {
|
it('Preview version of GraalPy is found', () => {
|
||||||
const graalpyVersion = installer.graalPyTagToVersion('vm-24.1.0-ea.09');
|
const graalpyVersion = installer.graalPyTagToVersion('vm-23.1.0a1');
|
||||||
expect(
|
expect(
|
||||||
installer.findRelease(releases, graalpyVersion, architecture, false)
|
installer.findRelease(releases, graalpyVersion, architecture, false)
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
foundAsset: {
|
foundAsset: {
|
||||||
name: `graalpy-24.1.0-ea.09-${extensionName}`,
|
name: `graalpython-23.1.0a1-${extensionName}`,
|
||||||
browser_download_url: `https://github.com/graalvm/graal-languages-ea-builds/releases/download/graalpy-24.1.0-ea.09/graalpy-24.1.0-ea.09-${extensionName}`
|
browser_download_url: `https://github.com/oracle/graalpython/releases/download/graal-23.1.0a1/graalpython-23.1.0a1-${extensionName}`
|
||||||
},
|
},
|
||||||
resolvedGraalPyVersion: '24.1.0-ea.9'
|
resolvedGraalPyVersion: '23.1.0-a.1'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -104,7 +107,7 @@ describe('findRelease', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('GraalPy version matches semver (pre-release)', () => {
|
it('GraalPy version matches semver (pre-release)', () => {
|
||||||
const graalpyVersion = '24.1.x';
|
const graalpyVersion = '23.1.x';
|
||||||
expect(
|
expect(
|
||||||
installer.findRelease(releases, graalpyVersion, architecture, false)
|
installer.findRelease(releases, graalpyVersion, architecture, false)
|
||||||
).toBeNull();
|
).toBeNull();
|
||||||
@@ -112,12 +115,12 @@ describe('findRelease', () => {
|
|||||||
installer.findRelease(releases, graalpyVersion, architecture, true)
|
installer.findRelease(releases, graalpyVersion, architecture, true)
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
foundAsset: filesRC1,
|
foundAsset: filesRC1,
|
||||||
resolvedGraalPyVersion: '24.1.0-ea.9'
|
resolvedGraalPyVersion: '23.1.0-a.1'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('installGraalPy', () => {
|
describeSkipOnWindows('installGraalPy', () => {
|
||||||
let tcFind: jest.SpyInstance;
|
let tcFind: jest.SpyInstance;
|
||||||
let warningSpy: jest.SpyInstance;
|
let warningSpy: jest.SpyInstance;
|
||||||
let debugSpy: jest.SpyInstance;
|
let debugSpy: jest.SpyInstance;
|
||||||
@@ -229,20 +232,20 @@ describe('installGraalPy', () => {
|
|||||||
it('found and install GraalPy, pre-release fallback', async () => {
|
it('found and install GraalPy, pre-release fallback', async () => {
|
||||||
spyCacheDir = jest.spyOn(tc, 'cacheDir');
|
spyCacheDir = jest.spyOn(tc, 'cacheDir');
|
||||||
spyCacheDir.mockImplementation(() =>
|
spyCacheDir.mockImplementation(() =>
|
||||||
path.join(toolDir, 'GraalPy', '24.1.0', architecture)
|
path.join(toolDir, 'GraalPy', '23.1.0', architecture)
|
||||||
);
|
);
|
||||||
|
|
||||||
spyChmodSync = jest.spyOn(fs, 'chmodSync');
|
spyChmodSync = jest.spyOn(fs, 'chmodSync');
|
||||||
spyChmodSync.mockImplementation(() => undefined);
|
spyChmodSync.mockImplementation(() => undefined);
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
installer.installGraalPy('24.1.x', architecture, false, undefined)
|
installer.installGraalPy('23.1.x', architecture, false, undefined)
|
||||||
).rejects.toThrow();
|
).rejects.toThrow();
|
||||||
await expect(
|
await expect(
|
||||||
installer.installGraalPy('24.1.x', architecture, true, undefined)
|
installer.installGraalPy('23.1.x', architecture, true, undefined)
|
||||||
).resolves.toEqual({
|
).resolves.toEqual({
|
||||||
installDir: path.join(toolDir, 'GraalPy', '24.1.0', architecture),
|
installDir: path.join(toolDir, 'GraalPy', '23.1.0', architecture),
|
||||||
resolvedGraalPyVersion: '24.1.0-ea.9'
|
resolvedGraalPyVersion: '23.1.0-a.1'
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(spyHttpClient).toHaveBeenCalled();
|
expect(spyHttpClient).toHaveBeenCalled();
|
||||||
|
|||||||
229
dist/cache-save/index.js
vendored
229
dist/cache-save/index.js
vendored
@@ -87714,23 +87714,22 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || (function () {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
var ownKeys = function(o) {
|
if (mod && mod.__esModule) return mod;
|
||||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
var result = {};
|
||||||
var ar = [];
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
__setModuleDefault(result, mod);
|
||||||
return ar;
|
return result;
|
||||||
};
|
};
|
||||||
return ownKeys(o);
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
};
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return function (mod) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
if (mod && mod.__esModule) return mod;
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
var result = {};
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
__setModuleDefault(result, mod);
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
return result;
|
});
|
||||||
};
|
};
|
||||||
})();
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.State = void 0;
|
exports.State = void 0;
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
@@ -87743,39 +87742,41 @@ var State;
|
|||||||
State["CACHE_PATHS"] = "cache-paths";
|
State["CACHE_PATHS"] = "cache-paths";
|
||||||
})(State || (exports.State = State = {}));
|
})(State || (exports.State = State = {}));
|
||||||
class CacheDistributor {
|
class CacheDistributor {
|
||||||
packageManager;
|
|
||||||
cacheDependencyPath;
|
|
||||||
CACHE_KEY_PREFIX = 'setup-python';
|
|
||||||
constructor(packageManager, cacheDependencyPath) {
|
constructor(packageManager, cacheDependencyPath) {
|
||||||
this.packageManager = packageManager;
|
this.packageManager = packageManager;
|
||||||
this.cacheDependencyPath = cacheDependencyPath;
|
this.cacheDependencyPath = cacheDependencyPath;
|
||||||
|
this.CACHE_KEY_PREFIX = 'setup-python';
|
||||||
}
|
}
|
||||||
async handleLoadedCache() { }
|
handleLoadedCache() {
|
||||||
async restoreCache() {
|
return __awaiter(this, void 0, void 0, function* () { });
|
||||||
const { primaryKey, restoreKey } = await this.computeKeys();
|
}
|
||||||
if (primaryKey.endsWith('-')) {
|
restoreCache() {
|
||||||
const file = this.packageManager === 'pip'
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
? `${this.cacheDependencyPath
|
const { primaryKey, restoreKey } = yield this.computeKeys();
|
||||||
.split('\n')
|
if (primaryKey.endsWith('-')) {
|
||||||
.join(',')} or ${constants_1.CACHE_DEPENDENCY_BACKUP_PATH}`
|
const file = this.packageManager === 'pip'
|
||||||
: this.cacheDependencyPath.split('\n').join(',');
|
? `${this.cacheDependencyPath
|
||||||
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`);
|
.split('\n')
|
||||||
}
|
.join(',')} or ${constants_1.CACHE_DEPENDENCY_BACKUP_PATH}`
|
||||||
const cachePath = await this.getCacheGlobalDirectories();
|
: this.cacheDependencyPath.split('\n').join(',');
|
||||||
core.saveState(State.CACHE_PATHS, cachePath);
|
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`);
|
||||||
let matchedKey;
|
}
|
||||||
try {
|
const cachePath = yield this.getCacheGlobalDirectories();
|
||||||
matchedKey = await cache.restoreCache(cachePath, primaryKey, restoreKey);
|
core.saveState(State.CACHE_PATHS, cachePath);
|
||||||
}
|
let matchedKey;
|
||||||
catch (err) {
|
try {
|
||||||
const message = err.message;
|
matchedKey = yield cache.restoreCache(cachePath, primaryKey, restoreKey);
|
||||||
core.info(`[warning]${message}`);
|
}
|
||||||
core.setOutput('cache-hit', false);
|
catch (err) {
|
||||||
return;
|
const message = err.message;
|
||||||
}
|
core.info(`[warning]${message}`);
|
||||||
core.saveState(State.STATE_CACHE_PRIMARY_KEY, primaryKey);
|
core.setOutput('cache-hit', false);
|
||||||
await this.handleLoadedCache();
|
return;
|
||||||
this.handleMatchResult(matchedKey, primaryKey);
|
}
|
||||||
|
core.saveState(State.STATE_CACHE_PRIMARY_KEY, primaryKey);
|
||||||
|
yield this.handleLoadedCache();
|
||||||
|
this.handleMatchResult(matchedKey, primaryKey);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
handleMatchResult(matchedKey, primaryKey) {
|
handleMatchResult(matchedKey, primaryKey) {
|
||||||
if (matchedKey) {
|
if (matchedKey) {
|
||||||
@@ -87826,28 +87827,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || (function () {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
var ownKeys = function(o) {
|
if (mod && mod.__esModule) return mod;
|
||||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
var result = {};
|
||||||
var ar = [];
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
__setModuleDefault(result, mod);
|
||||||
return ar;
|
return result;
|
||||||
};
|
};
|
||||||
return ownKeys(o);
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
};
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return function (mod) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
if (mod && mod.__esModule) return mod;
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
var result = {};
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
__setModuleDefault(result, mod);
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
return result;
|
});
|
||||||
};
|
};
|
||||||
})();
|
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.run = run;
|
exports.run = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
const fs_1 = __importDefault(__nccwpck_require__(9896));
|
const fs_1 = __importDefault(__nccwpck_require__(9896));
|
||||||
@@ -87855,57 +87855,62 @@ const cache_distributor_1 = __nccwpck_require__(2326);
|
|||||||
// Added early exit to resolve issue with slow post action step:
|
// Added early exit to resolve issue with slow post action step:
|
||||||
// - https://github.com/actions/setup-node/issues/878
|
// - https://github.com/actions/setup-node/issues/878
|
||||||
// https://github.com/actions/cache/pull/1217
|
// https://github.com/actions/cache/pull/1217
|
||||||
async function run(earlyExit) {
|
function run(earlyExit) {
|
||||||
try {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const cache = core.getInput('cache');
|
try {
|
||||||
if (cache) {
|
const cache = core.getInput('cache');
|
||||||
await saveCache(cache);
|
if (cache) {
|
||||||
if (earlyExit) {
|
yield saveCache(cache);
|
||||||
process.exit(0);
|
if (earlyExit) {
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
catch (error) {
|
||||||
catch (error) {
|
const err = error;
|
||||||
const err = error;
|
core.setFailed(err.message);
|
||||||
core.setFailed(err.message);
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
async function saveCache(packageManager) {
|
exports.run = run;
|
||||||
const cachePathState = core.getState(cache_distributor_1.State.CACHE_PATHS);
|
function saveCache(packageManager) {
|
||||||
if (!cachePathState) {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
core.warning('Cache paths are empty. Please check the previous logs and make sure that the python version is specified');
|
const cachePathState = core.getState(cache_distributor_1.State.CACHE_PATHS);
|
||||||
return;
|
if (!cachePathState) {
|
||||||
}
|
core.warning('Cache paths are empty. Please check the previous logs and make sure that the python version is specified');
|
||||||
const cachePaths = JSON.parse(cachePathState);
|
return;
|
||||||
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
|
}
|
||||||
if (!isCacheDirectoryExists(cachePaths)) {
|
const cachePaths = JSON.parse(cachePathState);
|
||||||
core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
|
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
|
||||||
return;
|
if (!isCacheDirectoryExists(cachePaths)) {
|
||||||
}
|
core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
|
||||||
const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY);
|
return;
|
||||||
const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY);
|
}
|
||||||
if (!primaryKey) {
|
const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY);
|
||||||
core.warning('Error retrieving key from state.');
|
const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY);
|
||||||
return;
|
if (!primaryKey) {
|
||||||
}
|
core.warning('Error retrieving key from state.');
|
||||||
else if (matchedKey === primaryKey) {
|
return;
|
||||||
// no change in target directories
|
}
|
||||||
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
else if (matchedKey === primaryKey) {
|
||||||
return;
|
// no change in target directories
|
||||||
}
|
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
||||||
let cacheId = 0;
|
return;
|
||||||
try {
|
}
|
||||||
cacheId = await cache.saveCache(cachePaths, primaryKey);
|
let cacheId = 0;
|
||||||
}
|
try {
|
||||||
catch (err) {
|
cacheId = yield cache.saveCache(cachePaths, primaryKey);
|
||||||
const message = err.message;
|
}
|
||||||
core.info(`[warning]${message}`);
|
catch (err) {
|
||||||
return;
|
const message = err.message;
|
||||||
}
|
core.info(`[warning]${message}`);
|
||||||
if (cacheId == -1) {
|
return;
|
||||||
return;
|
}
|
||||||
}
|
if (cacheId == -1) {
|
||||||
core.info(`Cache saved with the key: ${primaryKey}`);
|
return;
|
||||||
|
}
|
||||||
|
core.info(`Cache saved with the key: ${primaryKey}`);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function isCacheDirectoryExists(cacheDirectory) {
|
function isCacheDirectoryExists(cacheDirectory) {
|
||||||
const result = cacheDirectory.reduce((previousValue, currentValue) => {
|
const result = cacheDirectory.reduce((previousValue, currentValue) => {
|
||||||
|
|||||||
2024
dist/setup/index.js
vendored
2024
dist/setup/index.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,7 @@
|
|||||||
- [Hosted tool cache](advanced-usage.md#hosted-tool-cache)
|
- [Hosted tool cache](advanced-usage.md#hosted-tool-cache)
|
||||||
- [Using `setup-python` with a self-hosted runner](advanced-usage.md#using-setup-python-with-a-self-hosted-runner)
|
- [Using `setup-python` with a self-hosted runner](advanced-usage.md#using-setup-python-with-a-self-hosted-runner)
|
||||||
- [Windows](advanced-usage.md#windows)
|
- [Windows](advanced-usage.md#windows)
|
||||||
- [Ubuntu](advanced-usage.md#Ubuntu)
|
- [Linux](advanced-usage.md#linux)
|
||||||
- [macOS](advanced-usage.md#macos)
|
- [macOS](advanced-usage.md#macos)
|
||||||
- [Using `setup-python` on GHES](advanced-usage.md#using-setup-python-on-ghes)
|
- [Using `setup-python` on GHES](advanced-usage.md#using-setup-python-on-ghes)
|
||||||
- [Allow pre-releases](advanced-usage.md#allow-pre-releases)
|
- [Allow pre-releases](advanced-usage.md#allow-pre-releases)
|
||||||
@@ -578,9 +578,9 @@ If you have a supported self-hosted runner and you would like to use `setup-pyth
|
|||||||
|
|
||||||
>If you are experiencing problems while configuring Python on your self-hosted runner, turn on [step debugging](https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs) to see additional logs.
|
>If you are experiencing problems while configuring Python on your self-hosted runner, turn on [step debugging](https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs) to see additional logs.
|
||||||
|
|
||||||
### Ubuntu
|
### Linux
|
||||||
|
|
||||||
By default, the runner downloads and installs tools into the folder set up by `RUNNER_TOOL_CACHE` environment variable. The environment variable called `AGENT_TOOLSDIRECTORY` can be set to change this location for Ubuntu self-hosted runners:
|
By default, the runner downloads and installs tools into the folder set up by `RUNNER_TOOL_CACHE` environment variable. The environment variable called `AGENT_TOOLSDIRECTORY` can be set to change this location for Linux self-hosted runners:
|
||||||
- In the same shell that your runner is using, type `export AGENT_TOOLSDIRECTORY=/path/to/folder`.
|
- In the same shell that your runner is using, type `export AGENT_TOOLSDIRECTORY=/path/to/folder`.
|
||||||
- More permanent way of setting the environment variable is to create an `.env` file in the same directory as your runner and to add `AGENT_TOOLSDIRECTORY=/path/to/folder`. This ensures the variable is always set if your runner is configured as a service.
|
- More permanent way of setting the environment variable is to create an `.env` file in the same directory as your runner and to add `AGENT_TOOLSDIRECTORY=/path/to/folder`. This ensures the variable is always set if your runner is configured as a service.
|
||||||
|
|
||||||
|
|||||||
326
package-lock.json
generated
326
package-lock.json
generated
@@ -21,20 +21,20 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "^24.10.1",
|
"@types/node": "^24.1.0",
|
||||||
"@types/semver": "^7.7.0",
|
"@types/semver": "^7.7.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
||||||
"@typescript-eslint/parser": "^5.54.0",
|
"@typescript-eslint/parser": "^5.54.0",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-jest": "^29.2.1",
|
"eslint-plugin-jest": "^27.9.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-circus": "^29.7.0",
|
"jest-circus": "^29.7.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.5.3",
|
||||||
"ts-jest": "^29.3.2",
|
"ts-jest": "^29.3.2",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.0.0"
|
"node": ">=24.0.0"
|
||||||
@@ -365,7 +365,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz",
|
||||||
"integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==",
|
"integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.2.0",
|
"@ampproject/remapping": "^2.2.0",
|
||||||
"@babel/code-frame": "^7.22.13",
|
"@babel/code-frame": "^7.22.13",
|
||||||
@@ -834,20 +833,16 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@eslint-community/eslint-utils": {
|
"node_modules/@eslint-community/eslint-utils": {
|
||||||
"version": "4.9.0",
|
"version": "4.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
|
||||||
"integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==",
|
"integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint-visitor-keys": "^3.4.3"
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
|
||||||
"url": "https://opencollective.com/eslint"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
||||||
}
|
}
|
||||||
@@ -1601,12 +1596,12 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "24.10.1",
|
"version": "24.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz",
|
||||||
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
|
"integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.16.0"
|
"undici-types": "~7.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node-fetch": {
|
"node_modules/@types/node-fetch": {
|
||||||
@@ -1675,7 +1670,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz",
|
||||||
"integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==",
|
"integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/regexpp": "^4.4.0",
|
"@eslint-community/regexpp": "^4.4.0",
|
||||||
"@typescript-eslint/scope-manager": "5.62.0",
|
"@typescript-eslint/scope-manager": "5.62.0",
|
||||||
@@ -1710,7 +1704,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",
|
||||||
"integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==",
|
"integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "5.62.0",
|
"@typescript-eslint/scope-manager": "5.62.0",
|
||||||
"@typescript-eslint/types": "5.62.0",
|
"@typescript-eslint/types": "5.62.0",
|
||||||
@@ -1733,42 +1726,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/project-service": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-Ne4CTZyRh1BecBf84siv42wv5vQvVmgtk8AuiEffKTUo3DrBaGYZueJSxxBZ8fjk/N3DrgChH4TOdIOwOwiqqw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/tsconfig-utils": "^8.48.0",
|
|
||||||
"@typescript-eslint/types": "^8.48.0",
|
|
||||||
"debug": "^4.3.4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": ">=4.8.4 <6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/project-service/node_modules/@typescript-eslint/types": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "5.62.0",
|
"version": "5.62.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",
|
||||||
@@ -1786,23 +1743,6 @@
|
|||||||
"url": "https://opencollective.com/typescript-eslint"
|
"url": "https://opencollective.com/typescript-eslint"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/tsconfig-utils": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-WNebjBdFdyu10sR1M4OXTt2OkMd5KWIL+LLfeH9KhgP+jzfDV/LI3eXzwJ1s9+Yc0Kzo2fQCdY/OpdusCMmh6w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": ">=4.8.4 <6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "5.62.0",
|
"version": "5.62.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz",
|
||||||
@@ -1945,7 +1885,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
|
||||||
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
|
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"acorn": "bin/acorn"
|
"acorn": "bin/acorn"
|
||||||
},
|
},
|
||||||
@@ -2231,7 +2170,6 @@
|
|||||||
"url": "https://github.com/sponsors/ai"
|
"url": "https://github.com/sponsors/ai"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"caniuse-lite": "^1.0.30001541",
|
"caniuse-lite": "^1.0.30001541",
|
||||||
"electron-to-chromium": "^1.4.535",
|
"electron-to-chromium": "^1.4.535",
|
||||||
@@ -2704,7 +2642,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
|
||||||
"integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
|
"integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.2.0",
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@eslint-community/regexpp": "^4.6.1",
|
"@eslint-community/regexpp": "^4.6.1",
|
||||||
@@ -2787,20 +2724,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-jest": {
|
"node_modules/eslint-plugin-jest": {
|
||||||
"version": "29.2.1",
|
"version": "27.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-29.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz",
|
||||||
"integrity": "sha512-0WLIezrIxitUGbjMIGwznVzSIp0uFJV0PZ2fiSvpyVcxe+QMXKUt7MRhUpzdbctnnLwiOTOFkACplgB0wAglFw==",
|
"integrity": "sha512-QIT7FH7fNmd9n4se7FFKHbsLKGQiw885Ds6Y/sxKgCZ6natwCsXdgPOADnYVxN2QrRweF0FZWbJ6S7Rsn7llug==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/utils": "^8.0.0"
|
"@typescript-eslint/utils": "^5.10.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^20.12.0 || ^22.0.0 || >=24.0.0"
|
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
"@typescript-eslint/eslint-plugin": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
||||||
"eslint": "^8.57.0 || ^9.0.0",
|
"eslint": "^7.0.0 || ^8.0.0",
|
||||||
"jest": "*"
|
"jest": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
@@ -2812,147 +2748,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/scope-manager": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-uGSSsbrtJrLduti0Q1Q9+BF1/iFKaxGoQwjWOIVNJv0o6omrdyR8ct37m4xIl5Zzpkp69Kkmvom7QFTtue89YQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "8.48.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "8.48.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/types": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/typescript-estree": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-ljHab1CSO4rGrQIAyizUS6UGHHCiAYhbfcIZ1zVJr5nMryxlXMVWS3duFPSKvSUbFPwkXMFk1k0EMIjub4sRRQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/project-service": "8.48.0",
|
|
||||||
"@typescript-eslint/tsconfig-utils": "8.48.0",
|
|
||||||
"@typescript-eslint/types": "8.48.0",
|
|
||||||
"@typescript-eslint/visitor-keys": "8.48.0",
|
|
||||||
"debug": "^4.3.4",
|
|
||||||
"minimatch": "^9.0.4",
|
|
||||||
"semver": "^7.6.0",
|
|
||||||
"tinyglobby": "^0.2.15",
|
|
||||||
"ts-api-utils": "^2.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": ">=4.8.4 <6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/utils": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-yTJO1XuGxCsSfIVt1+1UrLHtue8xz16V8apzPYI06W0HbEbEWHxHXgZaAgavIkoh+GeV6hKKd5jm0sS6OYxWXQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@eslint-community/eslint-utils": "^4.7.0",
|
|
||||||
"@typescript-eslint/scope-manager": "8.48.0",
|
|
||||||
"@typescript-eslint/types": "8.48.0",
|
|
||||||
"@typescript-eslint/typescript-estree": "8.48.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"eslint": "^8.57.0 || ^9.0.0",
|
|
||||||
"typescript": ">=4.8.4 <6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/visitor-keys": {
|
|
||||||
"version": "8.48.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.48.0.tgz",
|
|
||||||
"integrity": "sha512-T0XJMaRPOH3+LBbAfzR2jalckP1MSG/L9eUtY0DEzUyVaXJ/t6zN0nR7co5kz0Jko/nkSYCBRkz1djvjajVTTg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "8.48.0",
|
|
||||||
"eslint-visitor-keys": "^4.2.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/typescript-eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/brace-expansion": {
|
|
||||||
"version": "2.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
|
||||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"balanced-match": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/eslint-visitor-keys": {
|
|
||||||
"version": "4.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
|
||||||
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://opencollective.com/eslint"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-jest/node_modules/minimatch": {
|
|
||||||
"version": "9.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
|
||||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"brace-expansion": "^2.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=16 || 14 >=14.17"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-node": {
|
"node_modules/eslint-plugin-node": {
|
||||||
"version": "11.1.0",
|
"version": "11.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz",
|
||||||
@@ -3894,7 +3689,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
|
||||||
"integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
|
"integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/core": "^29.7.0",
|
"@jest/core": "^29.7.0",
|
||||||
"@jest/types": "^29.6.3",
|
"@jest/types": "^29.6.3",
|
||||||
@@ -5022,9 +4816,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "3.6.2",
|
"version": "3.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
|
||||||
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
|
"integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -5498,55 +5292,6 @@
|
|||||||
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
|
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/tinyglobby": {
|
|
||||||
"version": "0.2.15",
|
|
||||||
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
|
||||||
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"fdir": "^6.5.0",
|
|
||||||
"picomatch": "^4.0.3"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/SuperchupuDev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tinyglobby/node_modules/fdir": {
|
|
||||||
"version": "6.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
|
||||||
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"picomatch": "^3 || ^4"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"picomatch": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tinyglobby/node_modules/picomatch": {
|
|
||||||
"version": "4.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
|
|
||||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"peer": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tmpl": {
|
"node_modules/tmpl": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
|
||||||
@@ -5570,19 +5315,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||||
},
|
},
|
||||||
"node_modules/ts-api-utils": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18.12"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": ">=4.8.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ts-jest": {
|
"node_modules/ts-jest": {
|
||||||
"version": "29.3.2",
|
"version": "29.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.2.tgz",
|
||||||
@@ -5714,12 +5446,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.9.3",
|
"version": "5.4.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
|
||||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
"integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
@@ -5741,9 +5471,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
"version": "7.16.0",
|
"version": "7.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
|
||||||
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
|
"integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/update-browserslist-db": {
|
"node_modules/update-browserslist-db": {
|
||||||
|
|||||||
@@ -40,19 +40,19 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "^24.10.1",
|
"@types/node": "^24.1.0",
|
||||||
"@types/semver": "^7.7.0",
|
"@types/semver": "^7.7.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
||||||
"@typescript-eslint/parser": "^5.54.0",
|
"@typescript-eslint/parser": "^5.54.0",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-jest": "^29.2.1",
|
"eslint-plugin-jest": "^27.9.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-circus": "^29.7.0",
|
"jest-circus": "^29.7.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.5.3",
|
||||||
"ts-jest": "^29.3.2",
|
"ts-jest": "^29.3.2",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as graalpyInstall from './install-graalpy';
|
import * as graalpyInstall from './install-graalpy';
|
||||||
import {IS_WINDOWS, validateVersion, IGraalPyManifestRelease} from './utils';
|
import {
|
||||||
|
IS_WINDOWS,
|
||||||
|
validateVersion,
|
||||||
|
IGraalPyManifestRelease,
|
||||||
|
getBinaryDirectory
|
||||||
|
} from './utils';
|
||||||
|
|
||||||
import * as semver from 'semver';
|
import * as semver from 'semver';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
@@ -57,8 +62,11 @@ export async function findGraalPyVersion(
|
|||||||
const pipDir = IS_WINDOWS ? 'Scripts' : 'bin';
|
const pipDir = IS_WINDOWS ? 'Scripts' : 'bin';
|
||||||
const _binDir = path.join(installDir, pipDir);
|
const _binDir = path.join(installDir, pipDir);
|
||||||
const binaryExtension = IS_WINDOWS ? '.exe' : '';
|
const binaryExtension = IS_WINDOWS ? '.exe' : '';
|
||||||
const pythonPath = path.join(_binDir, `python${binaryExtension}`);
|
const pythonPath = path.join(
|
||||||
const pythonLocation = path.join(installDir, 'bin');
|
IS_WINDOWS ? installDir : _binDir,
|
||||||
|
`python${binaryExtension}`
|
||||||
|
);
|
||||||
|
const pythonLocation = getBinaryDirectory(installDir);
|
||||||
if (updateEnvironment) {
|
if (updateEnvironment) {
|
||||||
core.exportVariable('pythonLocation', installDir);
|
core.exportVariable('pythonLocation', installDir);
|
||||||
// https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
|
// https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import {
|
|||||||
IGraalPyManifestRelease,
|
IGraalPyManifestRelease,
|
||||||
createSymlinkInFolder,
|
createSymlinkInFolder,
|
||||||
isNightlyKeyword,
|
isNightlyKeyword,
|
||||||
|
getBinaryDirectory,
|
||||||
getNextPageUrl
|
getNextPageUrl
|
||||||
} from './utils';
|
} from './utils';
|
||||||
|
|
||||||
@@ -63,11 +64,7 @@ export async function installGraalPy(
|
|||||||
const graalpyPath = await tc.downloadTool(downloadUrl, undefined, AUTH);
|
const graalpyPath = await tc.downloadTool(downloadUrl, undefined, AUTH);
|
||||||
|
|
||||||
core.info('Extracting downloaded archive...');
|
core.info('Extracting downloaded archive...');
|
||||||
if (IS_WINDOWS) {
|
downloadDir = await tc.extractTar(graalpyPath);
|
||||||
downloadDir = await tc.extractZip(graalpyPath);
|
|
||||||
} else {
|
|
||||||
downloadDir = await tc.extractTar(graalpyPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
// root folder in archive can have unpredictable name so just take the first folder
|
// root folder in archive can have unpredictable name so just take the first folder
|
||||||
// downloadDir is unique folder under TEMP and can't contain any other folders
|
// downloadDir is unique folder under TEMP and can't contain any other folders
|
||||||
@@ -84,7 +81,7 @@ export async function installGraalPy(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const binaryPath = path.join(installDir, 'bin');
|
const binaryPath = getBinaryDirectory(installDir);
|
||||||
await createGraalPySymlink(binaryPath, resolvedGraalPyVersion);
|
await createGraalPySymlink(binaryPath, resolvedGraalPyVersion);
|
||||||
await installPip(binaryPath);
|
await installPip(binaryPath);
|
||||||
|
|
||||||
@@ -118,9 +115,6 @@ export async function getAvailableGraalPyVersions() {
|
|||||||
headers.authorization = AUTH;
|
headers.authorization = AUTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
Get releases first.
|
|
||||||
*/
|
|
||||||
let url: string | null =
|
let url: string | null =
|
||||||
'https://api.github.com/repos/oracle/graalpython/releases';
|
'https://api.github.com/repos/oracle/graalpython/releases';
|
||||||
const result: IGraalPyManifestRelease[] = [];
|
const result: IGraalPyManifestRelease[] = [];
|
||||||
@@ -136,23 +130,6 @@ export async function getAvailableGraalPyVersions() {
|
|||||||
url = getNextPageUrl(response);
|
url = getNextPageUrl(response);
|
||||||
} while (url);
|
} while (url);
|
||||||
|
|
||||||
/*
|
|
||||||
Add pre-release builds.
|
|
||||||
*/
|
|
||||||
url =
|
|
||||||
'https://api.github.com/repos/graalvm/graal-languages-ea-builds/releases';
|
|
||||||
do {
|
|
||||||
const response: ifm.TypedResponse<IGraalPyManifestRelease[]> =
|
|
||||||
await http.getJson(url, headers);
|
|
||||||
if (!response.result) {
|
|
||||||
throw new Error(
|
|
||||||
`Unable to retrieve the list of available GraalPy versions from '${url}'`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
result.push(...response.result);
|
|
||||||
url = getNextPageUrl(response);
|
|
||||||
} while (url);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -198,8 +175,7 @@ async function installPip(pythonLocation: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function graalPyTagToVersion(tag: string) {
|
export function graalPyTagToVersion(tag: string) {
|
||||||
const versionPattern =
|
const versionPattern = /.*-(\d+\.\d+\.\d+(?:\.\d+)?)((?:a|b|rc))?(\d*)?/;
|
||||||
/.*-(\d+\.\d+\.\d+(?:\.\d+)?)(?:-((?:ea|a|b|rc))\.0*(\d+))?/;
|
|
||||||
const match = tag.match(versionPattern);
|
const match = tag.match(versionPattern);
|
||||||
if (match && match[2]) {
|
if (match && match[2]) {
|
||||||
return `${match[1]}-${match[2]}.${match[3]}`;
|
return `${match[1]}-${match[2]}.${match[3]}`;
|
||||||
@@ -275,11 +251,10 @@ export function findAsset(
|
|||||||
) {
|
) {
|
||||||
const graalpyArch = toGraalPyArchitecture(architecture);
|
const graalpyArch = toGraalPyArchitecture(architecture);
|
||||||
const graalpyPlatform = toGraalPyPlatform(platform);
|
const graalpyPlatform = toGraalPyPlatform(platform);
|
||||||
const graalpyExt = platform == 'win32' ? 'zip' : 'tar.gz';
|
|
||||||
const found = item.assets.filter(
|
const found = item.assets.filter(
|
||||||
file =>
|
file =>
|
||||||
file.name.startsWith('graalpy') &&
|
file.name.startsWith('graalpy') &&
|
||||||
file.name.endsWith(`-${graalpyPlatform}-${graalpyArch}.${graalpyExt}`)
|
file.name.endsWith(`-${graalpyPlatform}-${graalpyArch}.tar.gz`)
|
||||||
);
|
);
|
||||||
/*
|
/*
|
||||||
In the future there could be more variants of GraalPy for a single release. Pick the shortest name, that one is the most likely to be the primary variant.
|
In the future there could be more variants of GraalPy for a single release. Pick the shortest name, that one is the most likely to be the primary variant.
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ export function getVersionInputFromFile(versionFile: string): string[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the directory containing interpreter binary from installation directory of PyPy
|
* Get the directory containing interpreter binary from installation directory of PyPy or GraalPy
|
||||||
* - On Linux and macOS, the Python interpreter is in 'bin'.
|
* - On Linux and macOS, the Python interpreter is in 'bin'.
|
||||||
* - On Windows, it is in the installation root.
|
* - On Windows, it is in the installation root.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Basic Options */
|
/* Basic Options */
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
// "incremental": true, /* Enable incremental compilation */
|
||||||
"target": "ES2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
// "checkJs": true, /* Report errors in .js files. */
|
||||||
|
|||||||
Reference in New Issue
Block a user