Generate the weekly planning from and to a Google spreadsheet.
- Enable the Google sheets API and create a new project.
- Create a new service account in the Google Developer Console for the project created in the previous step.
- Create a JSON key, and download the
service_account.jsonfile. - If needed, update
config.ymlto point to the correct spreadsheets. - Open the source and target Google spreadsheets and give the service account access by granting view/edit rights to the service account email address.
- Put
service_account.jsoninto the project root. - Build the image:
docker build -t rwd-apg <path/to/project/root> - Run with:
docker run rwd-apg /app/main.py -c .
- Make sure
service_account.jsonandconfig.ymlare together somewhere in the same folder, e.g.~/.config/gspread/. - Install the dependencies listed in
requirements.txt(Python 3.8+ is required). - Run
./main.py -c <path/to/folder/from/step1>(See all options with./main.py --help).