Skip to content

Releases: fidelity/spock

Spock v2.4.2

31 Jan 15:17
5e07103
Compare
Choose a tag to compare

Spock v2.4.2 Release Notes

Minor Changes

  • Fixes missing import paths for SavePath that broke backwards compatibility (#216)

Stoke v2.4.1

26 Jan 21:08
15aa79c
Compare
Choose a tag to compare

Spock v2.4.1 Release Notes

Minor Changes

  • Added evolve functionality similar to the underlying attrs lib that allows you to evolve the underlying Spockspace and return a new Spockspace object with the requested deltas. The evolve interface takes in instantiated @spock decorated classes, uses the deltas to evolve the underlying attrs classes, and then returns a new SpockSpace object (#211)
  • Added in a function to convert any SpockSpace generated from a ConfigArgBuilder/SpockBuilder object to its dictionary representation (#213)
  • Updated documentation (#210, #212)

Spock v2.4.0

21 Jan 22:05
bafde78
Compare
Choose a tag to compare

Spock v2.4.0 Release Notes

Major Changes

  • Top Level API: ConfigArgBuilder is now renamed SpockBuilder and can now be imported from the top level spock module (e.g. from spock import SpockBuilder) -- fully backwards compatible such that any code using the prior interface will still work (#205)
  • Top Level API: The @spock decorated can now also be imported from the top level spock module (e.g. from spock import spock) -- fully backwards compatible such that any code using the prior interface will still work (#205)
  • Lazy Evaluation: The @spock decorator now has a boolean flag (dynamic) that allows inherited classes to not be @spock decorated -- this will automatically cast parent classes to a spock class by traversing the MRO (#205)
  • Lazy Evaluation: Dependencies/references between spock classes can be lazily handled thus preventing the need for every @spock decorated classes to be passed into *args within the main SpockBuilder API -- uses the lazy flag within the SpockBuilder (#205)

Minor Changes

  • Added stubs that should help type hinting in pylance/pyright for @spock and @spockTuner decorated classes (VSCode) (#205, #206, #207, #208)
  • Moved some functionality not specific to the Graph class to the utils so they can be exposed (#203)
  • Changed how graphs look-up class references and build G{V, E} via the dictionaries -- now uses names instead of type references (#202, #204)
  • Added unit tests & cleaned up some old/useless code (#208)

Spock v2.3.3

10 Jan 20:19
14aa1ab
Compare
Choose a tag to compare

Spock v2.3.3 Release Notes

Minor Changes

  • New graph backend from #181 was causing translation from Spockspace to native python dictionary to fail in certain cases: (1) optional Enum's of @spock decorated classes, (2) nested @spock classes with definitions coming in from configuration file(s) -- as these were not getting recursed in the config check. Fixed with #201
  • Added more unit tests (#201)

Spock v2.3.2

03 Jan 20:29
d8eee88
Compare
Choose a tag to compare

Spock v2.3.2 Release Notes

Minor Changes

  • When coded values are passed to the repeated list def they now get caught via an instance check within the list field handlers (#200)
  • Allows for multiple semantics for defining defaults of lists of repeated classes. If no config values are passed or defaults are coded it will fall back on the base classes defaults and instantiate a list of length equal to the number of class instances specified in the default constructor (#200)
  • Added more unit tests (#200)

Spock v2.3.1

15 Dec 17:51
5b356c6
Compare
Choose a tag to compare

Spock v2.3.1 Release Notes

Minor Changes

  • Loosened deps to prevent clashing and reduce the number of dependabot PRs (#189)

Spock v2.3.0

14 Dec 21:21
06dd06d
Compare
Choose a tag to compare

Spock v2.3.0 Release Notes

Major Changes

  • Refactored the backend to better handle nested dependencies and for clarity (#152, #181 -- thank you @gbmarc1)

Refactors/Bug Fixes

  • Minor bug fixes
  • Additional test coverage
  • Changed docs backend (#182)

Spock v2.2.6

28 Oct 19:51
e9ca40b
Compare
Choose a tag to compare

Spock v2.2.6 Release Notes

Minor Changes

  • Dealt with recursion bug in nested spock classes where more than doubly nested classes were not getting recursed correctly (#139)
  • Added extra docs for command line args for nested spock classes (#139)

Spock v2.2.5

26 Oct 14:50
dbaad94
Compare
Choose a tag to compare

Spock v2.2.5 Release Notes

Minor Changes

  • Helper method to go from Spockspace to dictionary (recursively) (#138)
  • Various bug fixes (#138)
  • Dependency bumps (see here)

Spock v2.2.4

22 Sep 14:59
75444d9
Compare
Choose a tag to compare

Spock v2.2.4 Release Notes

Minor Changes

  • Dependency bumps (see here)