diff --git a/modin/__init__.py b/modin/__init__.py index 100fc84a32c..b00681bfc1b 100644 --- a/modin/__init__.py +++ b/modin/__init__.py @@ -18,10 +18,21 @@ def _execute_cmd_in_temp_env(cmd): cwd = os.getcwd() os.chdir(os.path.dirname(os.path.abspath(__file__))) - try: - git_revision = _execute_cmd_in_temp_env(["git", "rev-parse", "HEAD"]) - rev_string = git_revision.strip().decode() - except OSError: + # Check that this is a git repo first. + if ( + subprocess.call( + ["git", "-C", "./", "status"], + stderr=subprocess.STDOUT, + stdout=open(os.devnull, "w"), + ) + == 0 + ): + try: + git_revision = _execute_cmd_in_temp_env(["git", "rev-parse", "HEAD"]) + rev_string = git_revision.strip().decode() + except OSError: + rev_string = "Unknown" + else: rev_string = "Unknown" os.chdir(cwd) return rev_string @@ -41,7 +52,7 @@ def get_partition_format(): __git_revision__ = _git_version() -__version__ = "0.1.2" +__version__ = "0.2.0" __execution_engine__ = get_execution_engine() __partition_format__ = get_partition_format() diff --git a/setup.py b/setup.py index a0372d128bb..3d2a1250e18 100644 --- a/setup.py +++ b/setup.py @@ -9,11 +9,11 @@ setup( name="modin", - version="0.1.2", + version="0.2.0", description="Modin: Pandas on Ray - Make your pandas code run faster with " "a single line of code change.", packages=find_packages(), url="https://github.com/modin-project/modin", long_description=long_description, long_description_content_type="text/markdown", - install_requires=["pandas==0.23.4", "ray==0.5.3"]) + install_requires=["pandas==0.23.4", "ray==0.5.3", "strip_hints", "typing"])