From 9cd1a6b5021f4eae8c7ce65d96855d6626e02b6b Mon Sep 17 00:00:00 2001 From: Jesse Johnson Date: Mon, 14 Apr 2025 22:06:51 +0200 Subject: [PATCH 1/2] fix: update importlib --- src/compendium/loader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compendium/loader.py b/src/compendium/loader.py index 3d2cf21..89b48b0 100644 --- a/src/compendium/loader.py +++ b/src/compendium/loader.py @@ -1,12 +1,13 @@ # copyright: (c) 2020 by Jesse Johnson. # license: Apache 2.0, see LICENSE for more details. # pylint: disable=unused-import +# noqa: F401 """Control configuration files.""" # from weakref import ref -import importlib import logging import os +from importlib.util import find_spec from typing import Any, Dict, Optional, Type from compendium import exceptions @@ -17,7 +18,7 @@ from compendium.filetypes.yaml import YamlConfig from compendium.settings import Settings -if importlib.util.find_spec('xmltodict'): # type: ignore +if find_spec('xmltodict'): from compendium.filetypes.xml import XmlConfig log = logging.getLogger(__name__) From 0ab5f88ac75627ed0f96cb5ce15110b0bdf3dc5e Mon Sep 17 00:00:00 2001 From: "Jesse P. Johnson" Date: Mon, 14 Apr 2025 22:14:45 +0200 Subject: [PATCH 2/2] build: update fix version --- pyproject.toml | 2 +- src/compendium/__init__.py | 2 +- tests/test_version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7fe81ee..a90ef1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "compendium" -version = "0.1.3.post9" +version = "0.1.4" description = "Simple layered configuraion tool" authors = [{name="Jesse P. Johnson", email="jpj6652@gmail.com"}] maintainers = [{name="Jesse P. Johnson", email="jpj6652@gmail.com"}] diff --git a/src/compendium/__init__.py b/src/compendium/__init__.py index 0379abf..42d0e49 100644 --- a/src/compendium/__init__.py +++ b/src/compendium/__init__.py @@ -16,7 +16,7 @@ __author_email__ = 'jpj6652@gmail.com' __title__ = 'compendium' __description__ = 'Inspection based parser built on argparse.' -__version__ = '0.1.3' +__version__ = '0.1.4' __license__ = 'Apache-2.0' __copyright__ = 'Copyright 2020 Jesse Johnson.' __all__ = [ diff --git a/tests/test_version.py b/tests/test_version.py index de92668..5ca4c07 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -8,4 +8,4 @@ def test_version(): """Test project version is managed.""" - assert __version__ == '0.1.3' + assert __version__ == '0.1.4'