Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.42.x] [KOGITO-9434] Including python examples #1748

Merged
merged 3 commits into from
Jul 28, 2023
Merged
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
4 changes: 0 additions & 4 deletions .github/workflows/pr-kogito-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
- name: Install Python needed packages
uses: kiegroup/kie-ci/.ci/actions/python-packages@main
with:
packages: jep
- name: Build Chain
uses: kiegroup/kie-ci/.ci/actions/build-chain@main
env:
Expand Down
2 changes: 2 additions & 0 deletions serverless-workflow-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
<module>serverless-workflow-timeouts-showcase-embedded</module>
<module>serverless-workflow-timeouts-showcase-extended</module>
<module>serverless-workflow-timeouts-showcase-operator-devprofile</module>
<module>serverless-workflow-openvino-quarkus</module>
<module>serverless-workflow-python-quarkus</module>
</modules>
</profile>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ You will need:
- Maven 3.8.6+ installed
- Python 3+ installed. In Linux system is usually pre-installed. In case you have an older version or you are not using Linux, check [here](https://wiki.python.org/moin/BeginnersGuide/Download)
- Pip installed. In case it not there, run `python -m ensurepip --upgrade`
- Python required libraries. Run `pip install -r requirements.txt`. Requirements.txt is on example root path.
- Jep installed. Run `pip install jep`, Detailed instructions [here](https://github.com/ninia/jep#installation)
- Python required libraries, equivalent to run `pip install -r requirements.txt` and `pip install jep`, will be automatically installed when running Maven.


> **_NOTE:_** Install Jep as the last one because it depends on the NumPy library to work correctly.
> **_NOTE:_** Requirements.txt install Jep as the last one because it depends on the NumPy library to work correctly.

When using native image compilation, you will also need:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<quarkus.platform.version>2.16.7.Final</quarkus.platform.version>
<kogito.bom.group-id>org.kie.kogito</kogito.bom.group-id>
<kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id>
<kogito.bom.version>2.0.0-SNAPSHOT</kogito.bom.version>
<kogito.bom.version>1.42.0-SNAPSHOT</kogito.bom.version>
<maven.compiler.release>11</maven.compiler.release>
<version.exec.plugin>1.6.0</version.exec.plugin>
<version.compiler.plugin>3.8.1</version.compiler.plugin>
<version.failsafe.plugin>3.0.0-M7</version.failsafe.plugin>
<version.org.assertj>3.22.0</version.org.assertj>
Expand Down Expand Up @@ -123,6 +124,42 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.exec.plugin}</version>
<executions>
<execution>
<id>dependencies-install</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>-r</argument>
<argument>${project.basedir}/requirements.txt</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>jep</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>jep</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ You will need:
- Environment variable JAVA_HOME set accordingly
- Maven 3.8.6+ installed
- Python3 installed
- Jep installed. Instructions [here](https://github.com/ninia/jep#installation)
- Python required libraries. Run `pip install -r requirements.txt`. Requirements.txt is on example root path.
- Python required libraries, equivalent to run `pip install -r requirements.txt`, will be automatically installed when running Maven.

> **_NOTE:_** Requirements.txt install Jep as the last one because it depends on the NumPy library to work correctly.

When using native image compilation, you will also need:
- [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
<kogito.bom.group-id>org.kie.kogito</kogito.bom.group-id>
<kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id>
<kogito.bom.version>2.0.0-SNAPSHOT</kogito.bom.version>
<kogito.bom.version>1.42.0-SNAPSHOT</kogito.bom.version>
<maven.compiler.release>11</maven.compiler.release>
<version.exec.plugin>1.6.0</version.exec.plugin>
<version.compiler.plugin>3.8.1</version.compiler.plugin>
<version.failsafe.plugin>3.0.0-M7</version.failsafe.plugin>
<version.org.assertj>3.22.0</version.org.assertj>
Expand Down Expand Up @@ -123,6 +124,42 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.exec.plugin}</version>
<executions>
<execution>
<id>dependencies-install</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>-r</argument>
<argument>${project.basedir}/requirements.txt</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>jep</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>jep</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down
Loading