Browser and install GUI for cookiecutter templates

⌈⌋ ⎇ branch:  cookiedough


Check-in [3ad729af6e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix typo, again.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3ad729af6e251d90cf230e9bb1213303a55cf76e999c6dc0c4291acf288cc792
User & Date: mario 2021-03-26 14:01:37
Context
2021-03-26
21:48
Current database structure, release as 0.2.0 check-in: ab9b5be71f user: mario tags: trunk, 0.2.0
14:01
Fix typo, again. check-in: 3ad729af6e user: mario tags: trunk
13:39
Minor documentation fixes check-in: 419835e82a user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.md.

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 * Tkinter might also crash when encountering emojis. (Either install
   Symbola font and get rid of Noto Color Emoji. Or upgrade to tcl/tk
   8.6.10, or go back to Ubuntu 18.04 where it miraculously worked.)


## See also

 * [Improving your cookiecutters.json](https://fossil.include-once.org/cookiedough/wiki/improve)
 * [How/what to contribute](https://fossil.include-once.org/cookiedough/wiki/contribute)
 * [uidata struct](https://fossil.include-once.org/cookiedough/wiki/uidata)
 * [usage](https://fossil.include-once.org/cookiedough/wiki/usage)



## from `project` import `meta`







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 * Tkinter might also crash when encountering emojis. (Either install
   Symbola font and get rid of Noto Color Emoji. Or upgrade to tcl/tk
   8.6.10, or go back to Ubuntu 18.04 where it miraculously worked.)


## See also

 * [Improving your cookiecutter.json](https://fossil.include-once.org/cookiedough/wiki/improve)
 * [How/what to contribute](https://fossil.include-once.org/cookiedough/wiki/contribute)
 * [uidata struct](https://fossil.include-once.org/cookiedough/wiki/uidata)
 * [usage](https://fossil.include-once.org/cookiedough/wiki/usage)



## from `project` import `meta`

Changes to cookiedough/rollout.py.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# encoding: utf-8
# api: cookiedough
# type: function
# title: roll out
# description: deploy selected cookiecutter template
# category: action
# version: 0.6
# config:
#     { name: use_defaults, type: bool, value: 1, description: Use defaults from cookiecutter config, help: Apply default_context from ~/.config/cookiercutter/config over template vars, and before replay data. }
#     { name: replay, type: bool, value: 1, description: Use replay/ variables as defaults, help: Overrides input variables with previous inputs for the same template. }
#     { name: update_ccjson, type: bool, value: 1, description: Update parameters from cookiecutter.json files, help: avoids extra prompts if template infos outdated }
#     { name: hook_prompt, type: bool, value: 1, description: Display any additional prompts as GUI inputs, help: hook prompt.* functions }
#     { name: no_params, type: bool, value: 0, description: Don't prompt for template vars. Use terminal prompts instead., help: You might as well use cookiecutter directly then. }
#     { name: verbose, type: bool, value: 0, description: cookiecutter --verbose for more details on extraction, help: Will print any output to console }
# priority: core
# depends: python:cookiecutter








|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# encoding: utf-8
# api: cookiedough
# type: function
# title: roll out
# description: deploy selected cookiecutter template
# category: action
# version: 0.6
# config:
#     { name: use_defaults, type: bool, value: 1, description: Use defaults from cookiecutter config, help: Apply default_context from ~/.config/cookiecutter/config over template vars, and before replay data. }
#     { name: replay, type: bool, value: 1, description: Use replay/ variables as defaults, help: Overrides input variables with previous inputs for the same template. }
#     { name: update_ccjson, type: bool, value: 1, description: Update parameters from cookiecutter.json files, help: avoids extra prompts if template infos outdated }
#     { name: hook_prompt, type: bool, value: 1, description: Display any additional prompts as GUI inputs, help: hook prompt.* functions }
#     { name: no_params, type: bool, value: 0, description: Don't prompt for template vars. Use terminal prompts instead., help: You might as well use cookiecutter directly then. }
#     { name: verbose, type: bool, value: 0, description: cookiecutter --verbose for more details on extraction, help: Will print any output to console }
# priority: core
# depends: python:cookiecutter
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
        repo_url, directory = m.groups() # from http://repo.git/?dir=template2/
    else:
        directory = None
    if params:
        no_input = True
    else:
        no_input = False # from conf[no_params], set by task.__init__
    # inject verbose flag (alternatively: use cookiercutter.cli instead of .main)
    if conf["verbose"]:
        import cookiecutter.log
        cookiecutter.log.configure_logger(stream_level='DEBUG', debug_file=None)
    # run
    dir = cookiecutter.main.cookiecutter(
        template=repo_url,
        #checkout=None,







|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
        repo_url, directory = m.groups() # from http://repo.git/?dir=template2/
    else:
        directory = None
    if params:
        no_input = True
    else:
        no_input = False # from conf[no_params], set by task.__init__
    # inject verbose flag (alternatively: use cookiecutter.cli instead of .main)
    if conf["verbose"]:
        import cookiecutter.log
        cookiecutter.log.configure_logger(stream_level='DEBUG', debug_file=None)
    # run
    dir = cookiecutter.main.cookiecutter(
        template=repo_url,
        #checkout=None,
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
        licenses = [
            "MIT", "BSD-2-Clause", "AFL-3.0", "AGPL-3.0-or-later", "Apache-2.0", "Artistic-2.0", "BSD-3-Clause", "CC-BY-4.0",
            "EUPL-1.2", "EPL-2.0", "GPL-2.0-or-later", "GPL-3.0-or-later", "LGPL-2.1-or-later", "LGPL-3.0-or-later", "MPL-2.0",
            "OSL-3.0", "Python-2.0", "QPL-1.0", "Ruby", "TCL", "WTFPL", "Zend-2.0", "ZPL-2.1"]
        yn = { "y":"y", "n":"n" }
        plugins = { "cc": {
            "id": "cc", "title": "cookiecutter defaults", "description": "common prompts/variables in templates",
            "doc": "List of most commonly used variables. Unfortunately there's\na bit of duplication/overlap here, because the cookiercutter\nproject never recommended any standard names.",
            "version": "2021.3", "type": "config", "category": "variables",
            "config": [
                { "name": 'email', "type": "str", "value": "", "description": "Author email address" },
                { "name": 'author_name', "type": "str", "value": "", "description": "Author name" },
                { "name": 'github_username' , "type": "str", "value": "", "description": "GH account name" },
                { "name": 'open_source_license' , "type": "select", "select": {k:k for k in licenses}, "value": "", "description": "Default license name" },
                { "name": 'author_email', "type": "str", "value": "", "description": "Author email address" },







|







330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
        licenses = [
            "MIT", "BSD-2-Clause", "AFL-3.0", "AGPL-3.0-or-later", "Apache-2.0", "Artistic-2.0", "BSD-3-Clause", "CC-BY-4.0",
            "EUPL-1.2", "EPL-2.0", "GPL-2.0-or-later", "GPL-3.0-or-later", "LGPL-2.1-or-later", "LGPL-3.0-or-later", "MPL-2.0",
            "OSL-3.0", "Python-2.0", "QPL-1.0", "Ruby", "TCL", "WTFPL", "Zend-2.0", "ZPL-2.1"]
        yn = { "y":"y", "n":"n" }
        plugins = { "cc": {
            "id": "cc", "title": "cookiecutter defaults", "description": "common prompts/variables in templates",
            "doc": "List of most commonly used variables. Unfortunately there's\na bit of duplication/overlap here, because the cookiecutter\nproject never recommended any standard names.",
            "version": "2021.3", "type": "config", "category": "variables",
            "config": [
                { "name": 'email', "type": "str", "value": "", "description": "Author email address" },
                { "name": 'author_name', "type": "str", "value": "", "description": "Author name" },
                { "name": 'github_username' , "type": "str", "value": "", "description": "GH account name" },
                { "name": 'open_source_license' , "type": "select", "select": {k:k for k in licenses}, "value": "", "description": "Default license name" },
                { "name": 'author_email', "type": "str", "value": "", "description": "Author email address" },