Skip to content

Commit

Permalink
Merge pull request #857 from Mause/packaging
Browse files Browse the repository at this point in the history
fix: remove packaging requirement
  • Loading branch information
Mause authored Dec 24, 2023
2 parents 567a23d + 5b9cafb commit 5576fc8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import duckdb
import sqlalchemy
from packaging.version import Version
from sqlalchemy import pool, text
from sqlalchemy import types as sqltypes
from sqlalchemy import util
Expand All @@ -39,9 +38,9 @@
from .datatypes import ISCHEMA_NAMES, register_extension_types

__version__ = "0.9.5"
sqlalchemy_version = Version(sqlalchemy.__version__)
sqlalchemy_version = sqlalchemy.__version__
duckdb_version: str = duckdb.__version__ # type: ignore[attr-defined]
supports_attach: bool = Version(duckdb_version) >= Version("0.7.0")
supports_attach: bool = duckdb_version >= "0.7.0"

if TYPE_CHECKING:
from sqlalchemy.base import Connection
Expand All @@ -52,7 +51,7 @@


class DBAPI:
paramstyle = "numeric_dollar" if sqlalchemy_version >= Version("2.0.0") else "qmark"
paramstyle = "numeric_dollar" if sqlalchemy_version >= "2.0.0" else "qmark"
apilevel = duckdb.apilevel
threadsafety = duckdb.threadsafety

Expand Down

0 comments on commit 5576fc8

Please sign in to comment.