From c782f291a9e6b654d7b7018f4ea8d30ddb139c75 Mon Sep 17 00:00:00 2001 From: Kostya Esmukov Date: Tue, 22 Oct 2019 23:09:31 +0300 Subject: [PATCH] Add CHANGES for 0.2 --- CHANGES.rst | 34 +++++++++++++++++++++++++++++++ src/scaraplate/automation/base.py | 2 ++ src/scaraplate/rollup.py | 3 +++ 3 files changed, 39 insertions(+) create mode 100644 CHANGES.rst diff --git a/CHANGES.rst b/CHANGES.rst new file mode 100644 index 0000000..ca787bf --- /dev/null +++ b/CHANGES.rst @@ -0,0 +1,34 @@ +CHANGES +======= + +0.2 +--- +2019-10-22 + +New features: + +* Add RenderedTemplateFileHash strategy (#7). + Contributed by Jonathan Piron. +* Raise an error when the cookiecutter context file is not generated (#9) +* Add support for extra_context to cli (like in `cookiecutter` command) (#10) +* Add jinja2 support to strategies mapping (#13) +* Add automation via Python + built-in support for Git-based projects + and GitLab (#11) + +Behaviour changes: + +* Strategies: detect newline type from the target file and preserve it (#12) + +Packaging changes: + +* Add ``jinja2`` requirement (#13) +* Add ``setuptools`` requirement (for ``pkg_resources`` package) (#11) +* Add ``[gitlab]`` extras for installing ``python-gitlab`` (#11) +* Add support for Python 3.8 + + +0.1 +--- +2019-07-27 + +Initial public release. diff --git a/src/scaraplate/automation/base.py b/src/scaraplate/automation/base.py index ff59c44..c7291f6 100644 --- a/src/scaraplate/automation/base.py +++ b/src/scaraplate/automation/base.py @@ -35,6 +35,8 @@ def automatic_rollup( If the target project contains any changes (as reported by :meth:`.ProjectVCS.is_dirty`), they will be committed by calling :meth:`.ProjectVCS.commit_changes`. + + .. versionadded:: 0.2 """ with ExitStack() as stack: diff --git a/src/scaraplate/rollup.py b/src/scaraplate/rollup.py index 29bfef6..b1424e2 100644 --- a/src/scaraplate/rollup.py +++ b/src/scaraplate/rollup.py @@ -47,6 +47,9 @@ def rollup( Added `extra_context` argument which supersedes :class:`scaraplate.cookiecutter.CookieCutterContext` context. Useful to provide context values non-interactively. + + ``scaraplate.yaml`` now supports cookiecutter variables + in the `strategies_mapping`` keys. """ template_path = Path(template_dir) target_path = Path(target_project_dir)