From 693c2d333033d0febedc48e0da512515b27945f3 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 19:09:25 -0700 Subject: [PATCH 1/7] DEPS/CI: Filter numpy's FutureWarning from array_equal --- pandas/core/dtypes/cast.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 33b18d7a8c609..39ef8aad52bb7 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1611,6 +1611,9 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=RuntimeWarning) + warnings.filterwarnings( + "ignore", "elementwise comparison failed", FutureWarning + ) if np.array_equal(arr, casted): return casted From e36a6b7bfa0a9e7f54e75140c79dc191093ada95 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 20:23:52 -0700 Subject: [PATCH 2/7] Try moving tzdata? --- ci/deps/actions-310-numpydev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml index a500ad4a6f852..581eb9302962d 100644 --- a/ci/deps/actions-310-numpydev.yaml +++ b/ci/deps/actions-310-numpydev.yaml @@ -18,6 +18,7 @@ dependencies: - python-dateutil - pytz - pip + - tzdata>=2022.1 - pip: - "cython" @@ -25,4 +26,3 @@ dependencies: - "--pre" - "numpy" - "scipy" - - "tzdata>=2022.1" From 6e663725871d125159e8a50c25b41657e55d2a5b Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 20:34:47 -0700 Subject: [PATCH 3/7] No lower --- ci/deps/actions-310-numpydev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml index 581eb9302962d..8e8a2f163769e 100644 --- a/ci/deps/actions-310-numpydev.yaml +++ b/ci/deps/actions-310-numpydev.yaml @@ -18,7 +18,7 @@ dependencies: - python-dateutil - pytz - pip - - tzdata>=2022.1 + - tzdata - pip: - "cython" From b1c26aaef8c8a6f28b499ac0b6a8f70763aa60b3 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 20:51:07 -0700 Subject: [PATCH 4/7] comment out to test --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b670bc3cdd036..f9d31005d3ec1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ "numpy>=1.23.2; python_version>='3.11'", "python-dateutil>=2.8.2", "pytz>=2020.1", - "tzdata>=2022.1" + # "tzdata>=2022.1" ] classifiers = [ 'Development Status :: 5 - Production/Stable', From 3510ae00c97ff40839878bf7db759d803cfc3d13 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:15:59 -0700 Subject: [PATCH 5/7] Revert "comment out to test" This reverts commit b1c26aaef8c8a6f28b499ac0b6a8f70763aa60b3. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f9d31005d3ec1..b670bc3cdd036 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ "numpy>=1.23.2; python_version>='3.11'", "python-dateutil>=2.8.2", "pytz>=2020.1", - # "tzdata>=2022.1" + "tzdata>=2022.1" ] classifiers = [ 'Development Status :: 5 - Production/Stable', From 7b86a70c8f6c98d8ac444e33f7381d281b3c6016 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:16:07 -0700 Subject: [PATCH 6/7] Revert "No lower" This reverts commit 6e663725871d125159e8a50c25b41657e55d2a5b. --- ci/deps/actions-310-numpydev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml index 8e8a2f163769e..581eb9302962d 100644 --- a/ci/deps/actions-310-numpydev.yaml +++ b/ci/deps/actions-310-numpydev.yaml @@ -18,7 +18,7 @@ dependencies: - python-dateutil - pytz - pip - - tzdata + - tzdata>=2022.1 - pip: - "cython" From 49d754301498e7058d32104143bc5e5c3317692f Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:16:18 -0700 Subject: [PATCH 7/7] Revert "Try moving tzdata?" This reverts commit e36a6b7bfa0a9e7f54e75140c79dc191093ada95. --- ci/deps/actions-310-numpydev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml index 581eb9302962d..a500ad4a6f852 100644 --- a/ci/deps/actions-310-numpydev.yaml +++ b/ci/deps/actions-310-numpydev.yaml @@ -18,7 +18,6 @@ dependencies: - python-dateutil - pytz - pip - - tzdata>=2022.1 - pip: - "cython" @@ -26,3 +25,4 @@ dependencies: - "--pre" - "numpy" - "scipy" + - "tzdata>=2022.1"