This is an automated email from the ASF dual-hosted git repository. hutcheb pushed a commit to branch fix/plc4py_venv in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 6edc6ac299e9f82a9fbcfcaa36541ecb82401b12 Author: Ben Hutcheson <[email protected]> AuthorDate: Fri Apr 22 07:11:30 2022 +1000 Update pom.xml to use venv to build --- sandbox/plc4py/pom.xml | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/sandbox/plc4py/pom.xml b/sandbox/plc4py/pom.xml index cb8df94f55..5014d22c9c 100644 --- a/sandbox/plc4py/pom.xml +++ b/sandbox/plc4py/pom.xml @@ -78,6 +78,22 @@ <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> + <execution> + <id>python-venv</id> + <phase>compile</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>python</executable> + <arguments> + <argument>-m</argument> + <argument>venv</argument> + <argument> ./venv</argument> + </arguments> + </configuration> + </execution> + <execution> <id>python-install</id> <phase>compile</phase> @@ -85,10 +101,9 @@ <goal>exec</goal> </goals> <configuration> - <executable>pipenv</executable> + <executable>venv/Scripts/pip</executable> <arguments> <argument>install</argument> - <argument>-e</argument> <argument>.</argument> </arguments> </configuration> @@ -101,10 +116,9 @@ <goal>exec</goal> </goals> <configuration> - <executable>pipenv</executable> + <executable>venv/Scripts/pip</executable> <arguments> <argument>install</argument> - <argument>-e</argument> <argument>.[dev]</argument> </arguments> </configuration> @@ -117,15 +131,33 @@ <goal>exec</goal> </goals> <configuration> - <executable>pipenv</executable> + <executable>venv/Scripts/python</executable> <arguments> - <argument>run</argument> + <argument>-m</argument> <argument>pytest</argument> <argument>-v</argument> <argument>tests</argument> </arguments> </configuration> </execution> + + <execution> + <id>python-package</id> + <phase>package</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>venv/Scripts/pip</executable> + <arguments> + <argument>wheel</argument> + <argument>.</argument> + <argument>-w</argument> + <argument>dist</argument> + <argument>--no-deps</argument> + </arguments> + </configuration> + </execution> </executions> </plugin>
