Skip to content

Commit

Permalink
0.6.2 (#153)
Browse files Browse the repository at this point in the history
* ⬆️ Adopt xqute 0.1.5

* 📝 Update README.md

* 🔖 0.6.2
  • Loading branch information
pwwang authored Mar 14, 2023
1 parent 23c8205 commit 51eb15d
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 17 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ https://github.com/pwwang/pipen-report/tree/master/example
Plugins make `pipen` even better.

- [`pipen-verbose`][15]: Add verbosal information in logs for pipen.
- [`pipen-lock`][25]: Process lock for pipen to prevent multiple runs at the same time.
- [`pipen-report`][16]: Generate report for pipen
- [`pipen-filters`][17]: Add a set of useful filters for pipen templates.
- [`pipen-diagram`][18]: Draw pipeline diagrams for pipen
- [`pipen-annotate`][26]: Use docstring to annotate pipen processes
- [`pipen-args`][19]: Command line argument parser for pipen
- [`pipen-dry`][20]: Dry runner for pipen pipelines
- [`pipen-cli-init`][21]: A pipen CLI plugin to create a pipen project (pipeline)
Expand Down Expand Up @@ -168,3 +170,5 @@ Plugins make `pipen` even better.
[22]: https://github.com/pwwang/pipen-cli-run
[23]: https://libraries.io/github/pwwang/pipen#repository_dependencies
[24]: https://github.com/pwwang/pipen-cli-require
[25]: https://github.com/pwwang/pipen-lock
[26]: https://github.com/pwwang/pipen-annotate
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.6.2

- ⬆️ Adopt xqute 0.1.5

## 0.6.1

- 🐛 Fix path expansion for `~/.pipen.toml` in defaults.
Expand Down
4 changes: 2 additions & 2 deletions pipen/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def output(self) -> Mapping[str, Any]:
outdir=str(self.outdir),
stdout_file=str(self.stdout_file),
stderr_file=str(self.stderr_file),
lock_file=str(self.lock_file),
jid_file=str(self.jid_file),
),
"in": self.input,
"in_": self.input,
Expand Down Expand Up @@ -201,7 +201,7 @@ def template_data(self) -> Mapping[str, Any]:
outdir=str(self.outdir),
stdout_file=str(self.stdout_file),
stderr_file=str(self.stderr_file),
lock_file=str(self.lock_file),
jid_file=str(self.jid_file),
),
"in": self.input,
"in_": self.input,
Expand Down
9 changes: 8 additions & 1 deletion pipen/progressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,28 @@ def update_job_retrying(self):

def update_job_running(self):
"""Update the progress bar when a job is running"""
self.running_counter.update_from(self.submitted_counter)
try:
self.running_counter.update_from(self.submitted_counter)
except ValueError: # pragma: no cover
pass

def update_job_succeeded(self):
"""Update the progress bar when a job is succeeded"""
try:
self.success_counter.update_from(self.running_counter)
except ValueError: # pragma: no cover
self.success_counter.update_from(self.submitted_counter)
except: # noqa: E722 # pragma: no cover
pass

def update_job_failed(self):
"""Update the progress bar when a job is failed"""
try:
self.failure_counter.update_from(self.running_counter)
except ValueError: # pragma: no cover
self.failure_counter.update_from(self.submitted_counter)
except: # noqa: E722 # pragma: no cover
pass

def done(self):
"""The process is done"""
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.6.1"
__version__ = "0.6.2"
24 changes: 12 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.6.1"
version = "0.6.2"
description = "A pipeline framework for python"
authors = [ "pwwang <[email protected]>",]
license = "MIT"
Expand Down

0 comments on commit 51eb15d

Please sign in to comment.