Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklamers committed Jul 20, 2023
1 parent fa57894 commit 521120e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var

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

all: check_env_var build upload_pypi

build: check_env_var compile_frontend bundle_pypi

setenv:
export VITE_APP_VERSION=${VERSION}

increment_version:
@VERSION=$$(grep -e "^\s*version='[ˆ']*" setup.py | cut -d "'" -f 2) && \
@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) && \
NEW_PATCH=$$((PATCH + 1)) && \
NEW_VERSION="$$MAJOR.$$MINOR.$$NEW_PATCH" && \
sed -i "s/version='.*'/version='$$NEW_VERSION'/" setup.py && \
sed -i.bak "s/version='[^']*'/version='$$NEW_VERSION'/" setup.py && \
rm setup.py.bak && \
echo "Updated version to $$NEW_VERSION"


release:
bash scripts/create_release.sh

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='gpt_code_ui',
version='0.42.33',
version='0.42.34',
description="An Open Source version of ChatGPT Code Interpreter",
long_description=long_description,
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.
Expand Down

0 comments on commit 521120e

Please sign in to comment.