pretalx / pretalx-plugin-cookiecutter

A cookiecutter for pretalx plugins
3 stars 2 forks source link

Cookiecutter fails because license field is missing #5

Closed johanvdw closed 1 year ago

johanvdw commented 1 year ago

With cookiecutter 2.4.0 I get the following error when trying to use the template:

(venv) johan@x1:/tmp$  cookiecutter https://github.com/pretalx/pretalx-plugin-cookiecutter
You've downloaded /home/johan/.cookiecutters/pretalx-plugin-cookiecutter before. Is it okay to delete 
and re-download it? [y/n] (y): 
  [1/7] repo_name (pretalx-superplugin): 
  [2/7] repo_url (GitHub repository URL): 
  [3/7] module_name (pretalx_superplugin): 
  [4/7] human_name (The pretalx super plugin): 
  [5/7] author_name (Your name): 
  [6/7] author_email (your-email@example.org): 
  [7/7] short_description (Short description): 
Unable to create file 'pyproject.toml'
Error message: 'collections.OrderedDict object' has no attribute 'license'
Context: {
    "_cookiecutter": {
        "author_email": "your-email@example.org",
        "author_name": "Your name",
        "human_name": "The pretalx super plugin",
        "module_name": "pretalx_superplugin",
        "repo_name": "pretalx-superplugin",
        "repo_url": "GitHub repository URL",
        "short_description": "Short description"
    },
    "cookiecutter": {
        "_checkout": null,
        "_output_dir": "/tmp",
        "_repo_dir": "/home/johan/.cookiecutters/pretalx-plugin-cookiecutter",
        "_template": "https://github.com/pretalx/pretalx-plugin-cookiecutter",
        "author_email": "your-email@example.org",
        "author_name": "Your name",
        "human_name": "The pretalx super plugin",
        "module_name": "pretalx_superplugin",
        "repo_name": "pretalx-superplugin",
        "repo_url": "GitHub repository URL",
        "short_description": "Short description"
    }
}
rixx commented 1 year ago

Oops, sorry, forgot to push the revert of the breaking commit.