Skip to content

Commit

Permalink
0.11.0 (#45)
Browse files Browse the repository at this point in the history
* 👷 Use newer actions

* 📝 Fix github action badegs

* 🩹 Allow ast_fallback to be changed for verbs and functions

* 🔖 0.11.1
  • Loading branch information
pwwang authored Jan 18, 2023
1 parent 1466005 commit b727fd7
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 225 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Python # Set Python version
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python # Set Python version
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -35,7 +35,7 @@ jobs:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Fix index.html
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ See also [datar][6] for real-case usages.
[9]: https://img.shields.io/github/v/tag/pwwang/pipda?style=flat-square
[10]: https://github.com/pwwang/pipda
[11]: https://img.shields.io/pypi/pyversions/pipda?style=flat-square
[12]: https://img.shields.io/github/workflow/status/pwwang/pipda/Build%20and%20Deploy?style=flat-square
[13]: https://img.shields.io/github/workflow/status/pwwang/pipda/Build%20Docs?style=flat-square
[12]: https://img.shields.io/github/actions/workflow/status/pwwang/pipda/build.yml?label=CI&style=flat-square
[13]: https://img.shields.io/github/actions/workflow/status/pwwang/pipda/docs.yml?label=docs&style=flat-square
[14]: https://app.codacy.com/gh/pwwang/pipda/dashboard
[15]: https://img.shields.io/codacy/coverage/75d312da24c94bdda5923627fc311a99?style=flat-square
[16]: https://img.shields.io/codacy/grade/75d312da24c94bdda5923627fc311a99?style=flat-square
Expand Down
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 0.11.1

- 👷 Use newer actions
- 📝 Fix github action badegs
- 🩹 Allow ast_fallback to be changed for verbs and functions

## 0.11.0

- 💥 Simplify `register_expr_array_func` and rename it to `register_array_ufunc`
Expand Down
2 changes: 1 addition & 1 deletion pipda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .verb import VerbCall, register_verb
from .piping import register_piping, _patch_default_classes

__version__ = "0.11.0"
__version__ = "0.11.1"

register_piping(">>")
_patch_default_classes()
3 changes: 2 additions & 1 deletion pipda/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def wrapper(*args, **kwargs):
return dispatch(backend=backend)(*args, **kwargs)

if pipeable:
ast_fb = kwargs.pop("__ast_fallback", ast_fallback)
ast_fb = kwargs.pop("__ast_fallback", wrapper.ast_fallback)

if is_piping(wrapper.__name__, ast_fb):
from .verb import VerbCall
Expand Down Expand Up @@ -459,6 +459,7 @@ def wrapper(*args, **kwargs):
wrapper.dispatch = dispatch
wrapper.register = register
wrapper.get_context = get_context
wrapper.ast_fallback = ast_fallback
wrapper.favorables = MappingProxyType(favorables)

update_wrapper(wrapper, func)
Expand Down
3 changes: 2 additions & 1 deletion pipda/verb.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def wrapper(*args, **kwargs):
if dependent:
return VerbCall(wrapper, *args, **kwargs)

ast_fb = kwargs.pop("__ast_fallback", ast_fallback)
ast_fb = kwargs.pop("__ast_fallback", wrapper.ast_fallback)
if is_piping(wrapper.__name__, ast_fb):
return VerbCall(wrapper, *args, **kwargs)

Expand All @@ -310,6 +310,7 @@ def wrapper(*args, **kwargs):
wrapper.register = register
wrapper.favorables = MappingProxyType(favorables)
wrapper.dependent = dependent
wrapper.ast_fallback = ast_fallback
wrapper.get_context = get_context
wrapper._pipda_functype = "verb"
update_wrapper(wrapper, func)
Expand Down
414 changes: 199 additions & 215 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipda"
version = "0.11.0"
version = "0.11.1"
readme = "README.md"
description = "A framework for data piping in python"
authors = ["pwwang <pwwang@pwwang.com>"]
Expand Down

0 comments on commit b727fd7

Please sign in to comment.