Skip to content

Commit

Permalink
Fix python = 3.12 incompatibility (#120)
Browse files Browse the repository at this point in the history
* Update __init__.py

* Update __init__.py

* Linting update

---------

Co-authored-by: Patrick Huck <[email protected]>
  • Loading branch information
kavanase and tschaume authored Oct 22, 2024
1 parent b56cf53 commit 43351ff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pyrho/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
__author__ = """Jimmy Shen"""
__email__ = "[email protected]"


from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
pass
__version__ = version(__name__)
except PackageNotFoundError:
__version__ = "unknown"

0 comments on commit 43351ff

Please sign in to comment.