From 7b966982bb4bdd36a7be319314fbb49d35c41274 Mon Sep 17 00:00:00 2001 From: "David L. Qiu" Date: Thu, 25 Apr 2024 09:23:27 -0700 Subject: [PATCH] keep version of magics package consistent in future releases --- lerna.json | 2 +- package.json | 2 +- packages/jupyter-ai-magics/package.json | 2 +- packages/jupyter-ai/package.json | 2 +- packages/jupyter-ai/pyproject.toml | 2 +- scripts/bump-version.sh | 7 ++++++- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lerna.json b/lerna.json index 4c03151d1..31f2f8b6c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,7 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "2.13.0", + "version": "2.14.0", "npmClient": "yarn", "useNx": true } diff --git a/package.json b/package.json index 7594107bb..c3f7ffc0d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jupyter-ai/monorepo", - "version": "2.13.0", + "version": "2.14.0", "description": "A generative AI extension for JupyterLab", "private": true, "keywords": [ diff --git a/packages/jupyter-ai-magics/package.json b/packages/jupyter-ai-magics/package.json index 818580a8f..5efacc180 100644 --- a/packages/jupyter-ai-magics/package.json +++ b/packages/jupyter-ai-magics/package.json @@ -1,6 +1,6 @@ { "name": "@jupyter-ai/magics", - "version": "2.13.0", + "version": "2.14.0", "description": "Jupyter AI magics Python package. Not published on NPM.", "private": true, "homepage": "https://github.com/jupyterlab/jupyter-ai", diff --git a/packages/jupyter-ai/package.json b/packages/jupyter-ai/package.json index fd37c4b1c..cc561701d 100644 --- a/packages/jupyter-ai/package.json +++ b/packages/jupyter-ai/package.json @@ -1,6 +1,6 @@ { "name": "@jupyter-ai/core", - "version": "2.13.0", + "version": "2.14.0", "description": "A generative AI extension for JupyterLab", "keywords": [ "jupyter", diff --git a/packages/jupyter-ai/pyproject.toml b/packages/jupyter-ai/pyproject.toml index f5eb5e98f..0ae59e527 100644 --- a/packages/jupyter-ai/pyproject.toml +++ b/packages/jupyter-ai/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "jupyterlab~=4.0", "aiosqlite>=0.18", "importlib_metadata>=5.2.0", - "jupyter_ai_magics>=2.13.0", + "jupyter_ai_magics==2.14.0", "dask[distributed]", "faiss-cpu", # Not distributed by official repo "typing_extensions>=4.5.0", diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 900211be9..d33bb7d84 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -11,5 +11,10 @@ --no-push \ --force-publish \ -y \ - $1 \ + "$1" \ ) || exit 1 + +# bump dependency in jupyter-ai to rely on current version of jupyter-ai-magics +# -E : use extended regex to allow usage of `+` symbol +# -i '' : modify file in-place +sed -E -i '' "s/jupyter_ai_magics.=[0-9]+\.[0-9]+\.[0-9]+/jupyter_ai_magics==$1/" packages/jupyter-ai/pyproject.toml