Skip to content

Commit f6f7e71

Browse files
committed
Upgrade GraalPy exmaples to 25.0.1
1 parent 132efe3 commit f6f7e71

File tree

30 files changed

+86
-79
lines changed

30 files changed

+86
-79
lines changed

graalpy/graalpy-custom-venv-guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ Add the required dependencies for GraalPy in the `<dependencies>` section of the
5454
<dependency>
5555
<groupId>org.graalvm.polyglot</groupId>
5656
<artifactId>python</artifactId> <!---->
57-
<version>25.0.0</version>
57+
<version>25.0.1</version>
5858
<type>pom</type> <!---->
5959
</dependency>
6060

6161
<dependency>
6262
<groupId>org.graalvm.polyglot</groupId>
6363
<artifactId>polyglot</artifactId> <!---->
64-
<version>25.0.0</version>
64+
<version>25.0.1</version>
6565
</dependency>
6666
</dependencies>
6767
```

graalpy/graalpy-custom-venv-guide/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<dependency>
1818
<groupId>org.graalvm.polyglot</groupId>
1919
<artifactId>python</artifactId> <!---->
20-
<version>25.0.0</version>
20+
<version>25.0.1</version>
2121
<type>pom</type> <!---->
2222
</dependency>
2323

2424
<dependency>
2525
<groupId>org.graalvm.polyglot</groupId>
2626
<artifactId>polyglot</artifactId> <!---->
27-
<version>25.0.0</version>
27+
<version>25.0.1</version>
2828
</dependency>
2929
</dependencies>
3030
</project>

graalpy/graalpy-freeze-dependencies-guide/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pinning Python Dependencies
22

3-
Python libraries can be used in and shipped with plain Java applications.
3+
Python libraries can be used in and shipped with plain Java applications.
44

55
The [GraalPy Maven artifacts](https://central.sonatype.com/artifact/org.graalvm.polyglot/python) and [GraalVM Polyglot APIs](https://www.graalvm.org/latest/reference-manual/embed-languages/) allow flexible integration with different project setups.
66

@@ -13,10 +13,16 @@ rather than one specific version. This can create issues during development and
1313
transitive set of dependencies may change when some package publishes a new release.
1414

1515
We recommend pinning all transitive dependencies to single version and upgrade them
16-
manually in a controlled fashion. This guide shows how this can be done with the
16+
manually in a controlled fashion.
17+
18+
This guide shows how this can be done manually with the
1719
GraalPy Maven plugin. We will install package `vaderSentiment`, discover all its
1820
transitive dependencies and then pin them in the Maven.
1921

22+
Starting from version 25.0.1, the GraalPy Maven and Gradle plugins provide a built-in
23+
support for freezing dependencies. Please refer to their
24+
[user manual](https://www.graalvm.org/python/docs/#locking-python-packages).
25+
2026
## 1. What you will need
2127

2228
To complete this guide, you will need the following:
@@ -68,7 +74,7 @@ For Maven, add dependency on GraalPy runtime, and configure the GraalPy Maven pl
6874
<dependency>
6975
<groupId>org.graalvm.polyglot</groupId>
7076
<artifactId>python</artifactId>
71-
<version>25.0.0</version>
77+
<version>25.0.1</version>
7278
<type>pom</type>
7379
</dependency>
7480
```
@@ -80,7 +86,7 @@ For Maven, add dependency on GraalPy runtime, and configure the GraalPy Maven pl
8086
<plugin>
8187
<groupId>org.graalvm.python</groupId>
8288
<artifactId>graalpy-maven-plugin</artifactId>
83-
<version>25.0.0</version>
89+
<version>25.0.1</version>
8490
<configuration>
8591
<packages> <!---->
8692
<package>vaderSentiment==3.3.2</package>
@@ -104,7 +110,7 @@ For Gradle, add the GraalPy plugin, configure it, and add the dependency on the
104110
```kotlin
105111
plugins {
106112
application
107-
id("org.graalvm.python") version "25.0.0"
113+
id("org.graalvm.python") version "25.0.1"
108114
}
109115
```
110116

@@ -178,7 +184,7 @@ If you use Maven, paste them in the `pom.xml` section of the packages and wrap t
178184
<plugin>
179185
<groupId>org.graalvm.python</groupId>
180186
<artifactId>graalpy-maven-plugin</artifactId>
181-
<version>25.0.0</version>
187+
<version>25.0.1</version>
182188
<configuration>
183189
<packages> <!---->
184190
<package>vaderSentiment==3.3.2</package>

graalpy/graalpy-freeze-dependencies-guide/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
application
3-
id("org.graalvm.python") version "25.0.0"
3+
id("org.graalvm.python") version "25.0.1"
44
}
55

66
// To make the paths of this reference solution (without 'app' subdirectory for sources)

graalpy/graalpy-freeze-dependencies-guide/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<dependency>
2020
<groupId>org.graalvm.polyglot</groupId>
2121
<artifactId>python</artifactId>
22-
<version>25.0.0</version>
22+
<version>25.0.1</version>
2323
<type>pom</type>
2424
</dependency>
2525

2626
<!-- This dependency is necessary only for the example Java code, not for building and running pip freeze -->
2727
<dependency>
2828
<groupId>org.graalvm.python</groupId>
2929
<artifactId>python-embedding</artifactId>
30-
<version>25.0.0</version>
30+
<version>25.0.1</version>
3131
</dependency>
3232
</dependencies>
3333

@@ -44,7 +44,7 @@
4444
<plugin>
4545
<groupId>org.graalvm.python</groupId>
4646
<artifactId>graalpy-maven-plugin</artifactId>
47-
<version>25.0.0</version>
47+
<version>25.0.1</version>
4848
<configuration>
4949
<packages> <!---->
5050
<package>vaderSentiment==3.3.2</package>
@@ -80,7 +80,7 @@
8080
<plugin>
8181
<groupId>org.graalvm.python</groupId>
8282
<artifactId>graalpy-maven-plugin</artifactId>
83-
<version>25.0.0</version>
83+
<version>25.0.1</version>
8484
<configuration>
8585
<packages> <!---->
8686
<package>vaderSentiment==3.3.2</package>

graalpy/graalpy-javase-guide/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
application
3-
id("org.graalvm.python") version "25.0.0"
3+
id("org.graalvm.python") version "25.0.1"
44
}
55

66
graalPy {

graalpy/graalpy-javase-guide/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
<dependency>
1919
<groupId>org.graalvm.polyglot</groupId>
2020
<artifactId>python</artifactId> <!---->
21-
<version>25.0.0</version>
21+
<version>25.0.1</version>
2222
<type>pom</type> <!---->
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>org.graalvm.python</groupId>
2727
<artifactId>python-embedding</artifactId> <!---->
28-
<version>25.0.0</version>
28+
<version>25.0.1</version>
2929
</dependency>
3030
</dependencies>
3131

@@ -34,7 +34,7 @@
3434
<plugin>
3535
<groupId>org.graalvm.python</groupId>
3636
<artifactId>graalpy-maven-plugin</artifactId>
37-
<version>25.0.0</version>
37+
<version>25.0.1</version>
3838
<configuration>
3939
<packages> <!---->
4040
<package>qrcode==7.4.2</package>

graalpy/graalpy-jbang-qrcode/qrcode.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL.
55
*/
66

7-
//DEPS org.graalvm.python:python-language:25.0.0
8-
//DEPS org.graalvm.python:python-launcher:25.0.0
9-
//DEPS org.graalvm.python:python-resources:25.0.0
10-
//DEPS org.graalvm.python:python-embedding:25.0.0
11-
//DEPS org.graalvm.python:python-embedding-tools:25.0.0
12-
//DEPS org.graalvm.python:jbang:25.0.0
13-
//DEPS org.graalvm.truffle:truffle-runtime:25.0.0
7+
//REPOS mc=https://artifacthub-phx.oci.oraclecorp.com/graalvm
8+
//DEPS org.graalvm.python:python-language:25.0.1
9+
//DEPS org.graalvm.python:python-launcher:25.0.1
10+
//DEPS org.graalvm.python:python-resources:25.0.1
11+
//DEPS org.graalvm.python:python-embedding:25.0.1
12+
//DEPS org.graalvm.python:python-embedding-tools:25.0.1
13+
//DEPS org.graalvm.python:jbang:25.0.1
14+
//DEPS org.graalvm.truffle:truffle-runtime:25.0.1
1415
//PIP qrcode==7.4.2
1516

1617
import org.graalvm.python.embedding.GraalPyResources;

graalpy/graalpy-jython-guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ Add the required dependencies for GraalPy in the `<dependencies>` section of the
115115
<dependency>
116116
<groupId>org.graalvm.polyglot</groupId>
117117
<artifactId>python</artifactId> <!---->
118-
<version>25.0.0</version>
118+
<version>25.0.1</version>
119119
<type>pom</type> <!---->
120120
</dependency>
121121

122122
<dependency>
123123
<groupId>org.graalvm.polyglot</groupId>
124124
<artifactId>polyglot</artifactId> <!---->
125-
<version>25.0.0</version>
125+
<version>25.0.1</version>
126126
</dependency>
127127
```
128128

graalpy/graalpy-jython-guide/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
<dependency>
2525
<groupId>org.graalvm.polyglot</groupId>
2626
<artifactId>python</artifactId> <!---->
27-
<version>25.0.0</version>
27+
<version>25.0.1</version>
2828
<type>pom</type> <!---->
2929
</dependency>
3030
<dependency>
3131
<groupId>org.graalvm.polyglot</groupId>
3232
<artifactId>polyglot</artifactId> <!---->
33-
<version>25.0.0</version>
33+
<version>25.0.1</version>
3434
</dependency>
3535
</dependencies>
3636
</project>

0 commit comments

Comments
 (0)