Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 91122c4

Browse files
Generating .python_project_bootstrapper_config.yml file for reruns (#42)
2 parents 38fe743 + 079af24 commit 91122c4

File tree

2 files changed

+22
-25
lines changed

2 files changed

+22
-25
lines changed

src/PythonProjectBootstrapper/package/hooks/post_gen_project.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -313,31 +313,6 @@ def SavePrompts() -> None:
313313

314314
{% endif %}
315315

316-
prompts["[OPTIONAL] Save this Configuration"] = textwrap.dedent(
317-
"""\
318-
If you would like to regenerate this project in the future with the same configuration.
319-
320-
1. Edit a file named 'configuration.yaml' with the contents:
321-
322-
default_context:
323-
name: {{ cookiecutter.name }}
324-
email: {{ cookiecutter.email }}
325-
project_description: {{ cookiecutter.project_description }}
326-
license: {{ cookiecutter.license }}
327-
github_url: {{ cookiecutter.github_url }}
328-
github_username: {{ cookiecutter.github_username }}
329-
github_project_name: {{ cookiecutter.github_project_name }}
330-
pypi_project_name: {{ cookiecutter.pypi_project_name }}
331-
gist_id: {{ cookiecutter.gist_id }}
332-
gist_username: {{ cookiecutter.gist_username }}
333-
sign_binaries: {{ cookiecutter.sign_binaries }}
334-
openssf_best_practices_badge_id: {{ cookiecutter.openssf_best_practices_badge_id }}
335-
create_docker_image: {{ cookiecutter.create_docker_image }}
336-
337-
2. Run 'PythonProjectBootstrapper package <output_dir> --configuration configuration.yaml` to regenerate the project.
338-
""",
339-
)
340-
341316
with open(prompt_filename, "w") as prompt_file:
342317
# Modify the keys to include an index to ensure that the prompts are displayed in the
343318
# correct order after being read from the yaml file created here.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#############################################################################################################
2+
# This file is used by PythonProjectBootstrapper (https://github.com/gt-sse-center/PythonProjectBootstrapper)
3+
# to rerun generation on this python package. To use this file, run the following command from within this
4+
# working directory:
5+
#
6+
# PythonProjectBootstrapper package . --config .python_project_bootstrapper_config.yml
7+
#
8+
#############################################################################################################
9+
default_context:
10+
name: {{ cookiecutter.name }}
11+
email: {{ cookiecutter.email }}
12+
project_description: {{ cookiecutter.project_description }}
13+
license: {{ cookiecutter.license }}
14+
github_url: {{ cookiecutter.github_url }}
15+
github_username: {{ cookiecutter.github_username }}
16+
github_project_name: {{ cookiecutter.github_project_name }}
17+
pypi_project_name: {{ cookiecutter.pypi_project_name }}
18+
gist_id: {{ cookiecutter.gist_id }}
19+
gist_username: {{ cookiecutter.gist_username }}
20+
sign_binaries: {{ cookiecutter.sign_binaries }}
21+
openssf_best_practices_badge_id: {{ cookiecutter.openssf_best_practices_badge_id }}
22+
create_docker_image: {{ cookiecutter.create_docker_image }}

0 commit comments

Comments
 (0)