Skip to content

Commit ddb8063

Browse files
authored
SDK Release 3.53.0 (#1251)
2 parents aac3ae7 + c01a9c0 commit ddb8063

32 files changed

+1033
-406
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
prod-key: PROD_LABELBOX_API_KEY_3
2727
staging-key: STAGING_LABELBOX_API_KEY_3
2828
da-test-key: DA_GCP_LABELBOX_API_KEY
29+
- python-version: '3.10'
30+
prod-key: PROD_LABELBOX_API_KEY_4
31+
staging-key: STAGING_LABELBOX_API_KEY_4
32+
da-test-key: DA_GCP_LABELBOX_API_KEY
2933

3034
steps:
3135
- name: Cancel previous workflow
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# ref: https://github.com/marketplace/actions/build-and-push-docker-images
2+
3+
name: Release container image
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
env:
10+
CONTAINER_IMAGE: "ghcr.io/${{ github.repository }}"
11+
12+
jobs:
13+
context:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: downcase CONTAINER_IMAGE
18+
run: |
19+
echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
20+
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v2
23+
24+
- name: Log in to the Container registry
25+
uses: docker/login-action@v2
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Build and push
32+
uses: docker/build-push-action@v4
33+
with:
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
push: true
36+
37+
platforms: |
38+
linux/amd64
39+
linux/arm64
40+
41+
tags: |
42+
${{ env.CONTAINER_IMAGE }}:latest
43+
${{ env.CONTAINER_IMAGE }}:${{ github.event.release.tag_name }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# ref: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
2+
3+
name: Testing container image
4+
5+
on:
6+
push:
7+
branches:
8+
- 'develop'
9+
10+
env:
11+
CONTAINER_IMAGE: "ghcr.io/${{ github.repository }}"
12+
13+
jobs:
14+
context:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: downcase CONTAINER_IMAGE
19+
run: |
20+
echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v2
24+
25+
- name: Log in to the Container registry
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and push
33+
uses: docker/build-push-action@v4
34+
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
push: true
37+
38+
platforms: |
39+
linux/amd64
40+
linux/arm64
41+
42+
tags: |
43+
${{ env.CONTAINER_IMAGE }}:develop
44+
${{ env.CONTAINER_IMAGE }}:${{ github.sha }}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# Changelog
2+
# Version 3.53.0 (2023-10-03)
3+
## Added
4+
* Remove LPO deprecation warning and allow greater range of priority values
5+
* Add an sdk method to get data row by global key
6+
* Disallow invalid quality modes during create_project
7+
* Python 3.10 support
8+
* Change return of dataset.create_data_rows() to Task
9+
* Add new header to capture python version
10+
## Notebooks
11+
* Updated examples to match latest updates to SDK
212
# Version 3.52.0 (2023-08-24)
313
## Added
414
* Added methods to create multiple batches for a project from a list of data rows

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,17 @@ test-custom: build-image
5353
-e LABELBOX_TEST_GRAPHQL_API_ENDPOINT=${LABELBOX_TEST_GRAPHQL_API_ENDPOINT} \
5454
-e LABELBOX_TEST_REST_API_ENDPOINT=${LABELBOX_TEST_REST_API_ENDPOINT} \
5555
local/labelbox-python:test pytest $(PATH_TO_TEST)
56+
57+
test-ephemeral: build-image
58+
59+
@# if PATH_TO_TEST we assume you know what you are doing
60+
@if [ -z ${PATH_TO_TEST} ]; then \
61+
./scripts/ensure_local_setup.sh; \
62+
fi
63+
64+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
65+
-e LABELBOX_TEST_ENVIRON="ephemeral" \
66+
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
67+
-e SERVICE_API_KEY=${SERVICE_API_KEY} \
68+
-e LABELBOX_TEST_BASE_URL="http://host.docker.internal:8080" \
69+
local/labelbox-python:test pytest $(PATH_TO_TEST)

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.52.0'
24+
release = '3.53.0'
2525

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

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,9 @@ CatalogSlice
216216
:members: CatalogSlice
217217
:exclude-members: Slice
218218
:show-inheritance:
219+
220+
QualityMode
221+
-----------------------------------------
222+
.. automodule:: labelbox.schema.quality_mode
223+
:members:
224+
:show-inheritance:

0 commit comments

Comments
 (0)