Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-use cookiecutter values of containing project #1

Open
jhermann opened this issue Mar 23, 2015 · 3 comments
Open

Re-use cookiecutter values of containing project #1

jhermann opened this issue Mar 23, 2015 · 3 comments

Comments

@jhermann
Copy link
Member

  • Look for a contained cookiecutter.json or [project.d/]cookiecutter.rc
  • And/or load values by introspecting the project itself, e.g. python setup.py --url
@jhermann
Copy link
Member Author

Doing this needs new hook types pre/post_config_prompt called in prompt.py. These hooks must emit JSON (and nothing else) on stdout; logging can go to stderr.

The parsed JSON is merged (dict.update) into the existing context. This allows, among other things, for computed defaults.

@jhermann
Copy link
Member Author

See also cookiecutter/cookiecutter#364

@jhermann jhermann added the docs label Feb 27, 2020
@jhermann
Copy link
Member Author

Can be done similar to https://github.com/Springerle/py-generic-project#reapplying-to-an-existing-project, so now a docs issue for the README.

@jhermann jhermann added the ready label Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant