-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(templates): Simplify target template file names with `post_g…
…en_project.py` hook (#2061) * refactor(templates): Simplify target template file names with post_gen_project.py hook * Update cookiecutter/target-template/hooks/post_gen_project.py --------- Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com>
- Loading branch information
1 parent
f087875
commit 669553e
Showing
4 changed files
with
14 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
from pathlib import Path | ||
import shutil | ||
|
||
|
||
BASE_PATH = Path("{{cookiecutter.library_name}}") | ||
|
||
|
||
if __name__ == "__main__": | ||
if "{{ cookiecutter.license }}" != "Apache-2.0": | ||
Path("LICENSE").unlink() | ||
|
||
if "{{ cookiecutter.include_ci_files }}" != "GitHub": | ||
shutil.rmtree(Path(".github")) |
File renamed without changes.
File renamed without changes.
File renamed without changes.