Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-invoke
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-invoke: updated to 3.0.3 3.0.3 2026-04-07 [Support]: Reverted the @task return value type hint change; it actually just makes things worse. Taking this one back to the drawing table for later. 3.0.2 2026-04-06 [Bug]: Define a custom __repr__ for Promise so it can be displayed in interactive sessions or other debug contexts, without running afoul of AttributeError. Thanks to Leonid Shvechikov for the original bug report. [Support]: Make the return value type hint for @task more specific; as-is it would trigger typecheck errors when handing regular, decorated task functions as inputs to add_task and similar methods. 3.0.1 2026-04-06 [Support]: Minor tweaks to documentation and type hints/inheritance (mostly around Promise).
py-invoke: updated to 2.2.1 2.2.1 [Bug] 1038: (fixed in 1040) Python 3.14 tweaked the behavior of fcntl to raise SystemError on buffer overflows, which our interpretation of termios.TIOCGWINSZ technically was (we care only about the first two fields in what is technically a four-field struct with half the fields unused). This has been fixed by unpacking all 4 fields and then discarding the unused fields during processing.
py-invoke: updated to 2.2.0 2.2.0 2023-07-12 [Feature]: Remove the somewhat inaccurate subclass requirement around Config’s .clone(into=...) constructor call. It was broken for certain use cases (such as trying to clone one subclass into a sibling subclass, which would yield a TypeError) and is irrelevant if one is using the new type annotations. [Support] Make sure py.typed is in our packaging manifest; without it, users working from a regular installation can’t perform type checks. Thanks to Nikita Sobolev for catch & patch. 2.1.3 2023-06-14 [Bug] After the release of 2.1, package-style task modules started looking in the wrong place for project-level config files (inside one’s eg tasks/ dir, instead of next to that dir) due to a subtlety in the new import/discovery mechanism used. This has been fixed. Thanks to Arnaud V. and Hunter Kelly for the reports and to Jesse P. Johnson for initial debugging/diagnosis. 2.1.2 2023-05-15 [Support] Make sure py.typed is in our packaging manifest; without it, users working from a regular installation can’t perform type checks. Thanks to Nikita Sobolev for catch & patch. 2.1.1 2023-05-01 [Bug] Add more rigor around subprocess/runner shutdown to avoid spurious exceptions & also fix downstream issues in libraries like Fabric. Reported by Orlando Rodríguez. [Bug] The importlib upgrade in 2.1 had a corner case bug (regarding from . import <submodule> functionality within package-like task trees) which in turn exposed a false-pass in our test suite. Both have now been fixed. Thanks to Greg Meyer and Robert J. Berger for the bug reports. 2.0.1 2023-04-29 [Bug] Add more rigor around subprocess/runner shutdown to avoid spurious exceptions & also fix downstream issues in libraries like Fabric. Reported by Orlando Rodríguez. [Support] Tweak test suite setup methods to be named setup_method so pytest stops whining about it. Patch via Jesse P. Johnson. 2.1.0 2023-04-28 [Bug] Resolve equality comparison bug for non-collections. Patch via Jesse P. Johnson [Support] Tweak test suite setup methods to be named setup_method so pytest stops whining about it. Patch via Jesse P. Johnson. [Support] Implement type hints and type checking tests with mypy to reduce errors and impove code documentation. Patches by Jesse P. Johnson and review by Sam Bull. [Support] Implement importlib and deprecate imp module. Patches provided by Jesse P. Johnson 2.0.0 2023-01-16 [Support]: Task.argspec has changed its return value; it now returns an inspect.Signature derived from that of the task’s body callable.
py-invoke: updated to 1.7.3 1.7.3 2022-09-30 [Support] Fix a non-fatal bug in our setup.py long_description generation causing 1.7.0-1.7.2 to have malformed description text on PyPI. 1.7.2 2022-09-30 [Bug] Fix errors thrown when comparing Task objects to non-Task objects; such comparisons are now always false. [Bug] Refactor CLI parser instantiation such that the tasks.ignore_unknown_help feature (added in 1.7) works when Invoke is run in --complete mode, i.e. in tab-completion scripts.
py-invoke: added version 1.7.1 Invoke is a Python library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks. It draws inspiration from various sources (make/rake, Fabric 1.x, etc) to arrive at a powerful & clean feature set.