Skip to content

Commit bf841f8

Browse files
Merge pull request #802 from Labelbox/develop
3.33.1
2 parents ef3b26c + b84bbb0 commit bf841f8

File tree

5 files changed

+67
-3
lines changed

5 files changed

+67
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# Version 3.33.1 (2022-12-14)
4+
### Fixed
5+
* Fixed where batch creation limit was still limiting # of data rows. SDK should now support creating batches with up to 100k data rows
6+
37
# Version 3.33.0 (2022-12-13)
48
### Added
59
* Added SDK support for creating batches with up to 100k data rows

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.33.0'
24+
release = '3.33.1'
2525

2626
# -- General configuration ---------------------------------------------------
2727

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.33.0"
2+
__version__ = "3.33.1"
33

44
from labelbox.client import Client
55
from labelbox.schema.project import Project

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def create_batch(self,
600600
else:
601601
raise ValueError("You can DataRow ids or DataRow objects")
602602

603-
if len(dr_ids) > 25_000:
603+
if len(dr_ids) > 100_000:
604604
raise ValueError(
605605
f"Batch exceeds max size, break into smaller batches")
606606
if not len(dr_ids):

scripts/update_sdk_version.sh

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/usr/bin/env bash
2+
3+
usage="$(basename "$0") [-h] [-v] -- Script to update necessary files for SDK version release
4+
5+
where:
6+
-h Show help text
7+
-v New SDK version"
8+
9+
while getopts ':hv:' option; do
10+
case "$option" in
11+
h) echo "$usage"
12+
exit
13+
;;
14+
v) new_version=$OPTARG
15+
;;
16+
:) printf "missing argument for -%s\n" "$OPTARG" >&2
17+
echo "$usage" >&2
18+
exit 1
19+
;;
20+
\?) printf "illegal option: -%s\n" "$OPTARG" >&2
21+
echo "$usage" >&2
22+
exit 1
23+
;;
24+
esac
25+
done
26+
27+
if [ $# -eq 0 ]
28+
then
29+
echo "No SDK version is specified"
30+
echo "$usage" >&2
31+
exit;
32+
fi
33+
34+
SDK_PATH="$( cd -- "$(dirname "$0")" | cd .. >/dev/null 2>&1 ; pwd -P )"
35+
INIT_FILE="$SDK_PATH/labelbox/__init__.py"
36+
READTHEDOCS_CONF_FILE="$SDK_PATH/docs/source/conf.py"
37+
CHANGELOGS_FILE="$SDK_PATH/CHANGELOG.md"
38+
39+
old_version=$(cat $SDK_PATH/labelbox/__init__.py | grep __version__ | cut -d '=' -f2 | tr -d ' ' | tr -d '"')
40+
41+
echo "New version: $new_version"
42+
echo "Old version: $old_version"
43+
44+
escaped_old_version=$(echo "$old_version" | sed "s/\./\\\./g")
45+
escaped_new_version=$(echo "$new_version" | sed "s/\./\\\./g")
46+
47+
sed -i "" "s/$escaped_old_version/$escaped_new_version/" $INIT_FILE
48+
echo "Updated '$INIT_FILE'"
49+
50+
sed -i "" "s/$escaped_old_version/$escaped_new_version/" $READTHEDOCS_CONF_FILE
51+
echo "Updated '$READTHEDOCS_CONF_FILE'"
52+
echo "Successfully updated SDK version locally!"
53+
54+
echo "\nOpening CHANGELOGS file in text editor"
55+
open -e $CHANGELOGS_FILE
56+
57+
echo "\nPlease open a PR to finish the release process using the following git commands:"
58+
echo "\ngit add --all"
59+
echo "git commit -m 'Preparing for $new_version release'"
60+
echo "git push origin prep_$new_version"

0 commit comments

Comments
 (0)