Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ Refer to our [embedding documentation](https://www.graalvm.org/latest/reference-
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
<version>25.0.1</version>
<version>25.0.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>python</artifactId>
<version>25.0.1</version>
<version>25.0.2</version>
<type>pom</type>
</dependency>
```

* Gradle
```kotlin
implementation("org.graalvm.polyglot:polyglot:25.0.1")
implementation("org.graalvm.polyglot:python:25.0.1")
implementation("org.graalvm.polyglot:polyglot:25.0.2")
implementation("org.graalvm.polyglot:python:25.0.2")
```

</details>
Expand All @@ -87,12 +87,12 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
* Linux

The easiest way to install GraalPy on Linux is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
To install version 25.0.1 using Pyenv, run the following commands:
To install version 25.0.2 using Pyenv, run the following commands:
```bash
pyenv install graalpy-25.0.1
pyenv install graalpy-25.0.2
```
```bash
pyenv shell graalpy-25.0.1
pyenv shell graalpy-25.0.2
```
> NOTE: There will be a delay between GraalPy release and its availability on Pyenv. Make sure to update Pyenv.

Expand All @@ -104,12 +104,12 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
* macOS

The easiest way to install GraalPy on macOS is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
To install version 25.0.1 using Pyenv, run the following commands:
To install version 25.0.2 using Pyenv, run the following commands:
```bash
pyenv install graalpy-25.0.1
pyenv install graalpy-25.0.2
```
```bash
pyenv shell graalpy-25.0.1
pyenv shell graalpy-25.0.2
```
> NOTE: There will be a delay between GraalPy release and its availability on Pyenv. Make sure to update Pyenv.

Expand All @@ -122,20 +122,20 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic
```
For example:
```bash
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.1
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.2
```
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.

* Windows

The Windows support of GraalPy is still experimental, so not all features and packages may be available.
The easiest way to install GraalPy on Windows is to use [Pyenv-win](https://pyenv-win.github.io/pyenv-win/) (the Python version manager for Windows).
To install version 25.0.1 using Pyenv-win, run the following commands:
To install version 25.0.2 using Pyenv-win, run the following commands:
```cmd
pyenv install graalpy-25.0.1-windows-amd64
pyenv install graalpy-25.0.2-windows-amd64
```
```cmd
pyenv shell graalpy-25.0.1-windows-amd64
pyenv shell graalpy-25.0.2-windows-amd64
```
> NOTE: There will be a delay between GraalPy release and its availability on Pyenv. Make sure to update Pyenv.

Expand Down Expand Up @@ -181,7 +181,7 @@ To run Jython scripts, you need to use a GraalPy distribution running on the JVM
```
For example:
```bash
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.1
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.2
```
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.
4. Run your scripts with `graalpy --python.EmulateJython`.
Expand Down
2 changes: 1 addition & 1 deletion docs/user/Embedding-Build-Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Add the plugin configuration to your _build.gradle_ file:

```groovy
plugins {
id 'org.graalvm.python' version '25.0.1'
id 'org.graalvm.python' version '25.0.2'
}

graalPy {
Expand Down
2 changes: 1 addition & 1 deletion docs/user/Interoperability.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ If you're using Maven with GraalPy, add the JavaScript dependency to your _pom.x
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>js</artifactId>
<version>25.0.1</version>
<version>25.0.2</version>
</dependency>
```

Expand Down
18 changes: 9 additions & 9 deletions docs/user/Python-Runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ The four GraalPy runtimes are identified as follows, using the general pattern _
### Linux

The easiest way to install GraalPy on Linux is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
To install version 25.0.1 using Pyenv, run the following commands:
To install version 25.0.2 using Pyenv, run the following commands:
```bash
pyenv install graalpy-25.0.1
pyenv install graalpy-25.0.2
```
```bash
pyenv shell graalpy-25.0.1
pyenv shell graalpy-25.0.2
```
> Before running `pyenv install`, you may need to update `pyenv` to include the latest GraalPy versions.

Expand All @@ -86,12 +86,12 @@ Alternatively, you can download a compressed GraalPy installation file from [Git
### macOS

The easiest way to install GraalPy on macOS is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
To install version 25.0.1 using Pyenv, run the following commands:
To install version 25.0.2 using Pyenv, run the following commands:
```bash
pyenv install graalpy-25.0.1
pyenv install graalpy-25.0.2
```
```bash
pyenv shell graalpy-25.0.1
pyenv shell graalpy-25.0.2
```
> Before running `pyenv install`, you may need to update `pyenv` to include the latest GraalPy versions.

Expand All @@ -104,7 +104,7 @@ Alternatively, you can download a compressed GraalPy installation file from [Git
```
For example:
```bash
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.1
sudo xattr -r -d com.apple.quarantine ~/.pyenv/versions/graalpy-25.0.2
```
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.

Expand Down Expand Up @@ -139,7 +139,7 @@ This generates wrapper scripts and makes the implementation usable from a shell
```
For example:
```bash
graalpy -m venv ~/.virtualenvs/graalpy-25.0.1
graalpy -m venv ~/.virtualenvs/graalpy-25.0.2
```

2. Activate the environment in your shell session:
Expand All @@ -148,7 +148,7 @@ This generates wrapper scripts and makes the implementation usable from a shell
```
For example:
```bash
source ~/.virtualenvs/graalpy-25.0.1/bin/activate
source ~/.virtualenvs/graalpy-25.0.2/bin/activate
```

Multiple executables are available in the virtual environment, including: `python`, `python3`, and `graalpy`.
Expand Down
12 changes: 6 additions & 6 deletions docs/user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GraalPy can generate a Maven project that embeds Python packages into a Java app
mvn archetype:generate \
-DarchetypeGroupId=org.graalvm.python \
-DarchetypeArtifactId=graalpy-archetype-polyglot-app \
-DarchetypeVersion=25.0.1
-DarchetypeVersion=25.0.2
```

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:
Expand Down Expand Up @@ -86,8 +86,8 @@ In order to distribute the resulting application for other systems, follow these
2. Open your project configuration file, _app/build.gradle_, and modify it as follows.
- 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:
```bash
implementation("org.graalvm.polyglot:polyglot:25.0.1")
implementation("org.graalvm.polyglot:python:25.0.1")
implementation("org.graalvm.polyglot:polyglot:25.0.2")
implementation("org.graalvm.polyglot:python:25.0.2")
```

3. Finally, replace the code in the file named _App.java_ as follows for a small Python embedding:
Expand Down Expand Up @@ -118,7 +118,7 @@ In order to distribute the resulting application for other systems, follow these
5.1. In _app/build.gradle_:
- add the graalpy-gradle-plugin to the `plugins` section:
```bash
id "org.graalvm.python" version "25.0.1"
id "org.graalvm.python" version "25.0.2"
```

- configure the GraalPy Gradle plugin:
Expand Down Expand Up @@ -182,13 +182,13 @@ GraalPy comes with a tool to obtain the required JAR files from Maven.
In a POSIX shell:
```bash
export GRAALPY_HOME=$(graalpy -c 'print(__graalpython__.home)')
"${GRAALPY_HOME}/libexec/graalpy-polyglot-get" -a python -o lib -v "25.0.1"
"${GRAALPY_HOME}/libexec/graalpy-polyglot-get" -a python -o lib -v "25.0.2"
```

In PowerShell:
```bash
$GRAALPY_HOME = graalpy -c "print(__graalpython__.home)"
& "$GRAALPY_HOME/libexec/graalpy-polyglot-get" -a python -o lib -v "25.0.1"
& "$GRAALPY_HOME/libexec/graalpy-polyglot-get" -a python -o lib -v "25.0.2"
```

These commands download all GraalPy dependencies into the _lib_ directory.
Expand Down
Loading