From 66f2155578e9caa05460282309067628f5dd70f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 10 Jan 2017 16:57:34 +0100 Subject: [PATCH] Fixed bug with sdist's name replacing --- {{cookiecutter.repo_name}}/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.repo_name}}/Makefile b/{{cookiecutter.repo_name}}/Makefile index 1f1a03c..01d49ad 100644 --- a/{{cookiecutter.repo_name}}/Makefile +++ b/{{cookiecutter.repo_name}}/Makefile @@ -3,7 +3,7 @@ PYMAIN=$(firstword $(PYVERSIONS)) NAME={{ cookiecutter.repo_name }} REPO={{ cookiecutter.github_username }} VERSION=$(shell cat $(NAME)/VERSION) - +TARNAME=$(NAME)-$(subst -,.,$(VERSION)).tar.gz {% raw %} all: build run @@ -43,13 +43,13 @@ debug: debug-$(PYMAIN) test-%: build-% docker run --rm -w /usr/src/app/ --entrypoint=/usr/local/bin/python -ti '$(REPO)/$(NAME):$(VERSION)-python$*' setup.py test --addopts "-vvv -s" ; -dist/$(NAME)-$(VERSION).tar.gz: +dist/$(TARNAME): docker run --rm -ti -v $$PWD:/usr/src/app/ -w /usr/src/app/ python:$(PYMAIN) python setup.py sdist; -sdist: dist/$(NAME)-$(VERSION).tar.gz +sdist: dist/$(TARNAME) pip_test-%: sdist - docker run --rm -v $$PWD/dist:/dist/ -ti python:$* pip install /dist/$(NAME)-$(VERSION).tar.gz ; + docker run --rm -v $$PWD/dist:/dist/ -ti python:$* pip install /dist/$(TARNAME) ; pip_test: $(addprefix pip_test-,$(PYVERSIONS))