We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d606f5 + ad93bd1 commit fa57894Copy full SHA for fa57894
Makefile
@@ -1,7 +1,7 @@
1
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var
2
3
# Extract version from setup.py file
4
-VERSION := $(shell grep -oP "(?<=version=')[^']*" setup.py)
+VERSION := $(shell grep -e "^\s*version='[ˆ']*" setup.py | cut -d "'" -f 2)
5
6
all: check_env_var build upload_pypi
7
@@ -11,7 +11,7 @@ setenv:
11
export VITE_APP_VERSION=${VERSION}
12
13
increment_version:
14
- @VERSION=$$(grep -oP "(?<=version=')[^']*" setup.py) && \
+ @VERSION=$$(grep -e "^\s*version='[ˆ']*" setup.py | cut -d "'" -f 2) && \
15
MAJOR=$$(echo $$VERSION | cut -d. -f1) && \
16
MINOR=$$(echo $$VERSION | cut -d. -f2) && \
17
PATCH=$$(echo $$VERSION | cut -d. -f3) && \
0 commit comments