~dricottone/fmg-timesheets

15f788d98a9fc03ceac1d4c25804711c0f93a3e3 — Dominic Ricottone 2 years ago c041ec5
Toolchain upgrades

Migrated to `venv` for the Python module dependency(ies).

Added `README` to begin documenting the process.
3 files changed, 35 insertions(+), 3 deletions(-)

A .gitignore
M Makefile
A README.md
A .gitignore => .gitignore +3 -0
@@ 0,0 1,3 @@
.venv
data
**/__pycache__

M Makefile => Makefile +8 -3
@@ 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"


A README.md => README.md +24 -0
@@ 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?