This project requires python 3.6 or higher. It also requires either pipenv or pip3.6 or higher.
pip3 install -r requirements.txt
Requires python3.6
+, pip3.6
+ and python3-virtualenv
.
Linux/MacOS:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Winsux (Some might call it Windows):
virtualenv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
pipenv install
This project is automatically built by my TeamCity CI server. That means that all test results and run results are available online.
This project defines a few commands:
Creates a template for the given days, all days, or, when no day is specified, the current day.
It also automatically downloads the required puzzle input and wires it to your
code as a string input in self.data
.
Runs the code for the given days, all days, or, when no day is specified, the current day.
It is also possible to specify specific parts of each day to be run.
Examples:
./manage.py run
Runs both parts for today./manage.py run 5.1
Only runs the first part of day 5./manage.py run all
Runs all parts of all days
Runs the unittests for the given days, all days, or, when no day is specified, the current day.
It is also possible to specify specific parts of each day to be run.
Examples:
./manage.py test
Runs both parts for today./manage.py test 5.1
Only runs the first part of day 5./manage.py test all
Runs all parts of all days
Runs new for each given day, when no template exists. If that is not the case, it will run unittests, and if they are successful, runs the actual input.