- Add a new
-i/--ignore
option to thetemplatekit check
command. This option allows the user to ignore certain files when checking for untracked files or dirty Git state after regenerating examples. This is useful for files that have dynamic content, such as dates and times, that we do not expect to be consistent. - Migrate the packaging to
pyproject.toml
and retire thesetup.cfg
andsetup.py
files. - Migrate to the new Rubin user guide theme for documentation.
- Add GitHub Actions workflow to update pre-commit hooks with Neophile.
- Adopted the PyPI trusted publishers workflow.
- Fix an incorrect import in the SCons builder.
- Fix reporting of SCons status in
templatekit check
.
- Update build system to current SQuaRE standards.
- Add type annotations for all code.
- Unpin all dependencies for easier use as a library.
- The click dependency is no longer pinned. This fixes compatibility with cookiecutter 1.7, which requires click 7.
- Added a new
templatekit check
command. This command helps both developers and CI scripts ensure that the template repository is well-structured and that all examples are up-to-date. Thetemplatekit check
command runsscons
to regenerate examples, and then checks the Git state to ensure that there are no untracked or modified files, which might indicate that there are uncommitted changes to examples. - Internally, the
templatekit.Repo
class exposes agit.Repo
instance from GitPython. Seetemplatekit.Repo.gitrepo
,templatekit.Repo.is_git_dirty
, andtemplatekit.Repo.untracked_files
.
- A new Jinja filter,
escape_yaml_doublequoted
, is available as part of thetemplatekit.TemplatekitExtension
. This filter is meant to be used with template variables that are inside double-quoted string fields in a YAML file. The filter escapes both double quote characters ("
) and backslash characters (\
). - There is a new "Template developer" guide, which lists the
escape_yaml_doublequoted
filter and provides tips on how to write YAML files in templates. - The development procedure is now part of the documentation, rather than the README.
- New support for
templatekit.yaml
files. These files, which get added alongsidecookiecutter.json
files, refine the presentation of templates in Slack user interactions (see the Templatebot project). For example, templates have nice names (name
field) and can be grouped in selection menus (group_name
field). Thedialog_fields
field provides configuration for fields in the Slack dialogs where a user configures their new file or project. - Cerberus is a new dependency of Templatekit.
templatekit.yaml
files are validated against a Cerberus schema.
- Fix typo in PyPI classifiers that prevented deployment to PyPI.
- Fix setup.py so that setuptools_scm is activated.
- Extracted Templatekit from https://github.com/lsst/templates. By splitting the Templatekit application from the templates repository, we can version Templatekit and release it through PyPI.
- Versioning with setuptools_scm.
- Sphinx documentation site.
(DM-16940)