Skip to content

Releases: fidelity/spock

Spock v3.1.0

03 Nov 15:13
2e40d04
Compare
Choose a tag to compare

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

25 Jan 11:35
47bf3cf
Compare
Choose a tag to compare

Spock v3.0.2 Release Notes

Minor changes

  • Fixed bug in allowing inherited GenericType to be optional. Since the typing.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

19 Jan 15:28
af305f4
Compare
Choose a tag to compare

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 and directory) 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 the SpockBuilder and into helpers so it can be independent of having an instantiated SpockBuilder

Spock v3.0.0

17 Jan 14:12
8bd55a4
Compare
Choose a tag to compare

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

  • Fixes detecting cycles in graphs. (#272)
  • Fixes #260 and issues with Tuples enforcing len and checking type.
  • Updated docs.
  • Bumped black support for 3.10.
  • Added pre-commit hooks.
  • Updated linter.

Spock v2.5.2

17 May 18:12
6c2cadc
Compare
Choose a tag to compare

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

28 Apr 15:51
a14fb43
Compare
Choose a tag to compare

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 a Spockspace 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

21 Mar 15:28
6d1213d
Compare
Choose a tag to compare

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

11 Mar 21:43
0d4b82a
Compare
Choose a tag to compare

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

18 Feb 21:01
a07c209
Compare
Choose a tag to compare

Spock v2.4.4 Release Notes

Minor Changes

  • Fixes bug in inheritance of Optional typed parameters (#222)

Spock v2.4.3

01 Feb 20:54
b22f30c
Compare
Choose a tag to compare

Spock v2.4.3 Release Notes

Minor Changes

  • Fixes bug in lazy evaluation of @spock dependencies (#218)
  • Updated some deps (major versions) (#209, #214)