From 840d18d03e37031d2e0622765411d1243ba1bb25 Mon Sep 17 00:00:00 2001 From: Ben Bariteau Date: Mon, 9 Oct 2023 16:48:53 -0700 Subject: [PATCH] de-dupe version metadata using `importlib.metadata` --- testify/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testify/__init__.py b/testify/__init__.py index a1efd16..99ab295 100644 --- a/testify/__init__.py +++ b/testify/__init__.py @@ -45,8 +45,9 @@ ) from .exceptions import TestifyError from .assertions import * +import importlib.metadata __testify = 1 -__version__ = "0.11.0" +__version__ = importlib.metadata.version('testify') # We want default warning behavior for DeprecationWarning's thrown within testify.