Skip to content

Commit

Permalink
Merge pull request #802 from Labelbox/develop
Browse files Browse the repository at this point in the history
3.33.1
  • Loading branch information
kkim-labelbox authored Dec 14, 2022
2 parents ef3b26c + b84bbb0 commit bf841f8
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
copyright = '2021, Labelbox'
author = 'Labelbox'

release = '3.33.0'
release = '3.33.1'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion labelbox/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion labelbox/schema/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
60 changes: 60 additions & 0 deletions scripts/update_sdk_version.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit bf841f8

Please sign in to comment.