Skip to content

Commit

Permalink
Merge pull request #56 from dasmy/dev/fix_54
Browse files Browse the repository at this point in the history
fix #54
  • Loading branch information
ricklamers authored Jul 20, 2023
2 parents 3d606f5 + ad93bd1 commit fa57894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var

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

all: check_env_var build upload_pypi

Expand All @@ -11,7 +11,7 @@ setenv:
export VITE_APP_VERSION=${VERSION}

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

0 comments on commit fa57894

Please sign in to comment.