From 44d20d27072ad4d9311dc12b3cdd6aff0707829c Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:13:24 -0700 Subject: [PATCH 1/2] CI: Ignore numpy.distutils from array_api_compat --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c28f9259c749c..f9d14469f8c84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -501,6 +501,8 @@ filterwarnings = [ "ignore:distutils Version classes are deprecated:DeprecationWarning:numexpr", "ignore:distutils Version classes are deprecated:DeprecationWarning:fastparquet", "ignore:distutils Version classes are deprecated:DeprecationWarning:fsspec", + # From numpy -> scipy -> array_api_compat doing a "from numpy import *" + "ignore:.*numpy.distutils:DeprecationWarning:numpy", ] junit_family = "xunit2" markers = [ From 9ebc2a65cce6e20ccbcb33d4a7609cc7493cc670 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:34:16 -0700 Subject: [PATCH 2/2] change test args instea --- .github/workflows/unit-tests.yml | 4 +++- pyproject.toml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 66d8320206429..003fc7192abbc 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -76,7 +76,9 @@ jobs: - name: "Numpy Dev" env_file: actions-311-numpydev.yaml pattern: "not slow and not network and not single_cpu" - test_args: "-W error::DeprecationWarning -W error::FutureWarning" + # TODO: Add back "-W error::DeprecationWarning" once testing on PY312 or + # https://github.com/data-apis/array-api-compat/issues/53 is fixed + test_args: "-W error::FutureWarning" # TODO(cython3): Re-enable once next-beta(after beta 1) comes out # There are some warnings failing the build with -werror pandas_ci: "0" diff --git a/pyproject.toml b/pyproject.toml index f9d14469f8c84..c28f9259c749c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -501,8 +501,6 @@ filterwarnings = [ "ignore:distutils Version classes are deprecated:DeprecationWarning:numexpr", "ignore:distutils Version classes are deprecated:DeprecationWarning:fastparquet", "ignore:distutils Version classes are deprecated:DeprecationWarning:fsspec", - # From numpy -> scipy -> array_api_compat doing a "from numpy import *" - "ignore:.*numpy.distutils:DeprecationWarning:numpy", ] junit_family = "xunit2" markers = [