-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 692 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 692 Bytes
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
.PHONY: test clean format all docs dist upload upload-test
install_options = "--user"
all: format test
docs:
sphinx-build docs/ docs/build
format:
black .
install:
pip install -e .
test: install
python scripts/json2latex test/test.json data test/out.tex
cd test; pdflatex test.tex
pdftotext test/test.pdf test/test.txt
cd test; python test.py
clean:
rm -rf build dist *.egg-info docs/build
cd test; rm -f *.log *.aux *.pdf *.txt out.tex
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ | xargs rm -rf
dist:
python setup.py sdist bdist_wheel
upload:
twine upload dist/*
upload-test:
twine upload dist/* --repository-url https://test.pypi.org/legacy/