Skip to content

Commit 521120e

Browse files
committed
Release new version
1 parent fa57894 commit 521120e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Makefile

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

3-
# Extract version from setup.py file
4-
VERSION := $(shell grep -e "^\s*version='[ˆ']*" setup.py | cut -d "'" -f 2)
5-
63
all: check_env_var build upload_pypi
74

85
build: check_env_var compile_frontend bundle_pypi
96

10-
setenv:
11-
export VITE_APP_VERSION=${VERSION}
12-
137
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) && \
159
MAJOR=$$(echo $$VERSION | cut -d. -f1) && \
1610
MINOR=$$(echo $$VERSION | cut -d. -f2) && \
1711
PATCH=$$(echo $$VERSION | cut -d. -f3) && \
1812
NEW_PATCH=$$((PATCH + 1)) && \
1913
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 && \
2116
echo "Updated version to $$NEW_VERSION"
2217

18+
2319
release:
2420
bash scripts/create_release.sh
2521

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.33',
10+
version='0.42.34',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)