Quickstart¶
See Reference Project Inputs for all information collected to create a new cookiecutter-py3-package.
Create a GitHub Repository¶
Your new GitHub repository information is required to generate your cookiecutter-py3-package in these steps.
project_name¶
The name of your new cookiecutter-py3-package, used in the documentation, so spaces and any characters are acceptable here.
Typically the repository name in sentence form.
project_short_description¶
A sentence describes your cookiecutter-py3-package.
Typically the repository description.
Create Virtual Environment¶
Select the tab for your preferred Operating System.
python3 -m venv venv
source venv/bin/acivate
pip install --upgrade pip
You will have a folder structure similar to this.
packages
└── venv
python3 -m venv venv
source venv/bin/acivate
pip install --upgrade pip
You will have a folder structure similar to this.
packages
└── venv
If you have installed Python in your PATH and PATHEXT.
python3 -m venv venv
C:\> venv\Scripts\activate.bat # cmd.exe
PS C:\> venv\Scripts\Activate.ps1 # Powershell
pip install --upgrade pip
Otherwise use
c:\>c:\Python36\python -m venv c:\path\to\packages\my_env
PS C:\> <venv>\Scripts\Activate.ps1
C:\> venv\Scripts\activate.bat # cmd.exe
PS C:\> venv\Scripts\Activate.ps1 # Powershell
pip install --upgrade pip
You will have a folder structure similar to this.
packages
└── venv
Install Dependencies¶
Change into your project directory.
cd <your my-new-package folder>
Install dependencies.
pip install -r requirements_dev.txt
Congratulations, you have created your new Python Package.
Depending on your chosen options, there are several ways to proceed with pushing to GitHub. If you are unsure, see our git push tutorial for more information.