diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a9b291cb..eb77095b 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.6.4 + +- 🔀 Set desc from docstring if not given for pipelines + ## 0.6.3 - 🔊 Trim right spaces of logs diff --git a/pipen/pipen.py b/pipen/pipen.py index 804dae20..9427a106 100644 --- a/pipen/pipen.py +++ b/pipen/pipen.py @@ -26,6 +26,7 @@ from .progressbar import PipelinePBar from .utils import ( copy_dict, + desc_from_docstring, get_logpanel_width, get_plugin_context, log_rich_renderable, @@ -91,7 +92,11 @@ def __init__( except VarnameException: self.name = f"pipen-{self.__class__.PIPELINE_COUNT}" - self.desc = desc or self.__class__.desc + self.desc = ( + desc + or self.__class__.desc + or desc_from_docstring(self.__class__) + ) self.outdir = Path( outdir or self.__class__.outdir diff --git a/pipen/version.py b/pipen/version.py index 1d76cf7a..850b7e44 100644 --- a/pipen/version.py +++ b/pipen/version.py @@ -1,3 +1,3 @@ """Provide version of pipen""" -__version__ = "0.6.3" +__version__ = "0.6.4" diff --git a/pyproject.toml b/pyproject.toml index 0cd4e056..908bde25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "pipen" -version = "0.6.3" +version = "0.6.4" description = "A pipeline framework for python" authors = [ "pwwang ",] license = "MIT"