From 15f788d98a9fc03ceac1d4c25804711c0f93a3e3 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Fri, 29 Apr 2022 20:45:42 -0500 Subject: [PATCH] Toolchain upgrades Migrated to `venv` for the Python module dependency(ies). Added `README` to begin documenting the process. --- .gitignore | 3 +++ Makefile | 11 ++++++++--- README.md | 24 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0775351 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.venv +data +**/__pycache__ diff --git a/Makefile b/Makefile index 9906ed8..f27d1e0 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ .PHONY: clean clean: rm --force --recursive __pycache__ + rm --force --recursive .venv -.PHONY: process -process: - python3 main.py ~/web/*.pdf +.venv: + python3 -m venv .venv + bash -c "source .venv/bin/activate && python3 -m pip install pdfminer.six" + +.PHONY: run +run: .venv + bash -c "source .venv/bin/activate && python3 main.py data/*.pdf" diff --git a/README.md b/README.md new file mode 100644 index 0000000..62f5118 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# fmg-timesheets + +## Usage + +Store PDF-formatted timesheets locally. + +``` +mkdir data +cp path/to/timesheets/*.pdf data/ +``` + +Run the program. + +``` +make run +``` + +## Licensing + +You don't have access to my timesheets. +The 'crash course' comments in the parser files are adapted from the upstream, +official documentation. +I don't know, call it unlicensed? + -- 2.45.2