Changelog#

v0.4.0#

Breaking Changes

  • Remove deprecated Boilerplate.dump() and Boilerplate.save() methods

  • Boilerplate.template_provider_params option is replaced with provider settings

  • Replace EngineNotFound and TemplateProviderNotFound with single SpecResolutionError

  • Remove get_prept_template_provider(), resolve_template_provider(), TemplateProvider.name in favor of using provider class name for external providers

Enhancements and Changes

  • Key-specific configuration errors now contain the errorenous key in error message

v0.3.0#

Fixes

  • Fix prept uninstall and other commands failing due to PermissionError

v0.2.0#

Additions

  • Add variable_input_mode option to change behaviour of variables input prompt

  • Add support for template paths

  • Add support for dynamic generation

  • Add support for installation of boilerplates from git repositories

  • Add Context.state attribute for propagating stateful information

  • Add BoilerplateInfo.template_provider_params for passing additional options to template providers

Enhancements and Changes

  • PreptCLIError now supports proper indentation formatting of multiline error message and hint

  • TemplateProvider.render() has been renamed to TemplateProvider.process_content()

  • prept info now shows the basic details (name, required/optional, summary) of template variables

  • template_provider now takes spec in standard Python module format i.e. module:object

  • Output directories created by Prept are now properly cleaned up in case of errors during generation

  • .git directory is now ignored at installation time.

Fixes

  • Fix allow_extra_variables not having any effect

  • Fix template provider not resolving through class name when get_prept_template_provider() function was defined

  • Fix resolution failure for template providers from modules present in current working or boilerplate directory

v0.1.0#

Initial release