This python script will generate base advanced level file configuration to be placed in any newly create github repo to get your repo standards to the next level.
- Set a standard for repository generation
- Maintain compliance across multiple repositories
- Leverage more advanced features of Github
- You already have tooling in place to accomplish the same functionality
It is recommended to use a Python virtual environment to run this to ensure you are able to install the prerequisite packages in requirements.txt
without installing them system wide.
- Clone down this repo with the command
git clone https://github.com/jared-bloomer/bootstrap-repo.git
- Change into the newly created directory with the command
cd bootstrap-repo
- Create a Python Virtual Environment with the command
python3 -m venv .venv
- Activate the new virtual environment with the command
source .venv/bin/activate
- Install the Python prerequisite packages with the command
pip install -r requirements.txt
- Run the
bootstrap_repo.py
script to create the files. The created files will be in an directory namedoutput
.
For the full help of this script please run ./bootstrap_repo.py -h
For most cases you can simply run ./bootstrap_repo.py -r my-repo-name -o my-organization-name -l MIT
All available License Files that can be downloaded can be found in the OpenSourceOrg Repo. Use the filename as the value for the -l, --license
option at runtime.