From 42b52d8b02b7d5dd46014d3e73c88b4025047a66 Mon Sep 17 00:00:00 2001 From: pwwang <1188067+pwwang@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:25:20 -0700 Subject: [PATCH] 0.9.10 (#171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 Fix `utils.mark` and `get_marked` when `__meta__` is `None` * 🔖 0.9.10 --- docs/CHANGELOG.md | 4 ++++ pipen/utils.py | 4 ++-- pipen/version.py | 2 +- poetry.lock | 18 +++++++++--------- pyproject.toml | 2 +- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d3fcbd48..21847bfb 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.9.10 + +- 🐛 Fix `utils.mark` and `get_marked` when `__meta__` is `None` + ## 0.9.9 - ⚡️ `utils.mark` and `get_marked` now work with `ProcGroup` and other classes diff --git a/pipen/utils.py b/pipen/utils.py index 455d9f19..728f7942 100644 --- a/pipen/utils.py +++ b/pipen/utils.py @@ -551,7 +551,7 @@ def mark(**kwargs) -> Callable[[type], type]: The decorator """ def decorator(cls: type) -> type: - if not hasattr(cls, "__meta__"): + if not getattr(cls, "__meta__", None): cls.__meta__ = {} cls.__meta__.update(kwargs) @@ -571,7 +571,7 @@ def get_marked(cls: type, mark_name: str, default: Any = None) -> Any: Returns: The marked value """ - if not hasattr(cls, "__meta__"): + if not getattr(cls, "__meta__", None): return default return cls.__meta__.get(mark_name, default) diff --git a/pipen/version.py b/pipen/version.py index 0f0d0c9a..49b03081 100644 --- a/pipen/version.py +++ b/pipen/version.py @@ -1,3 +1,3 @@ """Provide version of pipen""" -__version__ = "0.9.9" +__version__ = "0.9.10" diff --git a/poetry.lock b/poetry.lock index 5f0f3db2..d212221a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2,14 +2,14 @@ [[package]] name = "aiofile" -version = "3.8.5" +version = "3.8.7" description = "Asynchronous file operations." category = "main" optional = false python-versions = ">=3.7, <4" files = [ - {file = "aiofile-3.8.5-py3-none-any.whl", hash = "sha256:6644b61ab143a8e516920cdb02d5b46f89c0a37ef036417720f653b5ed31a8c9"}, - {file = "aiofile-3.8.5.tar.gz", hash = "sha256:bb1ca0b2c4ef3b78f5012a2a3919a4151f873b6aabdc73a7b9b8e94edb2e01ae"}, + {file = "aiofile-3.8.7-py3-none-any.whl", hash = "sha256:4c38991b1227e221296fa05bbc95bffba9c203fef1ce09ad3076cfe7b61842c7"}, + {file = "aiofile-3.8.7.tar.gz", hash = "sha256:a8f9dec17282b3583337c4ef2d1a67f33072ab80dd03608041ed9e71b88dc521"}, ] [package.dependencies] @@ -296,14 +296,14 @@ pdtypes = ">=0.0.4,<0.0.5" [[package]] name = "diot" -version = "0.1.7" +version = "0.1.8" description = "Python dictionary with dot notation." category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ - {file = "diot-0.1.7-py3-none-any.whl", hash = "sha256:dc7c087bf58fdf78ea3f4268ea86ad4a870f622e3f2f3474d63b5bcaffd96da5"}, - {file = "diot-0.1.7.tar.gz", hash = "sha256:76f3622459e4d6cae5368629ff801e6c78631dc2037dce7b848e72cf5e31cded"}, + {file = "diot-0.1.8-py3-none-any.whl", hash = "sha256:f2d7d2f121e8a60cd06b7d1b476765e25c37002d0db44e0f5ef72dca98d22640"}, + {file = "diot-0.1.8.tar.gz", hash = "sha256:21408f8a09628bfb8c88791eaab1558a71692adff4e237c96b4b31a54d3cb2f5"}, ] [package.dependencies] @@ -453,14 +453,14 @@ ansicon = {version = "*", markers = "platform_system == \"Windows\""} [[package]] name = "liquidpy" -version = "0.8.0" +version = "0.8.1" description = "A port of liquid template engine for python" category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ - {file = "liquidpy-0.8.0-py3-none-any.whl", hash = "sha256:cd04559d400e8b9a0b6dc6096d5b9496252a875676d24685c4c74d1be607d5d3"}, - {file = "liquidpy-0.8.0.tar.gz", hash = "sha256:7e93bcf216ce76ceca0d699302d684e209e5ca757ac98d4a0003daec4325c4bc"}, + {file = "liquidpy-0.8.1-py3-none-any.whl", hash = "sha256:c3113c849d0199badb6ffaff0e57191a4c215920c3281e883fdb5840a7dd63a4"}, + {file = "liquidpy-0.8.1.tar.gz", hash = "sha256:b67b28b177f8d3cdc8cc107392352711b38a5f64b612f20a0b2d5c79852767a0"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index 7c8d4afe..89b5559d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "pipen" -version = "0.9.9" +version = "0.9.10" description = "A pipeline framework for python" authors = [ "pwwang ",] license = "MIT"