From af31f2f966049391ca85a490fd161f72d37793a4 Mon Sep 17 00:00:00 2001 From: Thu Trang Pham Date: Tue, 9 Feb 2021 17:38:00 -0800 Subject: [PATCH] Ensure version is set when uploading to pypi --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 094204c..c51a126 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,15 @@ package: python3 setup.py sdist bdist_wheel upload-testpypi: + ifndef VERSION + $(error VERSION is not set) + endif python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)* i-have-tested-with-testpypi-and-am-ready-to-release: + ifndef VERSION + $(error VERSION is not set) + endif python3 -m twine upload --repository pypi dist/django_admin_confirm-$(VERSION)* install-testpypi: