python/hooks/post_gen_project.py
2023-03-24 18:46:12 +01:00

12 lines
498 B
Python

import subprocess
subprocess.call(["git", "init"])
subprocess.call(["git", "add", "*"])
subprocess.call(["git", "commit", "-m", "Initial commit"])
subprocess.call(["git", "config", "user.name", "{{ cookiecutter.git_user }}"])
subprocess.call(["git", "config", "user.email", "{{ cookiecutter.email }}"])
subprocess.call(["git", "remote", "add", "origin", "{{ cookiecutter.git_ogirin }}"])
subprocess.call(["git", "branch", "-u", "origin/master"])
subprocess.call(["python", "-m", "venv", "venv"])