Moved __version__.py to gremlin_python directory

__version__.py is a generated file that is not in source control. it only 
appears at the time of a build and is ignored by git. by moving it to 
gremlin_python directory the __version__ will appear in the source 
distribution. CTR


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

Branch: refs/heads/TINKERPOP-1534
Commit: ab48b3fc0623adf2f65e0814ee0f205dbff5f929
Parents: 333f2ab
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Nov 1 14:10:39 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Nov 1 14:10:39 2016 -0400

----------------------------------------------------------------------
 gremlin-python/src/main/jython/setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ab48b3fc/gremlin-python/src/main/jython/setup.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/setup.py 
b/gremlin-python/src/main/jython/setup.py
index 57374a7..3c55554 100644
--- a/gremlin-python/src/main/jython/setup.py
+++ b/gremlin-python/src/main/jython/setup.py
@@ -25,7 +25,7 @@ from setuptools import setup, Command
 root = os.path.dirname(os.path.abspath(__file__))
 
 # Path to __version__ module
-version_file = os.path.join(root, '.', '__version__.py')
+version_file = os.path.join(root, 'gremlin_python', '__version__.py')
 
 # Check if this is a source distribution.
 # If not create the __version__ module containing the version
@@ -39,7 +39,7 @@ if not os.path.exists(os.path.join(root, 'PKG-INFO')):
     fd.write('timestamp = %d\n' % timestamp)
     fd.close()
 # Load version
-import __version__
+from gremlin_python import __version__
 
 version = __version__.version
 

Reply via email to