diff --git a/README.md b/README.md index f840da3e66..53c220dee8 100644 --- a/README.md +++ b/README.md @@ -56,20 +56,20 @@ Refer to our [embedding documentation](https://www.graalvm.org/latest/reference- org.graalvm.polyglot polyglot - 25.0.1 + 25.0.2 org.graalvm.polyglot python - 25.0.1 + 25.0.2 pom ``` * 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") ``` @@ -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. @@ -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. @@ -122,7 +122,7 @@ 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. @@ -130,12 +130,12 @@ Thanks to our integration with GraalVM Native Image, we can deploy Python applic 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. @@ -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`. diff --git a/docs/user/Embedding-Build-Tools.md b/docs/user/Embedding-Build-Tools.md index 01a25245f2..b43e463a3a 100644 --- a/docs/user/Embedding-Build-Tools.md +++ b/docs/user/Embedding-Build-Tools.md @@ -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 { diff --git a/docs/user/Interoperability.md b/docs/user/Interoperability.md index 7acee33595..80862752c2 100644 --- a/docs/user/Interoperability.md +++ b/docs/user/Interoperability.md @@ -153,7 +153,7 @@ If you're using Maven with GraalPy, add the JavaScript dependency to your _pom.x org.graalvm.polyglot js - 25.0.1 + 25.0.2 ``` diff --git a/docs/user/Python-Runtime.md b/docs/user/Python-Runtime.md index b8e610df35..aa20566f44 100644 --- a/docs/user/Python-Runtime.md +++ b/docs/user/Python-Runtime.md @@ -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. @@ -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. @@ -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. @@ -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: @@ -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`. diff --git a/docs/user/README.md b/docs/user/README.md index fa092df7e9..f567ea84af 100644 --- a/docs/user/README.md +++ b/docs/user/README.md @@ -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: @@ -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: @@ -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: @@ -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.