Setting Up A Python3 Project
Requirements
- python3 with pip and virtualenv
- git
Setting Up
-
Create a new empty git repository
-
Create a
requirements.txt
and add your requirements there.
requirements.txt
pytest
- Set up a new virtualenv
virtualenv .env
- Add this line to your
.gitignore
.env/
- Activate your virtualenv
source ./.env/bin/activate
- Install your python requirements
pip install -r requirements.txt