-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
65 lines (48 loc) · 1.92 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: all format test install download upload docker documentation data clean build paper clean-paper
all: data test
format:
black . -l 79
test:
pytest
install:
pip install policyengine-us
pip install -e ".[dev]" --config-settings editable_mode=compat
changelog:
build-changelog changelog.yaml --output changelog.yaml --update-last-date --start-from 1.0.0 --append-file changelog_entry.yaml
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-us-data --output CHANGELOG.md --template .github/changelog_template.md
bump-version changelog.yaml pyproject.toml
rm changelog_entry.yaml || true
touch changelog_entry.yaml
download:
python policyengine_us_data/storage/download_public_prerequisites.py
python policyengine_us_data/storage/download_private_prerequisites.py
upload:
python policyengine_us_data/storage/upload_completed_datasets.py
docker:
docker buildx build --platform linux/amd64 . -t policyengine-us-data:latest
documentation:
jb clean docs && jb build docs
python docs/add_plotly_to_book.py docs
data:
python policyengine_us_data/datasets/acs/acs.py
python policyengine_us_data/datasets/cps/cps.py
python policyengine_us_data/datasets/puf/irs_puf.py
python policyengine_us_data/datasets/puf/puf.py
python policyengine_us_data/datasets/cps/extended_cps.py
python policyengine_us_data/datasets/cps/enhanced_cps.py
clean:
rm -f policyengine_us_data/storage/puf_2015.csv
rm -f policyengine_us_data/storage/demographics_2015.csv
build:
python -m build
publish:
twine upload dist/*
paper: paper/main.pdf
paper/main.pdf: $(wildcard paper/sections/**/*.tex) $(wildcard paper/bibliography/*.bib) paper/main.tex paper/macros.tex
cd paper && \
BIBINPUTS=./bibliography pdflatex main && \
BIBINPUTS=./bibliography bibtex main && \
pdflatex main && \
pdflatex main
clean-paper:
rm -f paper/*.aux paper/*.bbl paper/*.blg paper/*.log paper/*.out paper/*.toc paper/main.pdf paper/sections/**/*.aux