I broke the Python packages into three separate installation files -
requirements-prod.txt - Includes packages only needed to run the website
requirements-test.txt - Install all of prod and includes pytest for running CI actions testing. All GitHub Actions now use this file to install all packages up to testing
requirements-dev.txt - Install all of test and includes pre-commit for commit check - we should be using this one
As devs on this project, we should install requirements-dev.txt in a clean virtual environment, and ensure the following (after activating the virtual environment)
[ ] That running pytest successfully runs and passes all tests. Run by typing in pytest after activating virtual environment
[ ] After dropping the database, then run the server and ensure it allows you to perform all previous functions, such as register/login, email validation, forgot and reset password, and all associated functionality with UTubs/URLs/Tags/Members etc
To install the associated packages:
Run python -m venv venv (ensure you are using 3.11.2)
Activate the venv, depending on your OS. Your terminal should now start with (venv)
I broke the Python packages into three separate installation files -
requirements-prod.txt
- Includes packages only needed to run the websiterequirements-test.txt
- Install all ofprod
and includespytest
for running CI actions testing. All GitHub Actions now use this file to install all packages up to testingrequirements-dev.txt
- Install all oftest
and includespre-commit
for commit check - we should be using this oneAs devs on this project, we should install
requirements-dev.txt
in a clean virtual environment, and ensure the following (after activating the virtual environment)pytest
successfully runs and passes all tests. Run by typing inpytest
after activating virtual environmentTo install the associated packages:
python -m venv venv
(ensure you are using 3.11.2)(venv)
pip install -r requirements-dev.txt