Skip to content

Commit 50e917d

Browse files
vbrodskyreal-mjozwiakGabefiresfendell-labelboxmnoszczak
authored andcommitted
Vb/merge 5.2 2 (#1867)
Co-authored-by: Michał Jóźwiak <mjozwiak@labelbox.com> Co-authored-by: Gabe <33893811+Gabefire@users.noreply.github.com> Co-authored-by: sfendell-labelbox <150080555+sfendell-labelbox@users.noreply.github.com> Co-authored-by: mnoszczak <99751601+mnoszczak@users.noreply.github.com>
1 parent 4ac555b commit 50e917d

File tree

14 files changed

+21
-17
lines changed

14 files changed

+21
-17
lines changed

libs/labelbox/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies = [
1515
"lbox-clients==1.1.0",
1616
]
1717
readme = "README.md"
18-
requires-python = ">=3.9"
18+
requires-python = ">=3.9,<3.13"
1919
classifiers = [
2020
# How mature is this project?
2121
"Development Status :: 5 - Production/Stable",

libs/labelbox/src/labelbox/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from labelbox.schema.asset_attachment import AssetAttachment
1313
from labelbox.schema.batch import Batch
1414
from labelbox.schema.benchmark import Benchmark
15-
from labelbox.schema.bulk_import_request import BulkImportRequest
1615
from labelbox.schema.catalog import Catalog
1716
from labelbox.schema.data_row import DataRow
1817
from labelbox.schema.data_row_metadata import (
@@ -86,7 +85,6 @@
8685
ProjectOverviewDetailed,
8786
)
8887
from labelbox.schema.project_resource_tag import ProjectResourceTag
89-
from labelbox.schema.queue_mode import QueueMode
9088
from labelbox.schema.resource_tag import ResourceTag
9189
from labelbox.schema.review import Review
9290
from labelbox.schema.role import ProjectRole, Role

libs/labelbox/src/labelbox/client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def create_dataset(
585585
)
586586

587587
if not validation_result["validateDataset"]["valid"]:
588-
raise LabelboxError(
588+
raise labelbox.exceptions.LabelboxError(
589589
"IAMIntegration was not successfully added to the dataset."
590590
)
591591
except Exception as e:
@@ -683,13 +683,8 @@ def create_model_evaluation_project(
683683
append_to_existing_dataset = bool(dataset_id)
684684

685685
if dataset_name_or_id:
686-
kwargs["dataset_name_or_id"] = dataset_name_or_id
687-
kwargs["append_to_existing_dataset"] = append_to_existing_dataset
688686
if data_row_count is None:
689687
data_row_count = 100
690-
if data_row_count < 0:
691-
raise ValueError("data_row_count must be a positive integer.")
692-
kwargs["data_row_count"] = data_row_count
693688
warnings.warn(
694689
"Automatic generation of data rows of live model evaluation projects is deprecated. dataset_name_or_id, append_to_existing_dataset, data_row_count will be removed in a future version.",
695690
DeprecationWarning,

libs/labelbox/src/labelbox/project_validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def validate_fields(self):
6969
is_consensus_enabled=True,
7070
)
7171

72+
if self.data_row_count is not None and self.data_row_count < 0:
73+
raise ValueError("data_row_count must be a positive integer.")
74+
7275
return self
7376

7477
def _set_quality_mode_attributes(

libs/labelbox/src/labelbox/schema/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def export_v2(
4848
"""
4949

5050
warnings.warn(
51-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
51+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
5252
DeprecationWarning,
5353
stacklevel=2,
5454
)

libs/labelbox/src/labelbox/schema/data_row.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def export_v2(
280280
"""
281281

282282
warnings.warn(
283-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
283+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
284284
DeprecationWarning,
285285
stacklevel=2,
286286
)

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def export_v2(
360360
"""
361361

362362
warnings.warn(
363-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
363+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
364364
DeprecationWarning,
365365
stacklevel=2,
366366
)

libs/labelbox/src/labelbox/schema/model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def export_v2(
541541
"""
542542

543543
warnings.warn(
544-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
544+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
545545
DeprecationWarning,
546546
stacklevel=2,
547547
)

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def export_v2(
417417
"""
418418

419419
warnings.warn(
420-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
420+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
421421
DeprecationWarning,
422422
stacklevel=2,
423423
)

libs/labelbox/src/labelbox/schema/slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def export_v2(
129129
"""
130130

131131
warnings.warn(
132-
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
132+
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
133133
DeprecationWarning,
134134
stacklevel=2,
135135
)

0 commit comments

Comments
 (0)