This is a league match scoreboard calculation CLI application.
Create a local python virtual enviroment by following this guide or you may install this globally, its up to you, but I recommend using a virtual enviroment.
It is recommanded to install the required packages from requirements.txt
.
as you may notice in this repo, there is a requirements.in
, this file was used to generate the requirements.txt
these 2 files listed above was created using these 2 packages
pip3 install pipreqs
pip3 install pip-tools
Then it was generated using this command
pipreqs --savepath=requirements.in && pip-compile
python -m league -v
python -m league load scores.txt output.txt
python -m league test
python -m pytest tests/
A sample_scores.txt
file is provided which can be used to test this CLI App with
also I'll be using a test suite called PyTest, the tests can be found in the ./test
directory