forked from pdfcrowd/pdfcrowd-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
24 lines (17 loc) · 760 Bytes
/
makefile
File metadata and controls
24 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all:
dist: dist/pdfcrowd-*.zip dist/pdfcrowd-*.tar.gz
dist/pdfcrowd-*.tar.gz dist/pdfcrowd-*.zip: setup.py pdfcrowd.py
grep "__version__ = \""`grep -oE "version='[0-9.]+" setup.py | sed "s/version='//"` pdfcrowd.py > /dev/null
rm -rf dist/* build/* python/MANIFEST
python setup.py clean && python setup.py sdist --formats=gztar,zip
test:
python ./tests.py $(API_USERNAME) $(API_TOKEN) $(API_HOSTNAME) $(API_HTTP_PORT) $(API_HTTPS_PORT)
publish:
rm -rf dist/* build/* python/MANIFEST
python setup.py clean && python setup.py sdist upload
init:
test -d ../test_files/out || mkdir -p ../test_files/out
test -e test_files || ln -s ../test_files/ test_files
.PHONY: clean
clean:
rm -rf dist/* build/* python/MANIFEST ./test_files/out/py_client*.pdf