zarr-developers / VirtualiZarr

Create virtual Zarr stores from archival data files using xarray syntax
https://virtualizarr.readthedocs.io/en/latest/
Apache License 2.0
95 stars 18 forks source link

Add dunder version to top-level __init__.py #133

Closed maxrjones closed 3 months ago

maxrjones commented 3 months ago

This PR makes the following work:

python -c "import virtualizarr; print(virtualizarr.__version__)"

Welcome any feedback, in particular if there's a reason to use setuptools_scm's write_to rather than importlib.metadata.

TomNicholas commented 3 months ago

Thanks!

in particular if there's a reason to use setuptools_scm's write_to rather than importlib.metadata

No idea 😅 I'm happy to merge this now though?

maxrjones commented 3 months ago

No idea 😅 I'm happy to merge this now though?

Cool, thanks! Maybe it just allowed people to avoid a provisional feature, which importlib.metadata was until 3.10