From 603bf0a1dfd4cf571ac6da7bcb33911cf5259ab2 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 22 Nov 2024 20:04:12 +0000 Subject: Adding metadata --- .../pyarrow/files/pyarrow-16.1.0-numpy-2.patch | 65 ---------------------- .../pyarrow/files/pyarrow-16.1.0-py313.patch | 60 -------------------- 2 files changed, 125 deletions(-) delete mode 100644 dev-python/pyarrow/files/pyarrow-16.1.0-numpy-2.patch delete mode 100644 dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch (limited to 'dev-python/pyarrow/files') diff --git a/dev-python/pyarrow/files/pyarrow-16.1.0-numpy-2.patch b/dev-python/pyarrow/files/pyarrow-16.1.0-numpy-2.patch deleted file mode 100644 index d43e15746408..000000000000 --- a/dev-python/pyarrow/files/pyarrow-16.1.0-numpy-2.patch +++ /dev/null @@ -1,65 +0,0 @@ -diff --git a/pyarrow/tests/parquet/common.py b/pyarrow/tests/parquet/common.py -index 8365ed5b28543..c3094ee20b34c 100644 ---- a/pyarrow/tests/parquet/common.py -+++ b/pyarrow/tests/parquet/common.py -@@ -83,7 +83,7 @@ def _random_integers(size, dtype): - iinfo = np.iinfo(dtype) - return np.random.randint(max(iinfo.min, platform_int_info.min), - min(iinfo.max, platform_int_info.max), -- size=size).astype(dtype) -+ size=size, dtype=dtype) - - - def _range_integers(size, dtype): -diff --git a/pyarrow/tests/test_array.py b/pyarrow/tests/test_array.py -index 88394c77e429d..1032ab9add3ca 100644 ---- a/pyarrow/tests/test_array.py -+++ b/pyarrow/tests/test_array.py -@@ -3398,7 +3398,7 @@ def test_numpy_array_protocol(): - result = np.asarray(arr) - np.testing.assert_array_equal(result, expected) - -- if Version(np.__version__) < Version("2.0"): -+ if Version(np.__version__) < Version("2.0.0.dev0"): - # copy keyword is not strict and not passed down to __array__ - result = np.array(arr, copy=False) - np.testing.assert_array_equal(result, expected) -diff --git a/pyarrow/tests/test_pandas.py b/pyarrow/tests/test_pandas.py -index be2c5b14e68b0..ba9d6a3c01391 100644 ---- a/pyarrow/tests/test_pandas.py -+++ b/pyarrow/tests/test_pandas.py -@@ -780,7 +780,7 @@ def test_integer_no_nulls(self): - info = np.iinfo(dtype) - values = np.random.randint(max(info.min, np.iinfo(np.int_).min), - min(info.max, np.iinfo(np.int_).max), -- size=num_values) -+ size=num_values, dtype=dtype) - data[dtype] = values.astype(dtype) - fields.append(pa.field(dtype, arrow_dtype)) - -diff --git a/pyarrow/tests/test_table.py b/pyarrow/tests/test_table.py -index a58010d083e92..f40759de50c8c 100644 ---- a/pyarrow/tests/test_table.py -+++ b/pyarrow/tests/test_table.py -@@ -3281,7 +3281,7 @@ def test_numpy_array_protocol(constructor): - table = constructor([[1, 2, 3], [4.0, 5.0, 6.0]], names=["a", "b"]) - expected = np.array([[1, 4], [2, 5], [3, 6]], dtype="float64") - -- if Version(np.__version__) < Version("2.0"): -+ if Version(np.__version__) < Version("2.0.0.dev0"): - # copy keyword is not strict and not passed down to __array__ - result = np.array(table, copy=False) - np.testing.assert_array_equal(result, expected) -diff --git a/scripts/test_leak.py b/scripts/test_leak.py -index f2bbe8d051bf9..86a87f5e742e8 100644 ---- a/scripts/test_leak.py -+++ b/scripts/test_leak.py -@@ -98,7 +98,7 @@ def func(): - - - def test_ARROW_8801(): -- x = pd.to_datetime(np.random.randint(0, 2**32, size=2**20), -+ x = pd.to_datetime(np.random.randint(0, 2**32, size=2**20, dtype=np.int64), - unit='ms', utc=True) - table = pa.table(pd.DataFrame({'x': x})) - diff --git a/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch b/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch deleted file mode 100644 index f3e0053dd003..000000000000 --- a/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff --git a/python/pyarrow/src/arrow/python/udf.cc b/python/pyarrow/src/arrow/python/udf.cc -index e9b72a2592738..b6a862af8ca07 100644 ---- a/pyarrow/src/arrow/python/udf.cc -+++ b/pyarrow/src/arrow/python/udf.cc -@@ -28,6 +28,10 @@ - #include "arrow/util/checked_cast.h" - #include "arrow/util/logging.h" - -+// Py_IsFinalizing added in Python 3.13.0a4 -+#if PY_VERSION_HEX < 0x030D00A4 -+#define Py_IsFinalizing() _Py_IsFinalizing() -+#endif - namespace arrow { - using compute::ExecSpan; - using compute::Grouper; -@@ -47,7 +51,7 @@ struct PythonUdfKernelState : public compute::KernelState { - // function needs to be destroyed at process exit - // and Python may no longer be initialized. - ~PythonUdfKernelState() { -- if (_Py_IsFinalizing()) { -+ if (Py_IsFinalizing()) { - function->detach(); - } - } -@@ -64,7 +68,7 @@ struct PythonUdfKernelInit { - // function needs to be destroyed at process exit - // and Python may no longer be initialized. - ~PythonUdfKernelInit() { -- if (_Py_IsFinalizing()) { -+ if (Py_IsFinalizing()) { - function->detach(); - } - } -@@ -132,7 +136,7 @@ struct PythonTableUdfKernelInit { - // function needs to be destroyed at process exit - // and Python may no longer be initialized. - ~PythonTableUdfKernelInit() { -- if (_Py_IsFinalizing()) { -+ if (Py_IsFinalizing()) { - function_maker->detach(); - } - } -@@ -173,7 +177,7 @@ struct PythonUdfScalarAggregatorImpl : public ScalarUdfAggregator { - }; - - ~PythonUdfScalarAggregatorImpl() override { -- if (_Py_IsFinalizing()) { -+ if (Py_IsFinalizing()) { - function->detach(); - } - } -@@ -270,7 +274,7 @@ struct PythonUdfHashAggregatorImpl : public HashUdfAggregator { - }; - - ~PythonUdfHashAggregatorImpl() override { -- if (_Py_IsFinalizing()) { -+ if (Py_IsFinalizing()) { - function->detach(); - } - } -- cgit v1.3