pypyr release v4.4.0
simplified py step syntax & imports for !py strings.
Release Date: 2020-12-26T15:50:27Z
- New step pypyr.steps.pyimport to import
references to the
!pystring namespace.- This includes an underlying api signature change by removal of
pypyr.utils.expressions.eval_string(), but this is sufficiently far down the call-chain that it shouldnโt affect any normal pipeline operator or api consumer.
- This includes an underlying api signature change by removal of
- pypyr.steps.contextclearall wipes
pyimportimported references in addition to the key/values inside context. - Simplify
pypyr.steps.pysyntax by allowing a newpy(rather thanpycode) input. This allows pipeline authors to use context key names directly as variables, rather than have to specify them as keys in context (my_varvscontext[โmy_varโ]).- See pypyr.steps.py for details on how to use the new style input.
- the old
pycodestyle will keep on working in the same way, so no need to worry about backwards compatibility for your existing pipelines.
- Allow substitutions on retry
max. Resolves #207. Excellent bug find & fix by @Reskov, much thanks ๐ ๐ ๐ as ever for a superb contribution! ๐ฅ ๐ฅ ๐ฅ foreachcan now use any iterable, including generators. See how you can use this for flattening nested for loops to simplify your pipelines when you have multiple nestedforeachloops.
how to upgrade
If you want to upgrade (and you totally should!):
$ pip install --upgrade pypyrsource
You can find pypyr release v4.4.0 on github, where you can click through to associated Issues, Pull Requests and Users.
Released by yaythomas.