Skip to content

Commit

Permalink
Upgraded version expose
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Nov 26, 2023
1 parent b35b2d1 commit 9dd87c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flexparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
:license: BSD, see LICENSE for more details.
"""


import pkg_resources
from importlib.metadata import version

try: # pragma: no cover
__version__ = pkg_resources.get_distribution("flexparser").version
__version__ = version("flexparser")
except Exception: # pragma: no cover
# we seem to have a local copy not installed without setuptools
# so the reported version will be unknown
Expand Down

0 comments on commit 9dd87c5

Please sign in to comment.