File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ dependencies = [
8484 " backports.zoneinfo<1; python_version<'3.9'" ,
8585 " crate>=2,<3" ,
8686 " geojson<4,>=2.5" ,
87+ " importlib-metadata; python_version<'3.8'" ,
8788 " importlib-resources; python_version<'3.9'" ,
8889 " sqlalchemy<2.1,>=1" ,
8990 " verlib2<0.3" ,
Original file line number Diff line number Diff line change 5252 monkeypatch_add_exec_driver_sql ()
5353
5454
55+ try :
56+ from importlib .metadata import PackageNotFoundError , version
57+ except (ImportError , ModuleNotFoundError ): # pragma:nocover
58+ from importlib_metadata import ( # type: ignore[assignment,no-redef,unused-ignore]
59+ PackageNotFoundError ,
60+ version ,
61+ )
62+
63+ try :
64+ __version__ = version ("sqlalchemy-cratedb" )
65+ except PackageNotFoundError : # pragma: no cover
66+ __version__ = "unknown"
67+
68+
5569__all__ = [
70+ __version__ ,
5671 dialect ,
5772 FloatVector ,
5873 Geopoint ,
You can’t perform that action at this time.
0 commit comments