We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__version__
1 parent b4d7138 commit 14b6310Copy full SHA for 14b6310
1 file changed
src/uuid6/__init__.py
@@ -4,18 +4,14 @@
4
generating version 6, 7, and 8 UUIDs as specified in RFC 9562.
5
"""
6
7
-# Get version
8
-try:
9
- from ._version import version as __version__ # type: ignore
10
-except ImportError:
11
- __version__ = "0.0.0.dev0"
12
-
13
+import importlib.metadata
14
import secrets
15
import time
16
import uuid
17
from typing import Optional, Tuple
18
+__version__ = importlib.metadata.version(__package__)
+
19
20
class UUID(uuid.UUID):
21
r"""Instances of the UUID class represent UUIDs as specified in RFC 9562."""
0 commit comments