You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
394 B
Makefile
21 lines
394 B
Makefile
2 years ago
|
DOCKERIMAGE := dockermirror:5000/dpedu/package
|
||
|
DOCKEROPTS :=
|
||
|
BINARY := dist/package-0.0.0-py3-none-any.whl
|
||
|
|
||
|
.PHONY: $(BINARY)
|
||
|
$(BINARY):
|
||
|
python3 setup.py bdist_wheel
|
||
|
|
||
|
.PHONY: image
|
||
|
image:
|
||
|
docker build -t $(DOCKERIMAGE) $(DOCKEROPTS) .
|
||
|
|
||
|
.PHONY: push
|
||
|
push: image
|
||
|
docker push $(DOCKERIMAGE)
|
||
|
|
||
|
.PHONY: testenv
|
||
|
testenv:
|
||
|
virtualenv -p python3 testenv
|
||
|
testenv/bin/pip3 install -r requirements.txt
|