Skip to content

Commit 9d6edb6

Browse files
committed
dependency updates and fix for lazy attribute accessors
1 parent c2e6505 commit 9d6edb6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ stubdeps = [ # dependencies used for typehints in the stubs
234234
"typing-extensions",
235235
]
236236
test = [ # dependencies used for running tests
237-
"adbc-driver-manager; sys_platform != 'win32' or platform_machine != 'ARM64'",
237+
"adbc-driver-manager>=1.10.0; python_version >= '3.10' and (sys_platform != 'win32' or platform_machine != 'ARM64')",
238+
"adbc-driver-manager>=1.7.0; python_version < '3.10' and (sys_platform != 'win32' or platform_machine != 'ARM64')",
238239
"pytest",
239240
"pytest-reraise",
240241
"pytest-timeout",
@@ -252,8 +253,10 @@ test = [ # dependencies used for running tests
252253
"requests",
253254
"urllib3",
254255
"fsspec>=2022.11.0; sys_platform != 'win32' or platform_machine != 'ARM64'",
255-
"pandas>=2.0.0",
256-
"pyarrow>=18.0.0; sys_platform != 'win32' or platform_machine != 'ARM64'",
256+
"pandas>=3.0.0; python_version > '3.10'",
257+
"pandas<3.0.0; python_version < '3.11'",
258+
"pyarrow>=23.0.0; python_version >= '3.10' and (sys_platform != 'win32' or platform_machine != 'ARM64')",
259+
"pyarrow>=18.0.0; python_version < '3.10' and (sys_platform != 'win32' or platform_machine != 'ARM64')",
257260
"torch>=2.2.2; python_version < '3.14' and ( sys_platform != 'darwin' or platform_machine != 'x86_64' or python_version < '3.13' ) and ( sys_platform != 'win32' or platform_machine != 'ARM64' or python_version > '3.11' )",
258261
"tensorflow==2.14.0; sys_platform == 'darwin' and python_version < '3.12'",
259262
"tensorflow-cpu>=2.14.0; sys_platform == 'linux' and platform_machine != 'aarch64' and python_version < '3.12'",

src/duckdb_py/pyresult.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void DuckDBPyResult::ConvertDateTimeTypes(PandasDataFrame &df, bool date_as_obje
304304
// We need to create the column anew because the exact dt changed to a new timezone
305305
ReplaceDFColumn(df, names[i].c_str(), i, new_value);
306306
} else if (date_as_object && result->types[i] == LogicalType::DATE) {
307-
auto new_value = df[names[i].c_str()].attr("dt").attr("date");
307+
py::object new_value = df[names[i].c_str()].attr("dt").attr("date");
308308
ReplaceDFColumn(df, names[i].c_str(), i, new_value);
309309
}
310310
}

0 commit comments

Comments
 (0)