Skip to content

Commit cfb16bb

Browse files
committed
feat: Add versions.get_versions for debugging
1 parent 4b5360e commit cfb16bb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/async_geotiff/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[cogeo]: https://cogeo.org/
44
"""
55

6-
from . import exceptions
6+
from . import exceptions, versions
77
from ._array import Array
88
from ._geotiff import GeoTIFF
99
from ._overview import Overview
@@ -19,4 +19,5 @@
1919
"Window",
2020
"__version__",
2121
"exceptions",
22+
"versions",
2223
]

src/async_geotiff/versions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Version information."""
2+
3+
from __future__ import annotations
4+
5+
from async_tiff import __version__ as async_tiff_version
6+
7+
from ._version import __version__
8+
9+
10+
def get_versions() -> dict[str, str]:
11+
"""Get package version information."""
12+
return {"async-geotiff": __version__, "async-tiff": async_tiff_version}

0 commit comments

Comments
 (0)