From 734492f67b11fd77c4c55132fb93a003d6e8b33a Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Wed, 1 Jun 2022 05:15:20 -0700 Subject: [PATCH] Adapt to Git Changes & Revert #182 (#183) --- config.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.sh b/config.sh index edf6d35..27c85f0 100644 --- a/config.sh +++ b/config.sh @@ -1,6 +1,13 @@ # Define custom utilities # Test for OSX with [ -n "$IS_OSX" ] +# Adapted from MacPython/numpy-wheels +# https://github.com/MacPython/numpy-wheels/blob/87b189083a5f77225c3e51895c16d11711f73987/config.sh#L4-L7 +if [ $(uname) == "Linux" ]; then + IS_LINUX=1 + ! git config --global --add safe.directory /io/pandas +fi + function pre_build { # Any stuff that you need to do before you start building the wheels # Runs in the root directory of this repository. @@ -37,6 +44,5 @@ function run_tests { # Skip test_rolling_var_numerical_issues: https://github.com/pandas-dev/pandas/issues/37398 # Skip test_rolling_skew_kurt_large_value_range: https://github.com/pandas-dev/pandas/issues/37398 # Skip test_pairwise_with_self/test_no_pairwise_with_self: https://github.com/pandas-dev/pandas/issues/39553 - # Skip test_git_version/test_show_versions_console: https://github.com/pandas-dev/pandas/issues/46856 - python -c 'import pandas; pandas.test(extra_args=["-m not clipboard", "--skip-slow", "--skip-network", "--skip-db", "-n=2", "-k not test_rolling_var_numerical_issues and not test_rolling_skew_kurt_large_value_range and not test_float_precision_options and not test_pairwise_with_self and not test_no_pairwise_with_self and not test_pickle_frame_v124_unpickle_130 and not test_git_version and not test_show_versions_console"])' + python -c 'import pandas; pandas.test(extra_args=["-m not clipboard", "--skip-slow", "--skip-network", "--skip-db", "-n=2", "-k not test_rolling_var_numerical_issues and not test_rolling_skew_kurt_large_value_range and not test_float_precision_options and not test_pairwise_with_self and not test_no_pairwise_with_self and not test_pickle_frame_v124_unpickle_130"])' }