gweis / isodate

ISO 8601 date/time parser
BSD 3-Clause "New" or "Revised" License
155 stars 59 forks source link

missing __version__ #62

Closed mbnshtck closed 1 month ago

hugovk commented 3 years ago

Fixed in the fork at https://github.com/isodate/isodate/pull/10.

hugovk commented 2 years ago

I can remake the PR here if wanted, or you can do a similar thing to get the version of packages easily in your own code:

try:
    # Python 3.8+
    import importlib.metadata as importlib_metadata
except ImportError:
    # <Python 3.7 and lower: python -m pip install importlib-metadata
    import importlib_metadata

print(importlib_metadata.version("isodate"))
gweis commented 1 month ago

fixed in 0.7