Releases: fidelity/spock
Releases · fidelity/spock
Spock v3.1.0
Spock v3.1.0 Release Notes
Major changes
- Adds map functionality as another post instantiation hook option. This allows you to directly map spock configs to object creation etc. automatically upon creation. (#279)
- Removal of Python 3.6 support (#296)
- Make sure to call close() to help prevent resource leak. (#296)
Minor changes
- Bump all the github actions ubuntu version to 20.04 since 18.04 got deprecated.
- Hotfix for help print of empty spock class .
- Bump pyyaml to get over cython error in 3.10
- Additional docs and tests.
Spock v3.0.2
Spock v3.0.2 Release Notes
Minor changes
- Fixed bug in allowing inherited
GenericType
to be optional. Since thetyping.Optional
annotation is stripped off of the parents, we needed to pass on the optional metadata to override the typing check.
Spock v3.0.1
Spock v3.0.1 Release Notes
Minor changes
- Fixed bug in the new resolver when there is both a cls and self variable reference -- casts were per type but needed to be one cast post all reference resolution
- Fixed bug in new types (
file
anddirectory
) for relative paths -- pathlib needs to call .resolve() prior to using the path - Added a helper methods module -- moved the
to_dict
method out of theSpockBuilder
and into helpers so it can be independent of having an instantiatedSpockBuilder
Spock v3.0.0
Spock v3.0.0 Release Notes
Major changes
- Added support for resolving value definitions from references to other defined variables with the following syntax
${spock.var:SpockClass.defined_variable}
(#272) - Added support for new fundamental types: (1) file: this is an overload of a str that verifies file existence and (r/w) access (2) directory: this is an overload of a str that verifies directory existence, creation if not existing, and (r/w) access. (#272)
- Deprecated support for
List
of repeated@spock
decorated classes. (#272)
Minor changes
Spock v2.5.2
Spock v2.5.2 Release Notes
Major Changes
- Added support for resolving value definitions from environmental variables with the following syntax,
${spock.env:name, default}
(#254) - Added
.inject
annotation that will write back the original env notation to the saved output (#254) - Added the
.crypto
annotation which provides a simple way to hide sensitive environmental variables while still maintaining the written/loadable state of the spock config (#254)
Minor Changes
- Added all currently installed packages to the info dump (in comment form) such that a minimal python env should be able to be re-constructed (#254)
- Additional docs
- Additional unit tests
Spock v2.5.1
Spock v2.5.1 Release Notes
Minor Changes
- Additional basic post hook methods in
utils
including support for optionals in existing methods, checking sum of iterable, checking lengths of iterables (#245, #251) - Bumped versioneer to newer version (#237)
- Added function on
SpockBuilder
class to convert individual instantiated spock classes from aSpockspace
into a dictionary representation (#247) - Updates to type hinting (#245)
- Additional docs cleanup for clarity (#236, #242, #248, #249)
- Additional unit tests
Spock v2.5.0
Spock v2.5.0 Release Notes
Major Changes
- Added support for typing.Dict types with type checking for types of both keys and values -- includes advanced types such as Dict[str, Tuple[Callable, Callable]] (#231)
- Added support for advanced typing.Callable types (e.g. List[List[Callable]]) (#230)
- Auto trigger post-init hooks (#232)
Minor Changes
- Fixed versions of pydoc-markdown to fix issue with doc building failing
- Additional unit tests
Spock v2.4.5
Spock v2.4.5 Release Notes
Major Changes
- Added support for simple
typing.Callable
types (WIP: advanced versions) - Added support for post init hooks that allow for validation on parameters defined within
@spock
decorated classes.
Additionally, added some common validation check to utils (within, greater than, less than, etc.)
Minor Changes
- Updated unit tests to support Python 3.10
- Additional unit tests
Spock v2.4.4
Spock v2.4.4 Release Notes
Minor Changes
- Fixes bug in inheritance of
Optional
typed parameters (#222)