Date: | August 22, 2022 |
---|
Contents
naive_cookiecutter is just a naive cookiecutter to bootstrap Python project.
NEW_NAME=...
NEW_VERSION=...
NEW_YEAR=...
NEW_NAME_UPPER="$(echo $NEW_NAME | tr '[:lower:]' '[:upper:]')"
find . \! -path '*/.git/*' -type f -exec sed -i "s/naive_cookiecutter/$NEW_NAME/g" {} +
find . \! -path '*/.git/*' -type f -exec sed -i "s/NAIVE_COOKIECUTTER/$NEW_NAME_UPPER/g" {} +
find . \! -path '*/.git/*' -type f -exec sed -i "s/0.1.0/$NEW_VERSION/g" {} +
find . \! -path '*/.git/*' -type f -exec sed -i "s/2021–2022/$NEW_YEAR/g" {} +
mv src/naive_cookiecutter "src/$NEW_NAME"
mv tests/test_naive_cookiecutter.py "tests/test_$NEW_NAME.py"
- update title in
docs/README.md
pyproject.toml
Optionally also sed
- GitHub username
ickc
- author name
Kolen Cheung
- author email
[email protected]
rsync -av --stats --exclude .git ./ $TARGET_GIT_REPO_DIRECTORY