2018-12-22 15:08:04 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
NS ?= abhinavsingh
|
|
|
|
IMAGE_NAME ?= proxy.py
|
|
|
|
VERSION ?= v3
|
|
|
|
IMAGE_TAG := $(NS)/$(IMAGE_NAME):$(VERSION)
|
|
|
|
|
|
|
|
.PHONY: all clean test package release build-docker
|
2013-12-23 21:51:45 +00:00
|
|
|
|
|
|
|
all: clean test
|
|
|
|
|
|
|
|
clean:
|
|
|
|
find . -name '*.pyc' -exec rm -f {} +
|
|
|
|
find . -name '*.pyo' -exec rm -f {} +
|
|
|
|
find . -name '*~' -exec rm -f {} +
|
|
|
|
|
|
|
|
test:
|
2014-02-20 21:56:27 +00:00
|
|
|
python tests.py -v
|
2013-12-23 21:51:45 +00:00
|
|
|
|
|
|
|
package:
|
|
|
|
python setup.py sdist
|
|
|
|
|
|
|
|
release:
|
|
|
|
python setup.py sdist register upload
|
2018-12-22 15:08:04 +00:00
|
|
|
|
|
|
|
build-docker:
|
|
|
|
docker build -t $(IMAGE_TAG) .
|
|
|
|
|