Setting `use_documentation: no` results in an error when creating a template
Expected Behavior
Creating the template using freva-plugin-template create
and setting use_documentation:no while leaving all other settings at their default value should complete successfully.
Current Behaviour
Going through all the steps of the freva plugin template creator with the above settings results in the following error:
UndefinedVariableInTemplate: Unable to create file 'README.md'. Error message: 'collections.OrderedDict object' has no
attribute 'documentation_license'. Context: OrderedDict([('cookiecutter', OrderedDict([('plugin_authors', 'Firstname
Lastname, Another-Firstname Lastname'), ('plugin_author_emails', 'someone@dkrz.de, someoneelse@dkrz.de'),
('plugin_maintainers', 'Firstname Lastname, Another-Firstname Lastname'), ('plugin_maintainer_emails', 'someone@dkrz.de,
someoneelse@dkrz.de'), ('project_name', 'RegiKlim'), ('gitlab_host', 'gitlab.dkrz.de'), ('gitlab_username',
'ch1187/plugins4freva'), ('git_remote_protocoll', 'https'), ('institution', 'Deutsche Klimarechenzentrum'),
('institution_url', 'https://www.dkrz.de'), ('conda_channels', 'conda-forge'), ('conda_dependencies', 'r-base, pip'),
('add_assets', 'yes'), ('pip_dependencies', 'numpy'), ('plugin_title', 'My Freva Plugin'), ('plugin_slug',
'my-freva-plugin'), ('plugin_folder', 'my_freva_plugin'), ('plugin_short_description', 'My Freva Plugin'), ('keywords', ''),
('_extensions', ['local_extensions.UnderlinedExtension']), ('copyright_holder', 'Deutsche Klimarechenzentrum'),
('copyright_year', '2024'), ('code_license', 'EUPL-1.2'), ('use_reuse', 'yes'), ('supplementary_files_license', 'CC0-1.0'),
('use_dkrz_runner', 'yes'), ('ci_build_stage', 'no'), ('use_cibuildwheel', 'no'), ('ci_matrix', 'no'), ('use_pytest_xdist',
'no'), ('deploy_plugin_in_ci', 'yes'), ('__ci_build_stage', 'no'), ('use_submodules', 'no'), ('_template',
'https://gitlab.dkrz.de/ch1187/plugins4freva/freva-plugin-template.git')]))])
Steps to reproduce
python -m venv venv
source venv/bin/activate
pip install git+https://gitlab.dkrz.de/ch1187/plugins4freva/freva-plugin-template.git@main
freva-plugin-template create
[-3/*] plugin_visibility (public, private) --default: public :
No input provided. Defaulting to 'public'
[-2/*] use_documentation (yes, no) --default: yes : no
Keep the remaining options at their default values.
Context (Environment)
On Levante module clint codes Python 3.10.12