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

Commit 38fe743

Browse files
Changed .manifest.yml to .python_project_bootstrapper_manifest.yml (#41)
2 parents 12c6433 + a574889 commit 38fe743

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/PythonProjectBootstrapper/ProjectGenerationUtils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def CopyToOutputDir(
175175
1. If a file in the src_dir does not exist in the dest_dir, copy it over
176176
2. If a file in the src_dir exists in the dest_dir, copy it over only if the file in the dest_dir has never been modified by the user OR after prompted, they approve overwriting their changes
177177
178-
Additionally, write the final manifest to "<dest_dir>/.manifest.yml". This manifest should reflect the state of the output directory after the project generation has completed
178+
Additionally, write the final manifest to "<dest_dir>/.python_project_bootstrapper_manifest.yml". This manifest should reflect the state of the output directory after the project generation has completed
179179
180180
Args:
181181
src_dir (Path): path to source dir
@@ -202,7 +202,7 @@ def CopyToOutputDir(
202202
modified_template_files: list[str] = []
203203
unchanged_files_deleted: list[str] = []
204204

205-
potential_manifest: Path = dest_dir / ".manifest.yml"
205+
potential_manifest: Path = dest_dir / ".python_project_bootstrapper_manifest.yml"
206206

207207
# if this is not our first time generating, remove unwanted template files
208208
if potential_manifest.is_file():

src/PythonProjectBootstrapper/package/hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def SavePrompts() -> None:
303303
""",
304304
)
305305

306-
prompts["Commit and Push the Repository"] = textwrap.dedent(
306+
prompts["Commit and Push the OpenSSF Best Practices Badge ID Changes"] = textwrap.dedent(
307307
"""\
308308
1. Run 'git add --all'
309309
2. Run 'git commit -m "🎉 Updated README.md with OpenSSF Best Practices Badge ID"'

tests/ProjectGenerationUtils_UnitTest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ def _dirs_equal(dir1: Path, dir2: Path) -> bool:
2929
generated_files2: list[Path] = []
3030

3131
for root, _, files in os.walk(dir1):
32-
if ".manifest.yml" in files:
33-
files.remove(".manifest.yml")
32+
if ".python_project_bootstrapper_manifest.yml" in files:
33+
files.remove(".python_project_bootstrapper_manifest.yml")
3434

3535
generated_files1 += [Path(root) / Path(file) for file in files]
3636

3737
for root, _, files in os.walk(dir2):
38-
if ".manifest.yml" in files:
39-
files.remove(".manifest.yml")
38+
if ".python_project_bootstrapper_manifest.yml" in files:
39+
files.remove(".python_project_bootstrapper_manifest.yml")
4040

4141
generated_files2 += [Path(root) / Path(file) for file in files]
4242

@@ -166,7 +166,7 @@ def test_CopyToOutputDir_overwritePrompt(fs, overwrite):
166166
with open(dest / path, "r") as destfile:
167167
assert content == destfile.read()
168168

169-
manifest_filepath = dest / ".manifest.yml"
169+
manifest_filepath = dest / ".python_project_bootstrapper_manifest.yml"
170170
assert manifest_filepath.is_file()
171171

172172
# check that manifest file has read-only permissions
@@ -199,7 +199,7 @@ def test_CopyToOutputDir_no_prompt(fs):
199199
fs.create_dir(dest)
200200

201201
directory_changes = CopyToOutputDir(src_dir=src, dest_dir=dest)
202-
manifest_filepath = dest / ".manifest.yml"
202+
manifest_filepath = dest / ".python_project_bootstrapper_manifest.yml"
203203

204204
assert directory_changes.added_files == ["dest/test/file1", "dest/test/file2"]
205205
assert directory_changes.deleted_files == []

0 commit comments

Comments
 (0)