From 76e0b585a15004d627a670329e43b6aad41e778b Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Tue, 13 Dec 2022 12:20:21 -0800 Subject: [PATCH 1/3] Add helper script to update SDK version --- scripts/update_sdk_version.sh | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 scripts/update_sdk_version.sh diff --git a/scripts/update_sdk_version.sh b/scripts/update_sdk_version.sh new file mode 100644 index 000000000..e1aa4a11a --- /dev/null +++ b/scripts/update_sdk_version.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash + +usage="$(basename "$0") [-h] [-v] -- Script to update necessary files for SDK version release + +where: + -h Show help text + -v New SDK version" + +while getopts ':hv:' option; do + case "$option" in + h) echo "$usage" + exit + ;; + v) new_version=$OPTARG + ;; + :) printf "missing argument for -%s\n" "$OPTARG" >&2 + echo "$usage" >&2 + exit 1 + ;; + \?) printf "illegal option: -%s\n" "$OPTARG" >&2 + echo "$usage" >&2 + exit 1 + ;; + esac +done + +if [ $# -eq 0 ] + then + echo "No SDK version is specified" + echo "$usage" >&2 + exit; +fi + +SDK_PATH="$( cd -- "$(dirname "$0")" | cd .. >/dev/null 2>&1 ; pwd -P )" +INIT_FILE="$SDK_PATH/labelbox/__init__.py" +READTHEDOCS_CONF_FILE="$SDK_PATH/docs/source/conf.py" +CHANGELOGS_FILE="$SDK_PATH/CHANGELOG.md" + +old_version=$(cat $SDK_PATH/labelbox/__init__.py | grep __version__ | cut -d '=' -f2 | tr -d ' ' | tr -d '"') + +echo "New version: $new_version" +echo "Old version: $old_version" + +escaped_old_version=$(echo "$old_version" | sed "s/\./\\\./g") +escaped_new_version=$(echo "$new_version" | sed "s/\./\\\./g") + +sed -i "" "s/$escaped_old_version/$escaped_new_version/" $INIT_FILE +echo "Updated '$INIT_FILE'" + +sed -i "" "s/$escaped_old_version/$escaped_new_version/" $READTHEDOCS_CONF_FILE +echo "Updated '$READTHEDOCS_CONF_FILE'" +echo "Successfully updated SDK version locally!" + +echo "\nOpening CHANGELOGS file in text editor" +open -e $CHANGELOGS_FILE + +echo "\nPlease open a PR to finish the release process using the following git commands:" +echo "\ngit add --all" +echo "git commit -m 'Preparing for $new_version release'" +echo "git push origin prep_$new_version" From ee5c03dbd15e56ad4f8dc5c90c6648c0cda617be Mon Sep 17 00:00:00 2001 From: Richard Sun Date: Wed, 14 Dec 2022 09:45:16 -0800 Subject: [PATCH 2/3] [QQC-1238] Increase SDK client batch limit to 100k --- labelbox/schema/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelbox/schema/project.py b/labelbox/schema/project.py index da6073c48..30d197a89 100644 --- a/labelbox/schema/project.py +++ b/labelbox/schema/project.py @@ -600,7 +600,7 @@ def create_batch(self, else: raise ValueError("You can DataRow ids or DataRow objects") - if len(dr_ids) > 25_000: + if len(dr_ids) > 100_000: raise ValueError( f"Batch exceeds max size, break into smaller batches") if not len(dr_ids): From a61f7e87f640062194999e4f6c4ca019e4b29a47 Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Wed, 14 Dec 2022 10:43:01 -0800 Subject: [PATCH 3/3] Prep 3.33.1 --- CHANGELOG.md | 4 ++++ docs/source/conf.py | 2 +- labelbox/__init__.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a629b5e..ad57a7e88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# Version 3.33.1 (2022-12-14) +### Fixed +* Fixed where batch creation limit was still limiting # of data rows. SDK should now support creating batches with up to 100k data rows + # Version 3.33.0 (2022-12-13) ### Added * Added SDK support for creating batches with up to 100k data rows diff --git a/docs/source/conf.py b/docs/source/conf.py index a6c4d53ae..ac38a78f3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,7 +21,7 @@ copyright = '2021, Labelbox' author = 'Labelbox' -release = '3.33.0' +release = '3.33.1' # -- General configuration --------------------------------------------------- diff --git a/labelbox/__init__.py b/labelbox/__init__.py index a89266758..5ad469a12 100644 --- a/labelbox/__init__.py +++ b/labelbox/__init__.py @@ -1,5 +1,5 @@ name = "labelbox" -__version__ = "3.33.0" +__version__ = "3.33.1" from labelbox.client import Client from labelbox.schema.project import Project