You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/04/19 11:45:44 UTC

[1/3] tinkerpop git commit: TINKERPOP-1577 Added support for building gremlin-python with python 2.x and 3.x

Repository: tinkerpop
Updated Branches:
  refs/heads/tp32 1fc841cf2 -> 0e7ec859f


TINKERPOP-1577 Added support for building gremlin-python with python 2.x and 3.x


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a007403b
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a007403b
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a007403b

Branch: refs/heads/tp32
Commit: a007403bde681da9534acc01d13cdc060c5f7e44
Parents: 95d3efc
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Mar 2 07:01:47 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Apr 6 07:45:33 2017 -0400

----------------------------------------------------------------------
 gremlin-python/pom.xml | 58 +++++++++++++++++++++++++++++++++++++++------
 1 file changed, 51 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a007403b/gremlin-python/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-python/pom.xml b/gremlin-python/pom.xml
index 2b4a80e..4c36d2a 100644
--- a/gremlin-python/pom.xml
+++ b/gremlin-python/pom.xml
@@ -359,17 +359,28 @@
                                              specifically). note that the commands to install wheel are largely for
                                              safety in case someone is using an older version of virtualenv (which
                                              doesn't install wheel by default) -->
-                                        <copy todir="${project.build.directory}/python">
+                                        <copy todir="${project.build.directory}/python3">
+                                            <fileset dir="src/main/jython"/>
+                                        </copy>
+                                        <copy todir="${project.build.directory}/python2">
                                             <fileset dir="src/main/jython"/>
                                         </copy>
                                         <copy todir="${project.build.directory}/python-packaged">
                                             <fileset dir="src/main/jython"/>
                                         </copy>
-                                        <exec dir="${project.build.directory}/python" executable="virtualenv"
+                                        <exec dir="${project.build.directory}/python2" executable="virtualenv"
+                                              failonerror="true">
+                                            <arg line="--python=python env"/>
+                                        </exec>
+                                        <exec dir="${project.build.directory}/python2" executable="env/bin/pip"
+                                              failonerror="true">
+                                            <arg line="install wheel"/>
+                                        </exec>
+                                        <exec dir="${project.build.directory}/python3" executable="virtualenv"
                                               failonerror="true">
                                             <arg line="--python=python env"/>
                                         </exec>
-                                        <exec dir="${project.build.directory}/python" executable="env/bin/pip"
+                                        <exec dir="${project.build.directory}/python3" executable="env/bin/pip"
                                               failonerror="true">
                                             <arg line="install wheel"/>
                                         </exec>
@@ -388,14 +399,30 @@
                                 </configuration>
                             </execution>
                             <execution>
-                                <id>native-python-build</id>
+                                <id>native-python2-build</id>
                                 <phase>compile</phase>
                                 <goals>
                                     <goal>run</goal>
                                 </goals>
                                 <configuration>
                                     <target>
-                                        <exec executable="env/bin/python" dir="${project.build.directory}/python"
+                                        <exec executable="env/bin/python" dir="${project.build.directory}/python2"
+                                              failonerror="true">
+                                            <env key="PYTHONPATH" value=""/>
+                                            <arg line="setup.py build --build-lib ${project.build.outputDirectory}/Lib"/>
+                                        </exec>
+                                    </target>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>native-python3-build</id>
+                                <phase>compile</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <target>
+                                        <exec executable="env/bin/python" dir="${project.build.directory}/python3"
                                               failonerror="true">
                                             <env key="PYTHONPATH" value=""/>
                                             <arg line="setup.py build --build-lib ${project.build.outputDirectory}/Lib"/>
@@ -433,7 +460,24 @@
                             test phase doesn't have a pre/post event like integration-test does.
                             -->
                             <execution>
-                                <id>native-python-test</id>
+                                <id>native-python2-test</id>
+                                <phase>integration-test</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <skip>${skipTests}</skip>
+                                    <target>
+                                        <exec executable="env/bin/python" dir="${project.build.directory}/python2"
+                                              failonerror="true">
+                                            <env key="PYTHONPATH" value=""/>
+                                            <arg line="setup.py test"/>
+                                        </exec>
+                                    </target>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>native-python3-test</id>
                                 <phase>integration-test</phase>
                                 <goals>
                                     <goal>run</goal>
@@ -441,7 +485,7 @@
                                 <configuration>
                                     <skip>${skipTests}</skip>
                                     <target>
-                                        <exec executable="env/bin/python" dir="${project.build.directory}/python"
+                                        <exec executable="env/bin/python" dir="${project.build.directory}/python3"
                                               failonerror="true">
                                             <env key="PYTHONPATH" value=""/>
                                             <arg line="setup.py test"/>


[3/3] tinkerpop git commit: Merge branch 'TINKERPOP-1577' into tp32

Posted by sp...@apache.org.
Merge branch 'TINKERPOP-1577' into tp32


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0e7ec859
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0e7ec859
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0e7ec859

Branch: refs/heads/tp32
Commit: 0e7ec859fad9657c55ea4452de878039328ed9af
Parents: 1fc841c 1a8c21d
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Apr 18 16:34:23 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Apr 18 16:34:23 2017 -0400

----------------------------------------------------------------------
 gremlin-python/pom.xml | 60 +++++++++++++++++++++++++++++++++++++++------
 1 file changed, 52 insertions(+), 8 deletions(-)
----------------------------------------------------------------------



[2/3] tinkerpop git commit: TINKERPOP-1577 Fixed problem with specifying py verison to virtualenv

Posted by sp...@apache.org.
TINKERPOP-1577 Fixed problem with specifying py verison to virtualenv


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1a8c21d0
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1a8c21d0
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1a8c21d0

Branch: refs/heads/tp32
Commit: 1a8c21d0b09fe2967a113498a26dd3aaf2ee6892
Parents: a007403
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Apr 10 12:50:58 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Apr 10 12:50:58 2017 -0400

----------------------------------------------------------------------
 gremlin-python/pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1a8c21d0/gremlin-python/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-python/pom.xml b/gremlin-python/pom.xml
index 4c36d2a..601d9e1 100644
--- a/gremlin-python/pom.xml
+++ b/gremlin-python/pom.xml
@@ -370,7 +370,7 @@
                                         </copy>
                                         <exec dir="${project.build.directory}/python2" executable="virtualenv"
                                               failonerror="true">
-                                            <arg line="--python=python env"/>
+                                            <arg line="--python=python2 env"/>
                                         </exec>
                                         <exec dir="${project.build.directory}/python2" executable="env/bin/pip"
                                               failonerror="true">
@@ -378,7 +378,7 @@
                                         </exec>
                                         <exec dir="${project.build.directory}/python3" executable="virtualenv"
                                               failonerror="true">
-                                            <arg line="--python=python env"/>
+                                            <arg line="--python=python3 env"/>
                                         </exec>
                                         <exec dir="${project.build.directory}/python3" executable="env/bin/pip"
                                               failonerror="true">