Skip to content

Commit ad93bd1

Browse files
committed
fix #54
1 parent 6bdc463 commit ad93bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var
22

33
# Extract version from setup.py file
4-
VERSION := $(shell grep -oP "(?<=version=')[^']*" setup.py)
4+
VERSION := $(shell grep -e "^\s*version='']*" setup.py | cut -d "'" -f 2)
55

66
all: check_env_var build upload_pypi
77

@@ -11,7 +11,7 @@ setenv:
1111
export VITE_APP_VERSION=${VERSION}
1212

1313
increment_version:
14-
@VERSION=$$(grep -oP "(?<=version=')[^']*" setup.py) && \
14+
@VERSION=$$(grep -e "^\s*version='']*" setup.py | cut -d "'" -f 2) && \
1515
MAJOR=$$(echo $$VERSION | cut -d. -f1) && \
1616
MINOR=$$(echo $$VERSION | cut -d. -f2) && \
1717
PATCH=$$(echo $$VERSION | cut -d. -f3) && \

0 commit comments

Comments
 (0)