Skip to content

Add configuration support for python 3.13 #1940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/actions/lbox-matrix/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26830,7 +26830,12 @@ try {
"python-version": "3.12",
"api-key": "STAGING_LABELBOX_API_KEY_5",
"da-test-key": "DA_GCP_LABELBOX_API_KEY"
}
},
{
"python-version": "3.13",
"api-key": "STAGING_LABELBOX_API_KEY_2",
"da-test-key": "DA_GCP_LABELBOX_API_KEY"
},
];
const testMatrix = [];
const packages = files.map(file => {
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,21 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: 3.9
- python-version: "3.9"
prod-key: PROD_LABELBOX_API_KEY_3
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: "3.10"
prod-key: PROD_LABELBOX_API_KEY_4
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.11
- python-version: "3.11"
prod-key: LABELBOX_API_KEY
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.12
- python-version: "3.12"
prod-key: PROD_LABELBOX_API_KEY_5
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: "3.13"
prod-key: PROD_LABELBOX_API_KEY_2
da-test-key: DA_GCP_LABELBOX_API_KEY
steps:
- uses: actions/checkout@v4
with:
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/python-package-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Get Latest SDK versions
id: get_sdk_versions
run: |
sdk_versions=$(git tag --list --sort=-version:refname "v.*" | head -n 3 | jq -R -s -c 'split("\n")[:-1]')
sdk_versions=$(git tag --list --sort=-version:refname "v.*" | head -n 4 | jq -R -s -c 'split("\n")[:-1]')
if [ -z "$sdk_versions" ]; then
echo "No tags found"
exit 1
Expand All @@ -58,21 +58,25 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: 3.9
- python-version: "3.9"
api-key: STAGING_LABELBOX_API_KEY_3
da-test-key: DA_GCP_LABELBOX_API_KEY
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[2] }}
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[3] }}
- python-version: "3.10"
api-key: STAGING_LABELBOX_API_KEY_4
da-test-key: DA_GCP_LABELBOX_API_KEY
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[1] }}
- python-version: 3.11
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[2] }}
- python-version: "3.11"
api-key: STAGING_LABELBOX_API_KEY
da-test-key: DA_GCP_LABELBOX_API_KEY
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[0] }}
- python-version: 3.12
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[1] }}
- python-version: "3.12"
api-key: STAGING_LABELBOX_API_KEY_5
da-test-key: DA_GCP_LABELBOX_API_KEY
sdk-version: ${{ fromJson(needs.get_sdk_versions.outputs.sdk_versions)[0] }}
- python-version: "3.13"
api-key: STAGING_LABELBOX_API_KEY_2
da-test-key: DA_GCP_LABELBOX_API_KEY
uses: ./.github/workflows/python-package-shared.yml
with:
python-version: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion libs/labelbox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV LANG="C.UTF-8" \
LC_ALL="C.UTF-8" \
PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \
PIP_NO_CACHE_DIR="false" \
RYE_VERSION="0.36.0" \
RYE_VERSION="0.43.0" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only 2 latest rye versions support 3.13

RYE_INSTALL_OPTION="--yes" \
LABELBOX_TEST_ENVIRON="prod"

Expand Down
1 change: 1 addition & 0 deletions libs/labelbox/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = ["ml", "ai", "labelbox", "labeling", "llm", "machinelearning", "edu"]

Expand Down
2 changes: 1 addition & 1 deletion libs/lbox-clients/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV LANG="C.UTF-8" \
LC_ALL="C.UTF-8" \
PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \
PIP_NO_CACHE_DIR="false" \
RYE_VERSION="0.34.0" \
RYE_VERSION="0.43.0" \
RYE_INSTALL_OPTION="--yes" \
LABELBOX_TEST_ENVIRON="prod"

Expand Down
1 change: 1 addition & 0 deletions libs/lbox-clients/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers=[
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = ["ml", "ai", "labelbox", "labeling", "llm", "machinelearning", "edu"]

Expand Down
2 changes: 1 addition & 1 deletion libs/lbox-example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV LANG="C.UTF-8" \
LC_ALL="C.UTF-8" \
PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \
PIP_NO_CACHE_DIR="false" \
RYE_VERSION="0.34.0" \
RYE_VERSION="0.43.0" \
RYE_INSTALL_OPTION="--yes" \
LABELBOX_TEST_ENVIRON="prod"

Expand Down
12 changes: 7 additions & 5 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# features: []
# all-features: true
# with-sources: false
# generate-hashes: false
# universal: false

-e file:libs/labelbox
-e file:libs/lbox-clients
Expand Down Expand Up @@ -57,7 +59,7 @@ defusedxml==0.7.1
docutils==0.20.1
# via sphinx
# via sphinx-rtd-theme
exceptiongroup==1.2.1
exceptiongroup==1.2.2
# via pytest
execnet==2.1.1
# via pytest-xdist
Expand Down Expand Up @@ -133,7 +135,7 @@ nbconvert==7.16.4
nbformat==5.10.4
# via nbclient
# via nbconvert
numpy==1.24.4
numpy==2.0.2
# via labelbox
# via opencv-python-headless
# via pandas
Expand All @@ -147,7 +149,7 @@ packaging==24.1
# via pytest-cases
# via pytest-rerunfailures
# via sphinx
pandas==2.0.3
pandas==2.2.3
pandocfilters==1.5.1
# via nbconvert
parso==0.8.4
Expand Down Expand Up @@ -196,7 +198,7 @@ pygments==2.18.0
# via rich
# via sphinx
pyjwt==2.9.0
pyproj==3.5.0
pyproj==3.6.1
# via labelbox
pytest==8.2.2
# via pytest-cov
Expand Down Expand Up @@ -235,7 +237,7 @@ requests==2.32.3
rich==12.6.0
# via databooks
# via typer
rpds-py==0.19.0
rpds-py==0.22.3
# via jsonschema
# via referencing
rsa==4.9
Expand Down
12 changes: 7 additions & 5 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# features: []
# all-features: true
# with-sources: false
# generate-hashes: false
# universal: false

-e file:libs/labelbox
-e file:libs/lbox-clients
Expand Down Expand Up @@ -43,7 +45,7 @@ idna==3.7
imagesize==1.4.1
# via labelbox
# via sphinx
importlib-metadata==8.0.0
importlib-metadata==8.5.0
# via sphinx
# via typeguard
jinja2==3.1.4
Expand All @@ -54,7 +56,7 @@ mypy==1.10.1
# via labelbox
mypy-extensions==1.0.0
# via mypy
numpy==1.24.4
numpy==2.0.2
# via labelbox
# via opencv-python-headless
# via shapely
Expand Down Expand Up @@ -83,7 +85,7 @@ pygeotile==1.0.6
# via labelbox
pygments==2.18.0
# via sphinx
pyproj==3.5.0
pyproj==3.6.1
# via labelbox
python-dateutil==2.9.0.post0
# via labelbox
Expand Down Expand Up @@ -121,7 +123,7 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
strenum==0.4.15
# via labelbox
tomli==2.0.1
tomli==2.2.1
# via mypy
tqdm==4.66.4
# via labelbox
Expand All @@ -135,5 +137,5 @@ typing-extensions==4.12.2
# via typeguard
urllib3==2.2.2
# via requests
zipp==3.19.2
zipp==3.21.0
# via importlib-metadata
Loading