-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 696 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 696 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
DOCKER_TAG = putio-automator
HOST_DOWNLOADS = `pwd`/tmp/downloads
HOST_INCOMPLETE = `pwd`/tmp/incomplete
HOST_TORRENTS = `pwd`/tmp/torrents
clean:
python setup.py clean
find . -name '*.pyc' -delete
rm -rf build dist .eggs putio_automator.egg-info sdist tmp/*/*
readme-generate:
# toc
cat -s README.md > /tmp/readme && mv /tmp/readme README.md
pandoc -f markdown -t rst README.md > README.rst
sed -i '/.. raw:: html/,+3d' README.rst
prepare-upload: clean
python setup.py sdist
python setup.py bdist_wheel
upload: prepare-upload
twine upload dist/*
docker-build:
docker build --build-arg VERSION=$(VERSION) -t $(DOCKER_TAG) .
docker-run:
docker run -it --rm $(DOCKER_TAG) $(CMD)