Skip to content

Commit

Permalink
fix: add missing check version
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuel-tirado committed Jul 16, 2024
1 parent 754dc73 commit ef8f37e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
PANTOS_CLIENT_CLI_VERSION := $(shell poetry version -s)
PYTHON_FILES := pantos/cli tests

.PHONY: check-version
check-version:
@if [ -z "$(VERSION)" ]; then \
echo "Error: VERSION is not set"; \
exit 1; \
fi
@VERSION_FROM_POETRY=$$(poetry version -s) ; \
if test "$$VERSION_FROM_POETRY" != "$(VERSION)"; then \
echo "Version mismatch: expected $(VERSION), got $$VERSION_FROM_POETRY" ; \
exit 1 ; \
else \
echo "Version check passed" ; \
fi

.PHONY: dist
dist: wheel docker

Expand Down

0 comments on commit ef8f37e

Please sign in to comment.