Skip to content

0.19.0

Compare
Choose a tag to compare
@ThibaultFy ThibaultFy released this 22 Nov 09:54
· 35 commits to main since this release
86b0e9c

0.19.0 - 2022-11-22

Changed

  • BREAKING CHANGE (#65)

    • Register functions to substratools can be done with a decorator.
    def my_function1:
      pass
    
    def my_function2:
      pass
    
    if __name__ == '__main__':
      tools.execute(my_function1, my_function2)

    become

    @tools.register
    def my_function1:
      pass
    
    @tools.register
    def my_function2:
      pass
    
    if __name__ == '__main__':
      tools.execute()
  • BREAKING CHANGE (#63)

    • Rename algo to function.
    • tools.algo.execute become tools.execute
    • The previous algo class pass to the function tools.algo.execute is now several functions pass as arguments to tools.execute. The function given by the cli --function-name is executed.
    if __name__ == '__main__':
      tools.algo.execute(MyAlgo())

    become

    if __name__ == '__main__':
      tools.execute(my_function1, my_function2)

Fixed

  • Remove depreciated pytest-runner from setup.py (#71)
  • Replace backslash by slash in TaskResources to fix windows compatibility (#70)
  • Update flake8 repository in pre-commit configuration (#69)
  • BREAKING CHANGE: Update substratools Docker image (#112)