Skip to content

Commit d3f08af

Browse files
committed
enh: updated isolated_venv manifest cookiecutter
Signed-off-by: habeck <habeck@us.ibm.com>
1 parent d8c64a3 commit d3f08af

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1+
name: "{{ cookiecutter.plugin_name }}"
2+
{% set class_parts = cookiecutter.plugin_name.replace(' ', '_').replace('-','_').split('_') -%}
3+
{% if class_parts|length > 1 -%}
4+
{% set class_name = class_parts|map('capitalize')|join -%}
5+
{% else -%}
6+
{% set class_name = class_parts|join -%}
7+
{% endif -%}
18
description: "{{cookiecutter.description}}"
9+
kind: "isolated_venv"
210
author: "{{cookiecutter.author}}"
311
version: "{{cookiecutter.version}}"
412
available_hooks:
513
- "prompt_pre_hook"
614
- "prompt_post_hook"
715
- "tool_pre_hook"
816
- "tool_post_hook"
9-
default_configs:
17+
default_config:
18+
# Plugin config dict passed to the plugin constructor
19+
class_name: "{{ cookiecutter.plugin_slug }}.plugin.{{ class_name }}"
20+
requirements_file: "requirements.txt"
21+
monorepo:
22+
package_source: contextforge-plugins-python/{{ cookiecutter.plugin_slug }}
23+
# package_info:

0 commit comments

Comments
 (0)