fix: fix packer logging issue
This commit is contained in:
@@ -35,7 +35,7 @@ class App:
|
|||||||
f"requested minimum version is not fulfilled. {metadata.min_version} required got {VERSION}"
|
f"requested minimum version is not fulfilled. {metadata.min_version} required got {VERSION}"
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"fail to initialize packer: {e}")
|
logging.error(f"fail to initialize packer: %s", e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
@@ -48,20 +48,20 @@ class App:
|
|||||||
# copy header files
|
# copy header files
|
||||||
logging.info("Copying header files...")
|
logging.info("Copying header files...")
|
||||||
for info in resolve_include_copy(self.__ctx):
|
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)
|
archiver.push_file(info.from_path, info.to_path)
|
||||||
# copy lib files
|
# copy lib files
|
||||||
logging.info("Copying library files...")
|
logging.info("Copying library files...")
|
||||||
for info in resolve_lib_copy(self.__ctx):
|
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)
|
archiver.push_file(info.from_path, info.to_path)
|
||||||
# copy package distribution files
|
# copy package distribution files
|
||||||
logging.info("Creating package manager files...")
|
logging.info("Creating package manager files...")
|
||||||
for info in resolve_cmake_copy(self.__ctx):
|
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)
|
archiver.push_text(info.text, info.to_path)
|
||||||
for info in resolve_pkgconfig_copy(self.__ctx):
|
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)
|
archiver.push_text(info.text, info.to_path)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class CMakeProperties:
|
|||||||
raise ValueError(
|
raise ValueError(
|
||||||
"bad namespace component in CMake. consider manually specifying it"
|
"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(
|
raise ValueError(
|
||||||
"bad target name component in CMake. consider manually specifying it"
|
"bad target name component in CMake. consider manually specifying it"
|
||||||
)
|
)
|
||||||
|
|||||||
Generated
+1
-1
@@ -68,7 +68,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sarasacw-omrf-packer"
|
name = "sarasacw-omrf-packer"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "jinja2" },
|
{ name = "jinja2" },
|
||||||
|
|||||||
Reference in New Issue
Block a user