Skip to content

Commit 8363ebc

Browse files
committed
refactor: Derive __version__ using importlib.metadata.
This replaces the existing approach that uses a version file generated by setuptools-scm.
1 parent 701ac8f commit 8363ebc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pytest_asyncio/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
from __future__ import annotations
44

5-
from ._version import version as __version__ # noqa: F401
5+
from importlib.metadata import version
6+
67
from .plugin import fixture, is_async_test
78

9+
__version__ = version(__name__)
10+
811
__all__ = ("fixture", "is_async_test")

0 commit comments

Comments
 (0)