Skip to content

Commit 0908403

Browse files
committed
Update GraalPy website to 24.2
1 parent 881f81d commit 0908403

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

docs/site/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
baseurl: "/python"
22
url: "https://graalvm.org"
33
github: "oracle/graalpython"
4-
language_version: 24.1.2
4+
language_version: 24.2.0
55
name: GraalPy
66

77
permalink: pretty

docs/user/Interoperability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ For example, if you have already configured a Maven project with GraalPy, add th
112112
<dependency>
113113
<groupId>org.graalvm.polyglot</groupId>
114114
<artifactId>js</artifactId>
115-
<version>24.1.0</version>
115+
<version>24.2.0</version>
116116
</dependency>
117117
```
118118

docs/user/Python-Runtime.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ The four GraalPy runtimes are identified as follows, using the general pattern _
6969
### Linux
7070

7171
The easiest way to install GraalPy on Linux is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
72-
To install version 24.1.0 using Pyenv, run the following commands:
72+
To install version 24.2.0 using Pyenv, run the following commands:
7373
```bash
74-
pyenv install graalpy-24.1.0
74+
pyenv install graalpy-24.2.0
7575
```
7676
```bash
77-
pyenv shell graalpy-24.1.0
77+
pyenv shell graalpy-24.2.0
7878
```
7979
> Before running `pyenv install`, you may need to update `pyenv` to include the latest GraalPy versions.
8080
@@ -86,12 +86,12 @@ Alternatively, you can download a compressed GraalPy installation file from [Git
8686
### macOS
8787

8888
The easiest way to install GraalPy on macOS is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
89-
To install version 24.1.0 using Pyenv, run the following commands:
89+
To install version 24.2.0 using Pyenv, run the following commands:
9090
```bash
91-
pyenv install graalpy-24.1.0
91+
pyenv install graalpy-24.2.0
9292
```
9393
```bash
94-
pyenv shell graalpy-24.1.0
94+
pyenv shell graalpy-24.2.0
9595
```
9696
> Before running `pyenv install`, you may need to update `pyenv` to include the latest GraalPy versions.
9797
@@ -104,7 +104,7 @@ Alternatively, you can download a compressed GraalPy installation file from [Git
104104
```
105105
For example:
106106
```bash
107-
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-24.1.0
107+
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-24.2.0
108108
```
109109
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.
110110

@@ -139,7 +139,7 @@ This generates wrapper scripts and makes the implementation usable from a shell
139139
```
140140
For example:
141141
```bash
142-
graalpy -m venv ~/.virtualenvs/graalpy-24.1.0
142+
graalpy -m venv ~/.virtualenvs/graalpy-24.2.0
143143
```
144144
145145
2. Activate the environment in your shell session:
@@ -148,7 +148,7 @@ This generates wrapper scripts and makes the implementation usable from a shell
148148
```
149149
For example:
150150
```bash
151-
source ~/.virtualenvs/graalpy-24.1.0/bin/activate
151+
source ~/.virtualenvs/graalpy-24.2.0/bin/activate
152152
```
153153
154154
Multiple executables are available in the virtual environment, including: `python`, `python3`, and `graalpy`.

docs/user/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GraalPy can generate a Maven project that embeds Python packages into a Java app
1313
mvn archetype:generate \
1414
-DarchetypeGroupId=org.graalvm.python \
1515
-DarchetypeArtifactId=graalpy-archetype-polyglot-app \
16-
-DarchetypeVersion=24.1.0
16+
-DarchetypeVersion=24.2.0
1717
```
1818

1919
2. Build a native executable using the [GraalVM Native Image "tool"](https://www.graalvm.org/latest/reference-manual/native-image/) plugin that was added for you automatically:
@@ -79,8 +79,8 @@ In order to distribute the resulting application for other systems, follow these
7979
2. Open your project configuration file, _app/build.gradle_, and modify it as follows.
8080
- Include the GraalPy support and the [GraalVM Polyglot API](https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/package-summary.html) in the `dependencies` section:
8181
```bash
82-
implementation("org.graalvm.polyglot:polyglot:24.1.2")
83-
implementation("org.graalvm.polyglot:python:24.1.2")
82+
implementation("org.graalvm.polyglot:polyglot:24.2.0")
83+
implementation("org.graalvm.polyglot:python:24.2.0")
8484
```
8585

8686
3. Finally, replace the code in the file named _App.java_ as follows for a small Python embedding:
@@ -111,7 +111,7 @@ In order to distribute the resulting application for other systems, follow these
111111
5.1. In _app/build.gradle_:
112112
- add the graalpy-gradle-plugin to the `plugins` section:
113113
```bash
114-
id "org.graalvm.python" version "24.1.2"
114+
id "org.graalvm.python" version "24.2.0"
115115
```
116116
117117
- configure the GraalPy Gradle plugin:
@@ -175,13 +175,13 @@ GraalPy comes with a tool to obtain the required JAR files from Maven.
175175
In a POSIX shell:
176176
```bash
177177
export GRAALPY_HOME=$(graalpy -c 'print(__graalpython__.home)')
178-
"${GRAALPY_HOME}/libexec/graalpy-polyglot-get" -a python -o lib -v "24.1.0"
178+
"${GRAALPY_HOME}/libexec/graalpy-polyglot-get" -a python -o lib -v "24.2.0"
179179
```
180180
181181
In PowerShell:
182182
```bash
183183
$GRAALPY_HOME = graalpy -c "print(__graalpython__.home)"
184-
& "$GRAALPY_HOME/libexec/graalpy-polyglot-get" -a python -o lib -v "24.1.0"
184+
& "$GRAALPY_HOME/libexec/graalpy-polyglot-get" -a python -o lib -v "24.2.0"
185185
```
186186
187187
These commands download all GraalPy dependencies into the _lib_ directory.

0 commit comments

Comments
 (0)