File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var
2
2
3
- # Extract version from setup.py file
4
- VERSION := $(shell grep -e "^\s* version='[ˆ']* " setup.py | cut -d "'" -f 2)
5
-
6
3
all : check_env_var build upload_pypi
7
4
8
5
build : check_env_var compile_frontend bundle_pypi
9
6
10
- setenv :
11
- export VITE_APP_VERSION =${VERSION}
12
-
13
7
increment_version :
14
- @VERSION=$$(grep -e "^\s*version='[ˆ ']*" setup.py | cut -d "'" -f 2 ) && \
8
+ @VERSION=$$(grep -e "^\s*version='[^ ']*' " setup.py | cut -d "'" -f 2 ) && \
15
9
MAJOR=$$(echo $$VERSION | cut -d. -f1 ) && \
16
10
MINOR=$$(echo $$VERSION | cut -d. -f2 ) && \
17
11
PATCH=$$(echo $$VERSION | cut -d. -f3 ) && \
18
12
NEW_PATCH=$$((PATCH + 1 ) ) && \
19
13
NEW_VERSION=" $$ MAJOR.$$ MINOR.$$ NEW_PATCH" && \
20
- sed -i " s/version='.*'/version='$$ NEW_VERSION'/" setup.py && \
14
+ sed -i.bak " s/version='[^']*'/version='$$ NEW_VERSION'/" setup.py && \
15
+ rm setup.py.bak && \
21
16
echo " Updated version to $$ NEW_VERSION"
22
17
18
+
23
19
release :
24
20
bash scripts/create_release.sh
25
21
Original file line number Diff line number Diff line change 7
7
8
8
setup (
9
9
name = 'gpt_code_ui' ,
10
- version = '0.42.33 ' ,
10
+ version = '0.42.34 ' ,
11
11
description = "An Open Source version of ChatGPT Code Interpreter" ,
12
12
long_description = long_description ,
13
13
long_description_content_type = 'text/markdown' , # This field specifies the format of the `long_description`.
You can’t perform that action at this time.
0 commit comments