diff --git a/packer/src/sarasacw_omrf_packer/__init__.py b/packer/src/sarasacw_omrf_packer/__init__.py index 7b6264a..2b3d961 100644 --- a/packer/src/sarasacw_omrf_packer/__init__.py +++ b/packer/src/sarasacw_omrf_packer/__init__.py @@ -35,7 +35,7 @@ class App: f"requested minimum version is not fulfilled. {metadata.min_version} required got {VERSION}" ) except Exception as e: - logging.error(f"fail to initialize packer: {e}") + logging.error(f"fail to initialize packer: %s", e) sys.exit(1) def run(self) -> None: @@ -48,20 +48,20 @@ class App: # copy header files logging.info("Copying header files...") for info in resolve_include_copy(self.__ctx): - logging.info("Copying {0} -> {1}", info.from_path, info.to_path) + logging.info("Copying %s -> %s", info.from_path, info.to_path) archiver.push_file(info.from_path, info.to_path) # copy lib files logging.info("Copying library files...") for info in resolve_lib_copy(self.__ctx): - logging.info("Copying {0} -> {1}", info.from_path, info.to_path) + logging.info("Copying %s -> %s", info.from_path, info.to_path) archiver.push_file(info.from_path, info.to_path) # copy package distribution files logging.info("Creating package manager files...") for info in resolve_cmake_copy(self.__ctx): - logging.info("Creating {0}", info.to_path) + logging.info("Creating %s", info.to_path) archiver.push_text(info.text, info.to_path) for info in resolve_pkgconfig_copy(self.__ctx): - logging.info("Creating {0}", info.to_path) + logging.info("Creating %s", info.to_path) archiver.push_text(info.text, info.to_path) diff --git a/packer/src/sarasacw_omrf_packer/renders/cmake.py b/packer/src/sarasacw_omrf_packer/renders/cmake.py index e35c3db..f38b0f4 100644 --- a/packer/src/sarasacw_omrf_packer/renders/cmake.py +++ b/packer/src/sarasacw_omrf_packer/renders/cmake.py @@ -57,7 +57,7 @@ class CMakeProperties: raise ValueError( "bad namespace component in CMake. consider manually specifying it" ) - if not utils.is_good_name(self.target_name) is None: + if not utils.is_good_name(self.target_name): raise ValueError( "bad target name component in CMake. consider manually specifying it" ) diff --git a/packer/uv.lock b/packer/uv.lock index d780305..7d46fb2 100644 --- a/packer/uv.lock +++ b/packer/uv.lock @@ -68,7 +68,7 @@ wheels = [ [[package]] name = "sarasacw-omrf-packer" -version = "0.1.0" +version = "1.0.0" source = { editable = "." } dependencies = [ { name = "jinja2" },