Skip to content

Alfajor

Compare
Choose a tag to compare
@hackebrot hackebrot released this 18 Dec 21:58
· 966 commits to main since this release

The primary goal of this release was to add command-line support for passing extra context, address minor bugs and make a number of improvements.

New Features

  • Inject extra context with command-line arguments, thanks to @msabramo and @michaeljoseph (#666).
  • Updated conda installation instructions to work with the new conda-forge distribution of Cookiecutter, thanks to @pydanny and especially @bollwyvl (#232, #705).
  • Refactor code responsible for interaction with version control systems and raise better error messages, thanks to @michaeljoseph (#778).
  • Add support for executing cookiecutter using python -m cookiecutter or from a checkout/zip file, thanks to @brettcannon (#788).
  • New CLI option --debug-file PATH to store a log file on disk. By default no log file is written. Entries for DEBUG level and higher. Thanks to @hackebrot (#792).
  • Existing templates in a user's cookiecutters_dir (default is ~/.cookiecutters/) can now be referenced by directory name, thanks to @michaeljoseph (#825).
  • Add support for dict values in cookiecutter.json, thanks to @freakboy3742 and @hackebrot (#815, #858).
  • Add a jsonify filter to default jinja2 extensions that json.dumps a Python object into a string, thanks to @aroig (#791).

Bug Fixes

  • Fix typo in the error logging text for when a hook did not exit successfully, thanks to @luzfcb (#656)
  • Fix an issue around replay file names when cookiecutter is used with a relative path to a template, thanks to @eliasdorneles for raising the issue and @hackebrot for the PR (#752, #753)
  • Ignore hook files with tilde-suffixes, thanks to @hackebrot (#768)
  • Fix a minor issue with the code that generates a name for a template, thanks to @hackebrot (#798)
  • Handle empty hook file or other OS errors, thanks to @christianmlong for raising this bug and @jcarbaugh and @hackebrot for the fix (#632, #729, #862)
  • Resolve an issue with custom extensions not being loaded for pre_gen_project and post_gen_project hooks, thanks to @cheungnj (#860)

Other Changes