Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit ab188cd

Browse files
authored
Merge pull request #10 from Labelbox/gu/last-release
Last release prep
2 parents ce17728 + c218f18 commit ab188cd

File tree

4 files changed

+48
-26
lines changed

4 files changed

+48
-26
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: 'Release Tag'
7+
description: "Release Tag"
88
required: true
99

1010
jobs:
@@ -13,28 +13,28 @@ jobs:
1313
outputs:
1414
hashes: ${{ steps.hash.outputs.hashes }}
1515
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
ref: ${{ inputs.tag }}
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: '3.x'
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install setuptools wheel twine
27-
- name: Build
28-
run: |
29-
python setup.py sdist bdist_wheel
30-
- name: "Generate hashes"
31-
id: hash
32-
run: |
33-
cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
34-
- uses: actions/upload-artifact@v4
35-
with:
36-
name: build
37-
path: ./dist
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ inputs.tag }}
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.x"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install setuptools wheel twine
27+
- name: Build
28+
run: |
29+
python setup.py sdist bdist_wheel
30+
- name: "Generate hashes"
31+
id: hash
32+
run: |
33+
cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: build
37+
path: ./dist
3838

3939
provenance_python:
4040
needs: [build]
@@ -50,9 +50,9 @@ jobs:
5050

5151
publish-python-package-to-release:
5252
runs-on: ubuntu-latest
53-
needs: ['build']
53+
needs: ["build"]
5454
permissions:
55-
contents: write
55+
contents: write
5656
steps:
5757
- uses: actions/checkout@v4
5858
with:
@@ -66,3 +66,18 @@ jobs:
6666
gh release upload ${{ inputs.tag }} ./artifact/*
6767
env:
6868
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
pypi-publish:
70+
runs-on: ubuntu-latest
71+
needs: ["build"]
72+
permissions:
73+
# IMPORTANT: this permission is mandatory for trusted publishing
74+
id-token: write
75+
steps:
76+
- uses: actions/download-artifact@v4
77+
with:
78+
name: build
79+
path: ./artifact
80+
- name: Publish package distributions to PyPI
81+
uses: pypa/gh-action-pypi-publish@release/v1
82+
with:
83+
packages-dir: artifact/

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
> [!WARNING]
2+
> Starting in July 2024, we will begin achieving all data connector libraries were they will no longer be maintained, including `labelspark`, `labelpandas`, `labelsnow`, and `labelbox-bigquery` libraries.
3+
> To import data from remote sources such as Databricks and Snowflake, set up Census integrations directly on the Labelbox platform.
4+
15
# Labelbox Connector for Google BigQuery
26

37
Access the Labelbox Connector for Google BigQuery to easily perform the following functionalities:

labelboxbigquery/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
from labelboxbigquery.client import Client
2+
from warnings import warn
3+
4+
warn(f'The module {__name__} is deprecated.', DeprecationWarning, stacklevel=2)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="labelboxbigquery",
8-
version="0.1.8",
8+
version="0.1.9",
99
author="Labelbox",
1010
author_email="[email protected]",
1111
description="Labelbox Connector for BigQuery",

0 commit comments

Comments
 (0)