Skip to content

Commit

Permalink
0.3.1 (#128)
Browse files Browse the repository at this point in the history
* 🩹 Hide config meta data in pipeline information

* 🔖 0.3.1
  • Loading branch information
pwwang authored May 12, 2022
1 parent 898ca7d commit 927b8a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1

- 🩹 Hide config meta data in pipeline information

## 0.3.0

- ⬆️ Upgrade dependencies
Expand Down
9 changes: 5 additions & 4 deletions pipen/pipen.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def _log_pipeline_info(self) -> None:
)
for name, plg in plugin.get_enabled_plugins().items()
]
config = ProfileConfig.detach(self.config)
for key, value in chain(
zip(
["# procs", "plugins", "profile", "outdir"],
Expand All @@ -285,17 +286,17 @@ def _log_pipeline_info(self) -> None:
),
sorted(
(key, val)
for key, val in self.config.items()
for key, val in config.items()
if not key.endswith("_opts")
),
(
(
"plugin_opts",
pprint.pformat(self.config.plugin_opts, indent=1),
pprint.pformat(config.plugin_opts, indent=1),
),
(
"scheduler_opts",
pprint.pformat(self.config.scheduler_opts, indent=1),
pprint.pformat(config.scheduler_opts, indent=1),
),
(
"template_opts",
Expand All @@ -318,7 +319,7 @@ def _log_pipeline_info(self) -> None:
if isinstance(val, dict)
else val
)
for key, val in self.config.template_opts.items()
for key, val in config.template_opts.items()
},
indent=1,
# sort_dicts=False,
Expand Down
2 changes: 1 addition & 1 deletion pipen/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Provide version of pipen"""

__version__ = "0.3.0"
__version__ = "0.3.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "pipen"
version = "0.3.0"
version = "0.3.1"
description = "A pipeline framework for python"
authors = [ "pwwang <[email protected]>",]
license = "MIT"
Expand Down

0 comments on commit 927b8a3

Please sign in to comment.