From 761194ef79a671bc2f64634275ea272583512d9d Mon Sep 17 00:00:00 2001 From: Alexander Getka Date: Fri, 6 Dec 2024 12:08:31 -0500 Subject: [PATCH] fix version fetching --- spare_scores/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spare_scores/cli.py b/spare_scores/cli.py index 598d6ab..cf80d2b 100644 --- a/spare_scores/cli.py +++ b/spare_scores/cli.py @@ -4,7 +4,8 @@ from .spare import spare_test, spare_train -VERSION = pkg_resources.require("spare_scores")[0].version +from importlib.metadata import version +VERSION = version("spare_scores") def main() -> None: