- Files:
-
- 3 added
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
/javavenv/pom.xml
r1 r3 5 5 <groupId>geniusweb</groupId> 6 6 <artifactId>javavenv</artifactId> 7 <version> 1.0.0</version>7 <version>2.0.2</version> 8 8 9 9 … … 17 17 <!-- <tomcat.version>8.0.53</tomcat.version> --> 18 18 <tomcat.version>8.5.20</tomcat.version> 19 <geniusweb.version>2.0. 0</geniusweb.version>19 <geniusweb.version>2.0.2</geniusweb.version> 20 20 </properties> 21 21 -
/javavenv/src/main/java/geniusweb/javavenv/PythonPartyFactory.java
r1 r3 22 22 public class PythonPartyFactory { 23 23 24 private static final int PARTY_MAX_INSTALL_TIME = 60000; // ms25 private static final int PIP_MAX_UPGRADE_TIME = 30000; // ms24 private static final int PARTY_MAX_INSTALL_TIME = 180000; // ms 25 private static final int PIP_MAX_UPGRADE_TIME = 90000; // ms 26 26 private final ObjectMapper jackson = new ObjectMapper(); 27 27 private final File targz; … … 99 99 String capstr = venv.call(Arrays.asList("-c", 100 100 "from geniusweb.partystdio.PartyStdIo import PartyStdIo; import party; PartyStdIo(party.party()).capabilities()"), 101 500);101 1500); 102 102 logger.log(Level.INFO, "Capabilities=" + capstr); 103 103 return jackson.readValue(capstr, Capabilities.class); … … 108 108 String capstr = venv.call(Arrays.asList("-c", 109 109 "from geniusweb.partystdio.PartyStdIo import PartyStdIo; import party; PartyStdIo(party.party()).description()"), 110 500);110 1500); 111 111 logger.log(Level.INFO, "Description=" + capstr); 112 112 return capstr; -
/javavenv/src/main/java/geniusweb/javavenv/PythonVenv.java
r1 r3 137 137 138 138 String version = new Call(PYTHON3, 139 Arrays.asList("-c", "import sys; print(sys.version)"), 500)139 Arrays.asList("-c", "import sys; print(sys.version)"), 3000) 140 140 .run(); 141 141 if (!(version.startsWith("3.8") || version.startsWith("3.9"))) { … … 154 154 155 155 new Call(PYTHON3, 156 Arrays.asList("-m", "venv", venvdir.getAbsolutePath()), 20000)156 Arrays.asList("-m", "venv", venvdir.getAbsolutePath()), 100000) 157 157 .run(); 158 158 -
/javavenv/src/test/java/geniusweb/javavenv/PythonPartyFactoryE2E.java
r1 r3 32 32 33 33 public class PythonPartyFactoryE2E { 34 private static final String STUPIDPARTY = "src/test/resources/stupidparty-1.1.0.tar.gz"; 35 34 36 @Test 35 37 public void test() throws IOException, InterruptedException, PythonError { 36 38 PythonPartyFactory factory = new PythonPartyFactory( 37 new File( "src/test/resources/stupidparty-1.0.0.tar.gz"));39 new File(STUPIDPARTY)); 38 40 System.out.println(factory.getCapabilites()); 39 41 factory.close(); … … 45 47 throws IOException, InterruptedException, PythonError { 46 48 PythonPartyFactory factory = new PythonPartyFactory( 47 new File( "src/test/resources/stupidparty-1.0.0.tar.gz"));49 new File(STUPIDPARTY)); 48 50 System.out.println("\nGetting a party instance"); 49 51 PartyProxy proxy = factory.getInstance(); … … 61 63 throws IOException, InterruptedException, PythonError { 62 64 PythonPartyFactory factory = new PythonPartyFactory( 63 new File( "src/test/resources/stupidparty-1.0.0.tar.gz"));65 new File(STUPIDPARTY)); 64 66 System.out.println("\nGetting a party instance"); 65 67 PartyProxy proxy = factory.getInstance(); … … 86 88 87 89 PythonPartyFactory factory = new PythonPartyFactory( 88 new File( "src/test/resources/stupidparty-1.0.0.tar.gz"));90 new File(STUPIDPARTY)); 89 91 System.out.println("\nGetting a party instance"); 90 92 PartyProxy proxy = factory.getInstance(); … … 122 124 123 125 PythonPartyFactory factory = new PythonPartyFactory( 124 new File( "src/test/resources/stupidparty-1.0.0.tar.gz"));126 new File(STUPIDPARTY)); 125 127 PartyProxy proxy = factory.getInstance(); 126 128 MyConnEnd conn = new MyConnEnd(); -
/pypartiesserver/pom.xml
r1 r3 6 6 <artifactId>pypartiesserver</artifactId> 7 7 <packaging>war</packaging> 8 <version>2.0. 0</version> <!-- must equal ${geniusweb.version} -->8 <version>2.0.2</version> <!-- must equal ${geniusweb.version} --> 9 9 <name>partiesserver Maven Webapp</name> 10 10 <url>http://maven.apache.org</url> … … 19 19 <!-- <tomcat.version>8.0.53</tomcat.version> --> 20 20 <tomcat.version>8.5.20</tomcat.version> 21 <geniusweb.version>2.0. 0</geniusweb.version>21 <geniusweb.version>2.0.2</geniusweb.version> 22 22 </properties> 23 23 … … 67 67 <groupId>geniusweb</groupId> 68 68 <artifactId>javavenv</artifactId> 69 <version> 1.0.0</version>69 <version>${geniusweb.version}</version> 70 70 </dependency> 71 71
Note:
See TracChangeset
for help on using the changeset viewer.