Changes in / [3:1]


Ignore:
Files:
3 added
3 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • /javavenv/pom.xml

    r3 r1  
    55        <groupId>geniusweb</groupId>
    66        <artifactId>javavenv</artifactId>
    7         <version>2.0.2</version>
     7        <version>1.0.0</version>
    88
    99
     
    1717                <!-- <tomcat.version>8.0.53</tomcat.version> -->
    1818                <tomcat.version>8.5.20</tomcat.version>
    19                 <geniusweb.version>2.0.2</geniusweb.version>
     19                <geniusweb.version>2.0.0</geniusweb.version>
    2020        </properties>
    2121
  • /javavenv/src/main/java/geniusweb/javavenv/PythonPartyFactory.java

    r3 r1  
    2222public class PythonPartyFactory {
    2323
    24         private static final int PARTY_MAX_INSTALL_TIME = 180000; // ms
    25         private static final int PIP_MAX_UPGRADE_TIME = 90000; // ms
     24        private static final int PARTY_MAX_INSTALL_TIME = 60000; // ms
     25        private static final int PIP_MAX_UPGRADE_TIME = 30000; // ms
    2626        private final ObjectMapper jackson = new ObjectMapper();
    2727        private final File targz;
     
    9999                String capstr = venv.call(Arrays.asList("-c",
    100100                                "from geniusweb.partystdio.PartyStdIo import PartyStdIo; import party; PartyStdIo(party.party()).capabilities()"),
    101                                 1500);
     101                                500);
    102102                logger.log(Level.INFO, "Capabilities=" + capstr);
    103103                return jackson.readValue(capstr, Capabilities.class);
     
    108108                String capstr = venv.call(Arrays.asList("-c",
    109109                                "from geniusweb.partystdio.PartyStdIo import PartyStdIo; import party; PartyStdIo(party.party()).description()"),
    110                                 1500);
     110                                500);
    111111                logger.log(Level.INFO, "Description=" + capstr);
    112112                return capstr;
  • /javavenv/src/main/java/geniusweb/javavenv/PythonVenv.java

    r3 r1  
    137137
    138138                String version = new Call(PYTHON3,
    139                                 Arrays.asList("-c", "import sys; print(sys.version)"), 3000)
     139                                Arrays.asList("-c", "import sys; print(sys.version)"), 500)
    140140                                                .run();
    141141                if (!(version.startsWith("3.8") || version.startsWith("3.9"))) {
     
    154154
    155155                new Call(PYTHON3,
    156                                 Arrays.asList("-m", "venv", venvdir.getAbsolutePath()), 100000)
     156                                Arrays.asList("-m", "venv", venvdir.getAbsolutePath()), 20000)
    157157                                                .run();
    158158
  • /javavenv/src/test/java/geniusweb/javavenv/PythonPartyFactoryE2E.java

    r3 r1  
    3232
    3333public class PythonPartyFactoryE2E {
    34         private static final String STUPIDPARTY = "src/test/resources/stupidparty-1.1.0.tar.gz";
    35 
    3634        @Test
    3735        public void test() throws IOException, InterruptedException, PythonError {
    3836                PythonPartyFactory factory = new PythonPartyFactory(
    39                                 new File(STUPIDPARTY));
     37                                new File("src/test/resources/stupidparty-1.0.0.tar.gz"));
    4038                System.out.println(factory.getCapabilites());
    4139                factory.close();
     
    4745                        throws IOException, InterruptedException, PythonError {
    4846                PythonPartyFactory factory = new PythonPartyFactory(
    49                                 new File(STUPIDPARTY));
     47                                new File("src/test/resources/stupidparty-1.0.0.tar.gz"));
    5048                System.out.println("\nGetting a party instance");
    5149                PartyProxy proxy = factory.getInstance();
     
    6361                        throws IOException, InterruptedException, PythonError {
    6462                PythonPartyFactory factory = new PythonPartyFactory(
    65                                 new File(STUPIDPARTY));
     63                                new File("src/test/resources/stupidparty-1.0.0.tar.gz"));
    6664                System.out.println("\nGetting a party instance");
    6765                PartyProxy proxy = factory.getInstance();
     
    8886
    8987                PythonPartyFactory factory = new PythonPartyFactory(
    90                                 new File(STUPIDPARTY));
     88                                new File("src/test/resources/stupidparty-1.0.0.tar.gz"));
    9189                System.out.println("\nGetting a party instance");
    9290                PartyProxy proxy = factory.getInstance();
     
    124122
    125123                PythonPartyFactory factory = new PythonPartyFactory(
    126                                 new File(STUPIDPARTY));
     124                                new File("src/test/resources/stupidparty-1.0.0.tar.gz"));
    127125                PartyProxy proxy = factory.getInstance();
    128126                MyConnEnd conn = new MyConnEnd();
  • /pypartiesserver/pom.xml

    r3 r1  
    66        <artifactId>pypartiesserver</artifactId>
    77        <packaging>war</packaging>
    8         <version>2.0.2</version> <!-- must equal ${geniusweb.version} -->
     8        <version>2.0.0</version> <!-- must equal ${geniusweb.version} -->
    99        <name>partiesserver Maven Webapp</name>
    1010        <url>http://maven.apache.org</url>
     
    1919                <!-- <tomcat.version>8.0.53</tomcat.version> -->
    2020                <tomcat.version>8.5.20</tomcat.version>
    21                 <geniusweb.version>2.0.2</geniusweb.version>
     21                <geniusweb.version>2.0.0</geniusweb.version>
    2222        </properties>
    2323
     
    6767                        <groupId>geniusweb</groupId>
    6868                        <artifactId>javavenv</artifactId>
    69                         <version>${geniusweb.version}</version>
     69                        <version>1.0.0</version>
    7070                </dependency>
    7171
Note: See TracChangeset for help on using the changeset viewer.