Skip to content

Commit

Permalink
[PLT-0] move to manual release (#1520)
Browse files Browse the repository at this point in the history
Co-authored-by: sfendell-labelbox <[email protected]>
  • Loading branch information
adrian-chang and sfendell-labelbox authored Mar 29, 2024
1 parent 367de74 commit eb6a209
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 44 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,47 @@
# Triggers a pypi publication when a release is created

name: Publish Python Package

on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
description: 'Release Tag'
required: true

jobs:
test-prod:
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
api-key: PROD_LABELBOX_API_KEY_2
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.9
api-key: PROD_LABELBOX_API_KEY_3
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: "3.10"
api-key: PROD_LABELBOX_API_KEY_4
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.11
api-key: LABELBOX_API_KEY
da-test-key: DA_GCP_LABELBOX_API_KEY
- python-version: 3.12
api-key: PROD_LABELBOX_API_KEY_5
da-test-key: DA_GCP_LABELBOX_API_KEY
uses: ./.github/workflows/python-package-shared.yml
with:
python-version: ${{ matrix.python-version }}
api-key: ${{ matrix.api-key }}
da-test-key: ${{ matrix.da-test-key }}
fixture-profile: false
test-env: 'prod'
secrets: inherit
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

with:
tag: ${{ inputs.tag }}
- uses: actions/setup-python@v5
with:
python-version: '3.x'
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/python-package-main.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ RUN pip install -r requirements.txt
COPY . /usr/src/

RUN python setup.py install
CMD tox -e py -- tests/integration tests/data
RUN tox -e no
CMD tox -e py -- tests/integration tests/data
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Labelbox Python SDK
[![Release Notes](https://img.shields.io/github/release/labelbox/labelbox-python)](https://github.com/Labelbox/labelbox-python/releases)
[![CI](https://github.com/labelbox/labelbox-python/actions/workflows/python-package.yml/badge.svg)](https://github.com/labelbox/labelbox-python/actions)
[![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)
[![Downloads](https://pepy.tech/badge/labelbox)](https://pepy.tech/project/labelbox)
[![Dependency Status](https://img.shields.io/librariesio/github/labelbox/labelbox-python)](https://libraries.io/github/labelbox/labelbox-python)
[![Open Issues](https://img.shields.io/github/issues-raw/labelbox/labelbox-python)](https://github.com/labelbox/labelbox-python/issues)
Expand Down Expand Up @@ -44,6 +44,8 @@ If you'd like to install the SDK with enhanced functionality, which additional o
pip install "labelbox[data]"
```

**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!**

### Validate Installation and API Key

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

0 comments on commit eb6a209

Please sign in to comment.