File tree Expand file tree Collapse file tree 5 files changed +67
-3
lines changed Expand file tree Collapse file tree 5 files changed +67
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2121copyright = '2021, Labelbox'
2222author = 'Labelbox'
2323
24- release = '3.33.0 '
24+ release = '3.33.1 '
2525
2626# -- General configuration ---------------------------------------------------
2727
Original file line number Diff line number Diff line change 11name = "labelbox"
2- __version__ = "3.33.0 "
2+ __version__ = "3.33.1 "
33
44from labelbox .client import Client
55from labelbox .schema .project import Project
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff line change 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 "
You can’t perform that action at this time.
0 commit comments