Skip to content

6.0.0 Pydantic 2 support and new Cmd model

Compare
Choose a tag to compare
@mpkocher mpkocher released this 25 Jul 17:22
· 25 commits to master since this release
51ccf76
  • Support for Pydantic >= 2.8
  • Backwards incompatible change. Use Cmd model.
  • Remove "sp" specific functions. No longer necessary because of Cmd interface.
  • To migrate forward, inherit from Cmd and put your "main" function as Cmd.run method.
  • Cmd.run() should return None (on success) or raise an exception on error.
  • Pydantic 2 has a different "optional" definition
  • Use CliConfig instead of DefaultConfig
  • Many backward incompatible changes to how bool are used. Use Pydantic bool casting (e.g., --dry-run y, or --dry-run true).