From 3a3d2f3b930aecf92d40216a306509c14ced93c0 Mon Sep 17 00:00:00 2001 From: "Tod D. Romo" Date: Mon, 12 Aug 2024 16:21:28 -0400 Subject: [PATCH] Adding support for version metadata within loos package --- loos/setup.cfg | 2 +- loos/src/loos/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/loos/setup.cfg b/loos/setup.cfg index e3c2d5c02..70f348153 100644 --- a/loos/setup.cfg +++ b/loos/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = loos -version = 4.1.0 +version = 4.1.1 author = The Loos Developers author_email = loos.maintainer@gmail.com description = Python packages extending loos diff --git a/loos/src/loos/__init__.py b/loos/src/loos/__init__.py index 3722fa545..223b44737 100644 --- a/loos/src/loos/__init__.py +++ b/loos/src/loos/__init__.py @@ -1 +1,4 @@ from .loos import * +import importlib.metadata + +__version__ = importlib.metadata.version("loos")