Unverified Commit 37bd9c17 authored by annalee's avatar annalee
Browse files
parent c813ec9a
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -6,7 +6,9 @@
, duckdb
, hypothesis
, ipython-sql
, pandas
, poetry-core
, pytest-remotedata
, snapshottest
, sqlalchemy
, typing-extensions
@@ -14,20 +16,18 @@

buildPythonPackage rec {
  pname = "duckdb-engine";
  version = "0.11.2";
  version = "0.12.0";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    repo = "duckdb_engine";
    owner = "Mause";
    rev = "refs/tags/v${version}";
    hash = "sha256-yW1gaZ0B6JNX98KzAxf146goniNmWnkMUmJRrScot1w=";
    hash = "sha256-cm0vbz0VZ2Ws6FDWJO16q4KZW2obs0CBNrfY9jmR+6A=";
  };

  patches = [ ./remote_data.patch ];

  nativeBuildInputs = [
    poetry-core
  ];
@@ -42,24 +42,27 @@ buildPythonPackage rec {
  '';

  disabledTests = [
    # this test tries to download the httpfs extension
    "test_preload_extension"
    "test_motherduck"
    # test should be skipped based on sqlalchemy version but isn't and fails
    "test_commit"
    # rowcount no longer generates an attribute error.
    "test_rowcount"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  checkInputs = [
    hypothesis
    ipython-sql
    # TODO(cpcloud): include pandas here when it supports sqlalchemy 2.0
    pandas
    pytest-remotedata
    snapshottest
    typing-extensions
  ];

  pytestFlagsArray = [
    "-m" "'not remote_data'"
  ];

  pythonImportsCheck = [
    "duckdb_engine"
  ];
+0 −24
Original line number Diff line number Diff line
diff --git a/duckdb_engine/tests/test_basic.py b/duckdb_engine/tests/test_basic.py
index 302636f..ed20f12 100644
--- a/duckdb_engine/tests/test_basic.py
+++ b/duckdb_engine/tests/test_basic.py
@@ -183,7 +183,6 @@ def test_get_views(engine: Engine) -> None:
 
 
 @mark.skipif(os.uname().machine == "aarch64", reason="not supported on aarch64")
-@mark.remote_data
 def test_preload_extension() -> None:
     duckdb.default_connection.execute("INSTALL httpfs")
     engine = create_engine(
diff --git a/duckdb_engine/tests/test_integration.py b/duckdb_engine/tests/test_integration.py
index 349c976..bf3dbaa 100644
--- a/duckdb_engine/tests/test_integration.py
+++ b/duckdb_engine/tests/test_integration.py
@@ -24,7 +24,6 @@ def test_integration(engine: Engine) -> None:
         conn.execute(text("select * from test_df"))
 
 
-@mark.remote_data
 @mark.skipif(
     "dev" in duckdb.__version__, reason="md extension not available for dev builds"  # type: ignore[attr-defined]
 )