Skip to content

Commit eb6a209

Browse files
[PLT-0] move to manual release (#1520)
Co-authored-by: sfendell-labelbox <150080555+sfendell-labelbox@users.noreply.github.com>
1 parent 367de74 commit eb6a209

File tree

4 files changed

+40
-44
lines changed

4 files changed

+40
-44
lines changed

.github/workflows/publish.yaml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,47 @@
1-
# Triggers a pypi publication when a release is created
2-
31
name: Publish Python Package
42

53
on:
6-
release:
7-
types: [created]
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Release Tag'
8+
required: true
89

910
jobs:
11+
test-prod:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- python-version: 3.8
17+
api-key: PROD_LABELBOX_API_KEY_2
18+
da-test-key: DA_GCP_LABELBOX_API_KEY
19+
- python-version: 3.9
20+
api-key: PROD_LABELBOX_API_KEY_3
21+
da-test-key: DA_GCP_LABELBOX_API_KEY
22+
- python-version: "3.10"
23+
api-key: PROD_LABELBOX_API_KEY_4
24+
da-test-key: DA_GCP_LABELBOX_API_KEY
25+
- python-version: 3.11
26+
api-key: LABELBOX_API_KEY
27+
da-test-key: DA_GCP_LABELBOX_API_KEY
28+
- python-version: 3.12
29+
api-key: PROD_LABELBOX_API_KEY_5
30+
da-test-key: DA_GCP_LABELBOX_API_KEY
31+
uses: ./.github/workflows/python-package-shared.yml
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
api-key: ${{ matrix.api-key }}
35+
da-test-key: ${{ matrix.da-test-key }}
36+
fixture-profile: false
37+
test-env: 'prod'
38+
secrets: inherit
1039
build:
1140
runs-on: ubuntu-latest
1241
steps:
1342
- uses: actions/checkout@v4
14-
43+
with:
44+
tag: ${{ inputs.tag }}
1545
- uses: actions/setup-python@v5
1646
with:
1747
python-version: '3.x'

.github/workflows/python-package-main.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ RUN pip install -r requirements.txt
1919
COPY . /usr/src/
2020

2121
RUN python setup.py install
22-
CMD tox -e py -- tests/integration tests/data
22+
RUN tox -e no
23+
CMD tox -e py -- tests/integration tests/data

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Labelbox Python SDK
22
[![Release Notes](https://img.shields.io/github/release/labelbox/labelbox-python)](https://github.com/Labelbox/labelbox-python/releases)
3-
[![CI](https://github.com/labelbox/labelbox-python/actions/workflows/python-package.yml/badge.svg)](https://github.com/labelbox/labelbox-python/actions)
3+
[![CI](https://github.com/Labelbox/labelbox-python/actions/workflows/python-package-develop.yaml/badge.svg)](https://github.com/Labelbox/labelbox-python/actions/workflows/python-package-develop.yaml)
44
[![Downloads](https://pepy.tech/badge/labelbox)](https://pepy.tech/project/labelbox)
55
[![Dependency Status](https://img.shields.io/librariesio/github/labelbox/labelbox-python)](https://libraries.io/github/labelbox/labelbox-python)
66
[![Open Issues](https://img.shields.io/github/issues-raw/labelbox/labelbox-python)](https://github.com/labelbox/labelbox-python/issues)
@@ -44,6 +44,8 @@ If you'd like to install the SDK with enhanced functionality, which additional o
4444
pip install "labelbox[data]"
4545
```
4646

47+
**If you want to installed a version of Labelbox built locally, be aware that only tagged commits have been validated to fully work! Installing the latest from develop is at your own risk!**
48+
4749
### Validate Installation and API Key
4850

4951
After installing the SDK and getting an API Key, it's time to validate them both.

0 commit comments

Comments
 (0)