- Install latest Python (3.12 as of writing this)
- Make sure the commands
python
andpip
works from the command line/terminal - If the above commands are not working, make sure you add it to the path
- Install Git
- Clone this repository run in cmd/terminal
git clone https://github.com/tanayseven/template-repo-tdd-python.git
- Install an IDE/Text Editor, VSCode with Python Extension or install Pycharm Community Edition
- Open the cloned directory in cmd/terminal
python -m venv venv
- Activate the above created virtual environment
. ./venv/bin/activate
for Linux/Mac OS and run\venv\Scripts\activate
for Windows - Install the dependencies
pip install -r requirements.txt
- Then run the tests
pytest
- If the above command works, you should get an output similar to the following, then you should be set to go
================================================================================================== test session starts ===================================================================================================
platform linux -- Python 3.11.5, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tanay/repos/template-repo-tdd-python
collected 1 item
test/test_main.py . [100%]
=================================================================================================== 1 passed in 0.01s ====================================================================================================