Skip to content

Commit 16648d5

Browse files
committed
change source of truth to version.py
1 parent 55c9b9c commit 16648d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CURRENT_DIR = ${CURDIR}
44
BUILD_DIR ?= $(CURRENT_DIR)/build
55
PYTHON_BIN ?= python3
66

7-
API_VERSION := $(shell grep "^api_version" $(CURRENT_DIR)/web/api/py/codechecker_api/setup.py | cut -d"'" -f2)
7+
API_VERSION := $(shell python3 -c "exec(open('$(CURRENT_DIR)/web/codechecker_web/shared/version.py').read()); print(f'{max(SUPPORTED_VERSIONS)}.{SUPPORTED_VERSIONS[max(SUPPORTED_VERSIONS)]}.0')")
88
VENV_API_VERSION := $(shell \
99
if [ -f $(CURRENT_DIR)/venv_dev/bin/pip ]; then \
1010
$(CURRENT_DIR)/venv_dev/bin/pip show codechecker-api 2>/dev/null | grep "^Version:" | cut -d' ' -f2; \

0 commit comments

Comments
 (0)