-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (28 loc) · 804 Bytes
/
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
PYTHON = python3
.PHONY: default reinstall install upload uninstall rebuild build clean
default:
make rebuild
make install
make clean
reinstall:
make uninstall
make rebuild
make install
make clean
install: dist/*.whl
$(PYTHON) -m pip install dist/*.whl
$(PYTHON) -m pip show docker-compose-all
upload: dist/*.whl dist/*.tar.gz
$(PYTHON) -m twine check dist/*.whl dist/*.tar.gz
# username is: __token__
$(PYTHON) -m twine upload dist/*.whl dist/*.tar.gz
uninstall:
$(PYTHON) -m pip uninstall -y docker-compose-all
rebuild build dist/*.whl dist/*.tar.gz: ./setup.py ./docker_compose_all.py
# make sure clean old versions
make clean
$(PYTHON) ./setup.py sdist bdist_wheel
# 'pip install' is buggy when .egg-info exist
rm -rf *.egg-info build
clean:
rm -rf *.egg-info build dist