Skip to content

Commit 0e5347a

Browse files
committed
[GR-53804] Update versions in docs and github actions
PullRequest: graalpython/3325
2 parents d2ed63b + 4425930 commit 0e5347a

17 files changed

+1468
-818
lines changed

.github/workflows/build-act-wheels.yml

Lines changed: 577 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/build-linux-aarch64-wheels.yml

Lines changed: 111 additions & 117 deletions
Large diffs are not rendered by default.

.github/workflows/build-linux-amd64-wheels.yml

Lines changed: 408 additions & 222 deletions
Large diffs are not rendered by default.

.github/workflows/build-macos-aarch64-wheels.yml

Lines changed: 123 additions & 179 deletions
Large diffs are not rendered by default.

.github/workflows/build-macos-amd64-wheels.yml

Lines changed: 123 additions & 179 deletions
Large diffs are not rendered by default.

.github/workflows/build-repository.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if_no_artifact_found: warn
4848
allow_forks: 'false'
4949
- name: Set up Python
50-
uses: actions/setup-python@v4
50+
uses: actions/setup-python@v5
5151
with:
5252
python-version: '3.10'
5353
- name: Create repository

.github/workflows/build-windows-amd64-wheels.yml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ name: build-windows-amd64-wheels
1212
required: false
1313
jobs:
1414
numpy-windows-amd64:
15-
runs-on:
16-
- self-hosted
17-
- windows
18-
- X64
15+
runs-on: windows-latest
1916
if: ${{ !cancelled() && (inputs.name == '' || inputs.name == 'numpy') }}
2017
steps:
2118
- uses: ilammy/msvc-dev-cmd@v1
@@ -24,7 +21,7 @@ jobs:
2421
Invoke-WebRequest https://kumisystems.dl.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-7-bin.zip -OutFile patch.zip
2522
Expand-Archive patch.zip -DestinationPath ../patch -Force
2623
- name: Checkout
27-
uses: actions/checkout@v3
24+
uses: actions/checkout@main
2825
- name: Setup custom GraalPy
2926
if: inputs.graalpy != ''
3027
run: |-
@@ -35,10 +32,10 @@ jobs:
3532
graalpy/bin/graalpy.exe -s -m ensurepip
3633
graalpy/bin/graalpy.exe -m pip install wheel
3734
- name: Setup GraalPy
38-
uses: actions/setup-python@main
35+
uses: actions/setup-python@v5
3936
if: inputs.graalpy == ''
4037
with:
41-
python-version: graalpy23.1
38+
python-version: graalpy24.0
4239
- name: Setup local GraalPy venv
4340
if: inputs.graalpy == ''
4441
run: python -m venv graalpy
@@ -47,21 +44,14 @@ jobs:
4744
$env:PIP_FIND_LINKS=$PWD
4845
$env:PATH+=";$PWD\graalpy\bin;$PWD\graalpy\Scripts;$PWD\..\patch\bin"
4946
graalpy/bin/graalpy -m pip wheel --find-links $PWD numpy
50-
graalpy/bin/graalpy -m pip wheel --find-links $PWD numpy==1.21.6
51-
graalpy/bin/graalpy -m pip wheel --find-links $PWD numpy==1.22.4
52-
graalpy/bin/graalpy -m pip wheel --find-links $PWD numpy==1.23.1
53-
graalpy/bin/graalpy -m pip wheel --find-links $PWD numpy==1.23.4
5447
- name: Store wheels
55-
uses: umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
48+
uses: actions/upload-artifact@main
5649
with:
5750
name: numpy-windows-amd64
5851
path: numpy*.whl
5952
if-no-files-found: error
6053
PyYAML-windows-amd64:
61-
runs-on:
62-
- self-hosted
63-
- windows
64-
- X64
54+
runs-on: windows-latest
6555
needs: numpy-windows-amd64
6656
if: ${{ !cancelled() && (inputs.name == '' || inputs.name == 'PyYAML') }}
6757
steps:
@@ -71,7 +61,7 @@ jobs:
7161
Invoke-WebRequest https://kumisystems.dl.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-7-bin.zip -OutFile patch.zip
7262
Expand-Archive patch.zip -DestinationPath ../patch -Force
7363
- name: Checkout
74-
uses: actions/checkout@v3
64+
uses: actions/checkout@main
7565
- name: Setup custom GraalPy
7666
if: inputs.graalpy != ''
7767
run: |-
@@ -82,15 +72,15 @@ jobs:
8272
graalpy/bin/graalpy.exe -s -m ensurepip
8373
graalpy/bin/graalpy.exe -m pip install wheel
8474
- name: Setup GraalPy
85-
uses: actions/setup-python@main
75+
uses: actions/setup-python@v5
8676
if: inputs.graalpy == ''
8777
with:
88-
python-version: graalpy23.1
78+
python-version: graalpy24.0
8979
- name: Setup local GraalPy venv
9080
if: inputs.graalpy == ''
9181
run: python -m venv graalpy
9282
- name: Download artifacts from numpy
93-
uses: actions/download-artifact@v3
83+
uses: actions/download-artifact@main
9484
continue-on-error: true
9585
with:
9686
name: numpy-windows-amd64
@@ -100,16 +90,13 @@ jobs:
10090
$env:PATH+=";$PWD\graalpy\bin;$PWD\graalpy\Scripts;$PWD\..\patch\bin"
10191
graalpy/bin/graalpy -m pip wheel --find-links $PWD PyYAML
10292
- name: Store wheels
103-
uses: umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
93+
uses: actions/upload-artifact@main
10494
with:
10595
name: PyYAML-windows-amd64
10696
path: PyYAML*.whl
10797
if-no-files-found: error
10898
ujson-windows-amd64:
109-
runs-on:
110-
- self-hosted
111-
- windows
112-
- X64
99+
runs-on: windows-latest
113100
needs: PyYAML-windows-amd64
114101
if: ${{ !cancelled() && (inputs.name == '' || inputs.name == 'ujson') }}
115102
steps:
@@ -119,7 +106,7 @@ jobs:
119106
Invoke-WebRequest https://kumisystems.dl.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-7-bin.zip -OutFile patch.zip
120107
Expand-Archive patch.zip -DestinationPath ../patch -Force
121108
- name: Checkout
122-
uses: actions/checkout@v3
109+
uses: actions/checkout@main
123110
- name: Setup custom GraalPy
124111
if: inputs.graalpy != ''
125112
run: |-
@@ -130,15 +117,15 @@ jobs:
130117
graalpy/bin/graalpy.exe -s -m ensurepip
131118
graalpy/bin/graalpy.exe -m pip install wheel
132119
- name: Setup GraalPy
133-
uses: actions/setup-python@main
120+
uses: actions/setup-python@v5
134121
if: inputs.graalpy == ''
135122
with:
136-
python-version: graalpy23.1
123+
python-version: graalpy24.0
137124
- name: Setup local GraalPy venv
138125
if: inputs.graalpy == ''
139126
run: python -m venv graalpy
140127
- name: Download artifacts from PyYAML
141-
uses: actions/download-artifact@v3
128+
uses: actions/download-artifact@main
142129
continue-on-error: true
143130
with:
144131
name: PyYAML-windows-amd64
@@ -148,7 +135,7 @@ jobs:
148135
$env:PATH+=";$PWD\graalpy\bin;$PWD\graalpy\Scripts;$PWD\..\patch\bin"
149136
graalpy/bin/graalpy -m pip wheel --find-links $PWD ujson
150137
- name: Store wheels
151-
uses: umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
138+
uses: actions/upload-artifact@main
152139
with:
153140
name: ujson-windows-amd64
154141
path: ujson*.whl

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ graalpython/graalpy-maven-plugin/target
9090
graalpython/graalpy-archetype-polyglot-app/target
9191
graalpython/graalpy-archetype-polyglot-app/target
9292
pom-mx.xml
93+
.venv

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ Refer to our [embedding documentation](https://www.graalvm.org/latest/reference-
5252
<dependency>
5353
<groupId>org.graalvm.polyglot</groupId>
5454
<artifactId>polyglot</artifactId>
55-
<version>23.1.2</version>
55+
<version>24.0.0</version>
5656
</dependency>
5757
<dependency>
5858
<groupId>org.graalvm.polyglot</groupId>
5959
<artifactId>python</artifactId>
60-
<version>23.1.2</version>
60+
<version>24.0.0</version>
6161
<type>pom</type>
6262
</dependency>
6363
```
6464

6565
* Gradle
6666
```kotlin
67-
implementation("org.graalvm.polyglot:polyglot:23.1.2")
68-
implementation("org.graalvm.polyglot:python:23.1.2")
67+
implementation("org.graalvm.polyglot:polyglot:24.0.0")
68+
implementation("org.graalvm.polyglot:python:24.0.0")
6969
```
7070

7171
</details>
@@ -83,12 +83,12 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
8383
* Linux
8484

8585
The easiest way to install GraalPy on Linux is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
86-
To install version 23.1.2 using Pyenv, run the following commands:
86+
To install version 24.0.0 using Pyenv, run the following commands:
8787
```bash
88-
pyenv install graalpy-23.1.2
88+
pyenv install graalpy-24.0.0
8989
```
9090
```bash
91-
pyenv shell graalpy-23.1.2
91+
pyenv shell graalpy-24.0.0
9292
```
9393

9494
Alternatively, you can download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases).
@@ -99,12 +99,12 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
9999
* macOS
100100

101101
The easiest way to install GraalPy on macOS is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
102-
To install version 23.1.2 using Pyenv, run the following commands:
102+
To install version 24.0.0 using Pyenv, run the following commands:
103103
```bash
104-
pyenv install graalpy-23.1.2
104+
pyenv install graalpy-24.0.0
105105
```
106106
```bash
107-
pyenv shell graalpy-23.1.2
107+
pyenv shell graalpy-24.0.0
108108
```
109109
Alternatively, you can download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases).
110110

@@ -115,7 +115,7 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
115115
```
116116
For example:
117117
```bash
118-
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-23.1.2
118+
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-24.0.0
119119
```
120120
3. Uncompress the file and update your `PATH` environment variable to include to the _graalpy-XX.Y.Z-macos-amd64/bin_ (or _graalpy-XX.Y.Z-macos-aarch64/bin_) directory.
121121

@@ -136,7 +136,7 @@ The _setup-python_ action supports GraalPy:
136136
- name: Setup GraalPy
137137
uses: actions/setup-python@v5
138138
with:
139-
python-version: graalpy # or graalpy23.1 to pin a version
139+
python-version: graalpy # or graalpy24.0 to pin a version
140140
```
141141

142142
</details>
@@ -163,7 +163,7 @@ To run Jython scripts, you need to use a GraalPy distribution running on the JVM
163163
```
164164
For example:
165165
```bash
166-
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-23.1.2
166+
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-24.0.0
167167
```
168168
3. Uncompress the file and update your `PATH` environment variable to include to the _graalpy-jvm-XX.Y.Z-macos-amd64/bin_ (or _graalpy-jvm-XX.Y.Z-macos-aarch64/bin_) directory.
169169
4. Run your scripts with `graalpy --python.EmulateJython`.

docs/user/Interoperability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For example, if you have already configured a Maven project with GraalPy, add th
7676
<dependency>
7777
<groupId>org.graalvm.polyglot</groupId>
7878
<artifactId>js</artifactId>
79-
<version>23.1.2</version>
79+
<version>24.0.0</version>
8080
</dependency>
8181
```
8282

0 commit comments

Comments
 (0)