forked from cookiecutter/cookiecutter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ad378d
commit 61427f6
Showing
6 changed files
with
202 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"version": "2.0", | ||
"requires": { | ||
"python": ">=3" | ||
}, | ||
"jinja": { | ||
"optimized": true, | ||
"extensions": [ | ||
"cookiecutter.extensions.SlugifyExtension", | ||
"jinja2_time.TimeExtension" | ||
] | ||
}, | ||
"template": { | ||
"name": "cookiecutter-pytest-plugin", | ||
"version": "0.1", | ||
"description": "a cookiecutter to create pytest plugins with ease.", | ||
"authors": [ | ||
"Raphael Pierzina <raphael@hackebrot.de>", | ||
"Audrey Roy Greenfeld <aroy@alum.mit.edu>" | ||
], | ||
"license": "MIT", | ||
"keywords": [ | ||
"pytest", | ||
"python", | ||
"plugin" | ||
], | ||
"url": "https://github.com/pytest-dev/cookiecutter-pytest-plugin", | ||
"variables": [ | ||
{ | ||
"name": "full_name", | ||
"default": "Raphael Pierzina", | ||
"prompt": "What's your full name?", | ||
"description": "Please enter your full name. It will be displayed on the README file and used for the PyPI package definition.", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "email", | ||
"default": "raphael@hackebrot.de", | ||
"prompt": "What's your email?", | ||
"description": "Please enter an email address for the meta information in setup.py.", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "secret_token", | ||
"prompt": "Please enter your secret token", | ||
"type": "string", | ||
"hide_input": true | ||
}, | ||
{ | ||
"name": "plugin_name", | ||
"default": "emoji", | ||
"prompt": "What should be the name for your plugin?", | ||
"description": "Please enter a name for your plugin. We will prepend the name with 'pytest-'", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "module_name", | ||
"default": "{{cookiecutter.plugin_name|lower|replace('-','_')}}", | ||
"prompt": "Please enter a name for your base python module", | ||
"type": "string", | ||
"validation": "^[a-z_]+$" | ||
}, | ||
{ | ||
"name": "license", | ||
"default": "MIT", | ||
"prompt": "Please choose a license!", | ||
"description": "Cookiecutter will add an according LICENSE file for you and set the according classifier in setup.py.", | ||
"type": "string", | ||
"choices": [ | ||
"MIT", | ||
"BSD-3", | ||
"GNU GPL v3.0", | ||
"Apache Software License 2.0", | ||
"Mozilla Public License 2.0" | ||
] | ||
}, | ||
{ | ||
"name": "docs", | ||
"default": false, | ||
"prompt": "Do you want to generate a base for docs?", | ||
"description": "Would you like to generate documentation for your plugin? You will be able to choose from a number of generators.", | ||
"type": "yes_no" | ||
}, | ||
{ | ||
"name": "docs_tool", | ||
"default": "mkdocs", | ||
"prompt": "Which tool do you want to choose for generating docs?", | ||
"description": "There are a number of options for documentation generators. Please choose one. We will create a separate folder for you", | ||
"type": "string", | ||
"choices": [ | ||
"mkdocs", | ||
"sphinx" | ||
], | ||
"skip_if": "{{cookiecutter.docs == False}}" | ||
}, | ||
{ | ||
"name": "year", | ||
"default": "{% now 'utc', '%Y' %}", | ||
"prompt_user": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "incept_year", | ||
"default": 2017, | ||
"prompt_user": false, | ||
"type": "int" | ||
}, | ||
{ | ||
"name": "released", | ||
"default": false, | ||
"prompt_user": false, | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "temperature", | ||
"default": 77.3, | ||
"prompt_user": false, | ||
"type": "float" | ||
}, | ||
{ | ||
"name": "Release-GUID", | ||
"default": "04f5eaa9ee7345469dccffc538b27194", | ||
"prompt_user": false, | ||
"type": "uuid" | ||
}, | ||
{ | ||
"name": "copy_with_out_render", | ||
"default": [ | ||
"*.html", | ||
"*not_rendered_dir", | ||
"rendered_dir/not_rendered_file.ini" | ||
], | ||
"prompt_user": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "fixtures", | ||
"default": { | ||
"foo": { | ||
"scope": "session", | ||
"autouse": true | ||
}, | ||
"bar": { | ||
"scope": "function", | ||
"autouse": false | ||
} | ||
}, | ||
"description": "Please enter a valid JSON string to set up fixtures for your plugin.", | ||
"prompt_user": true, | ||
"type": "json" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.