Skip to content

Commit

Permalink
Dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Oct 1, 2023
1 parent 3036311 commit fbf3761
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pypolyline/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("simplification")
except PackageNotFoundError:
# If the package is not installed, don't add __version__
pass

0 comments on commit fbf3761

Please sign in to comment.