Skip to content

0.2

Compare
Choose a tag to compare
@StephaneCapponi StephaneCapponi released this 10 Aug 19:57
· 7 commits to master since this release

Socon 0.2 (2023-08-10)

Breaking Changes

  • #13 : As Socon is still as it's premise, we allow breaking changes
    between two MINORS. The following needs to be adapted if you were using Socon 0.1.x.

    To get a manager you now need to use managers.get_manager instead of BaseManager.get_manager.
    The managers instance is accessible via socon.core.manager import managers.

Features

  • #28 : Added a new type of command called SubclassCommand. This type of command allow you to define multiple commands under one command.

  • #26 : The terminal.sep method now have a parameter to specify if you want to add a newline before, after or at both location (before and after)

  • #11 : Add a call_command(...) method to call a command internally.

  • #9 : Add a function to style the terminal output. This function was also implemented in the TerminalWriter.
    This way you can directly pass the markup you want to any TerminalWriter methods.

  • #6 : Add a new admin command called createcommand.
    This command automatically create a ProjectCommand or a BaseCommand in the common space or the specified project.

Bug Fixes

  • #37 : Fixed by calling parse_args of the called command

  • #32: Fixed by adding \n (newline) to the CommandError exception handler

Improved Documentation

  • #27 : Fix indentation in the custom-managers-and-hooks documentation.

  • #15 : Add examples in the README.rst

  • #10 : Fix typo in tutorial 1. deploy instead of deploy.py

  • #4 : Fix wrong path to settings.py in the first tutorial

Trivial/Internal Changes

  • #8 : Add pre-commit, fix and run isort