GeoAlchemy2 0.17.0__py3-none-any.whl → 0.18.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geoalchemy2/__init__.py +4 -24
- geoalchemy2/_functions.py +175 -158
- geoalchemy2/_functions_helpers.py +4 -2
- geoalchemy2/admin/dialects/common.py +22 -0
- geoalchemy2/admin/dialects/geopackage.py +36 -0
- geoalchemy2/admin/dialects/mariadb.py +27 -26
- geoalchemy2/admin/dialects/mysql.py +36 -8
- geoalchemy2/admin/dialects/postgresql.py +101 -31
- geoalchemy2/admin/dialects/sqlite.py +74 -5
- geoalchemy2/alembic_helpers.py +1 -0
- geoalchemy2/comparator.py +4 -4
- geoalchemy2/elements.py +72 -7
- geoalchemy2/functions.py +3 -2
- geoalchemy2/functions.pyi +669 -2
- geoalchemy2/types/__init__.py +54 -36
- geoalchemy2/types/dialects/mariadb.py +17 -2
- geoalchemy2/types/dialects/mysql.py +2 -2
- {GeoAlchemy2-0.17.0.dist-info → geoalchemy2-0.18.0.dist-info}/METADATA +5 -6
- geoalchemy2-0.18.0.dist-info/RECORD +35 -0
- {GeoAlchemy2-0.17.0.dist-info → geoalchemy2-0.18.0.dist-info}/WHEEL +1 -1
- GeoAlchemy2-0.17.0.dist-info/RECORD +0 -35
- {GeoAlchemy2-0.17.0.dist-info → geoalchemy2-0.18.0.dist-info}/entry_points.txt +0 -0
- {GeoAlchemy2-0.17.0.dist-info → geoalchemy2-0.18.0.dist-info/licenses}/COPYING.rst +0 -0
- {GeoAlchemy2-0.17.0.dist-info → geoalchemy2-0.18.0.dist-info}/top_level.txt +0 -0
geoalchemy2/__init__.py
CHANGED
@@ -20,32 +20,12 @@ from geoalchemy2.types import Raster # noqa
|
|
20
20
|
|
21
21
|
admin.setup_ddl_event_listeners()
|
22
22
|
|
23
|
-
|
24
|
-
# Get version number
|
25
|
-
__version__ = "UNKNOWN VERSION"
|
26
|
-
|
27
|
-
# Attempt to use importlib.metadata first because it's much faster
|
28
|
-
# though it's only available in Python 3.8+ so we'll need to fall
|
29
|
-
# back to pkg_resources for Python 3.7 support
|
30
23
|
try:
|
31
|
-
|
32
|
-
except ImportError:
|
33
|
-
try:
|
34
|
-
from pkg_resources import DistributionNotFound
|
35
|
-
from pkg_resources import get_distribution
|
36
|
-
except ImportError: # pragma: no cover
|
37
|
-
pass
|
38
|
-
else:
|
39
|
-
try:
|
40
|
-
__version__ = get_distribution("GeoAlchemy2").version
|
41
|
-
except DistributionNotFound: # pragma: no cover
|
42
|
-
pass
|
43
|
-
else:
|
44
|
-
try:
|
45
|
-
__version__ = importlib.metadata.version("GeoAlchemy2")
|
46
|
-
except importlib.metadata.PackageNotFoundError: # pragma: no cover
|
47
|
-
pass
|
24
|
+
from importlib.metadata import version
|
48
25
|
|
26
|
+
__version__ = version("geoalchemy2")
|
27
|
+
except ImportError:
|
28
|
+
__version__ = "0.0.0"
|
49
29
|
|
50
30
|
__all__ = [
|
51
31
|
"__version__",
|