Skip to content

Commit 768ce32

Browse files
author
Guowei Hsu
committed
Re-Distribute CJK Package.
1 parent 400a04a commit 768ce32

File tree

6 files changed

+71
-70
lines changed

6 files changed

+71
-70
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PyPI Publish
33
on:
44
push:
55
tags:
6-
- 'python-v*'
6+
- 'python-cjk-v*'
77
pull_request:
88
# This should trigger a dry run (we skip the final publish step)
99
paths:
@@ -58,36 +58,36 @@ jobs:
5858
with:
5959
pypi_token: ${{ secrets.LANCEDB_PYPI_API_TOKEN }}
6060
fury_token: ${{ secrets.FURY_TOKEN }}
61-
mac:
62-
timeout-minutes: 90
63-
runs-on: ${{ matrix.config.runner }}
64-
strategy:
65-
matrix:
66-
config:
67-
- target: x86_64-apple-darwin
68-
runner: macos-15-large
69-
- target: aarch64-apple-darwin
70-
runner: warp-macos-14-arm64-6x
71-
env:
72-
MACOSX_DEPLOYMENT_TARGET: 10.15
73-
steps:
74-
- uses: actions/checkout@v4
75-
with:
76-
fetch-depth: 0
77-
lfs: true
78-
- name: Set up Python
79-
uses: actions/setup-python@v4
80-
with:
81-
python-version: 3.12
82-
- uses: ./.github/workflows/build_mac_wheel
83-
with:
84-
python-minor-version: 8
85-
args: "--release --strip --target ${{ matrix.config.target }} --features fp16kernels"
86-
- uses: ./.github/workflows/upload_wheel
87-
if: startsWith(github.ref, 'refs/tags/python-v')
88-
with:
89-
pypi_token: ${{ secrets.LANCEDB_PYPI_API_TOKEN }}
90-
fury_token: ${{ secrets.FURY_TOKEN }}
61+
# mac:
62+
# timeout-minutes: 90
63+
# runs-on: ${{ matrix.config.runner }}
64+
# strategy:
65+
# matrix:
66+
# config:
67+
# - target: x86_64-apple-darwin
68+
# runner: macos-15-large
69+
# - target: aarch64-apple-darwin
70+
# runner: warp-macos-14-arm64-6x
71+
# env:
72+
# MACOSX_DEPLOYMENT_TARGET: 10.15
73+
# steps:
74+
# - uses: actions/checkout@v4
75+
# with:
76+
# fetch-depth: 0
77+
# lfs: true
78+
# - name: Set up Python
79+
# uses: actions/setup-python@v4
80+
# with:
81+
# python-version: 3.12
82+
# - uses: ./.github/workflows/build_mac_wheel
83+
# with:
84+
# python-minor-version: 8
85+
# args: "--release --strip --target ${{ matrix.config.target }} --features fp16kernels"
86+
# - uses: ./.github/workflows/upload_wheel
87+
# if: startsWith(github.ref, 'refs/tags/python-v')
88+
# with:
89+
# pypi_token: ${{ secrets.LANCEDB_PYPI_API_TOKEN }}
90+
# fury_token: ${{ secrets.FURY_TOKEN }}
9191
windows:
9292
timeout-minutes: 60
9393
runs-on: windows-latest
@@ -179,7 +179,7 @@ jobs:
179179
report-failure:
180180
name: Report Workflow Failure
181181
runs-on: ubuntu-latest
182-
needs: [linux, mac, windows]
182+
needs: [linux, windows]
183183
permissions:
184184
contents: read
185185
issues: write

.github/workflows/python.yml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Python
33
on:
44
push:
55
branches:
6-
- main
6+
- cjk/sync
7+
- cjk/release
78
pull_request:
89
paths:
910
- Cargo.toml
@@ -142,37 +143,37 @@ jobs:
142143
# Make sure wheels are not included in the Rust cache
143144
- name: Delete wheels
144145
run: rm -rf target/wheels
145-
platform:
146-
name: "Mac: ${{ matrix.config.name }}"
147-
timeout-minutes: 30
148-
strategy:
149-
matrix:
150-
config:
151-
- name: x86
152-
runner: macos-15-large
153-
- name: Arm
154-
runner: macos-14
155-
runs-on: "${{ matrix.config.runner }}"
156-
defaults:
157-
run:
158-
shell: bash
159-
working-directory: python
160-
steps:
161-
- uses: actions/checkout@v4
162-
with:
163-
fetch-depth: 0
164-
lfs: true
165-
- name: Set up Python
166-
uses: actions/setup-python@v5
167-
with:
168-
python-version: "3.12"
169-
- uses: ./.github/workflows/build_mac_wheel
170-
with:
171-
args: --profile ci
172-
- uses: ./.github/workflows/run_tests
173-
# Make sure wheels are not included in the Rust cache
174-
- name: Delete wheels
175-
run: rm -rf target/wheels
146+
# platform:
147+
# name: "Mac: ${{ matrix.config.name }}"
148+
# timeout-minutes: 30
149+
# strategy:
150+
# matrix:
151+
# config:
152+
# - name: x86
153+
# runner: macos-15-large
154+
# - name: Arm
155+
# runner: macos-14
156+
# runs-on: "${{ matrix.config.runner }}"
157+
# defaults:
158+
# run:
159+
# shell: bash
160+
# working-directory: python
161+
# steps:
162+
# - uses: actions/checkout@v4
163+
# with:
164+
# fetch-depth: 0
165+
# lfs: true
166+
# - name: Set up Python
167+
# uses: actions/setup-python@v5
168+
# with:
169+
# python-version: "3.12"
170+
# - uses: ./.github/workflows/build_mac_wheel
171+
# with:
172+
# args: --profile ci
173+
# - uses: ./.github/workflows/run_tests
174+
# # Make sure wheels are not included in the Rust cache
175+
# - name: Delete wheels
176+
# run: rm -rf target/wheels
176177
windows:
177178
name: "Windows: ${{ matrix.config.name }}"
178179
timeout-minutes: 60

.github/workflows/run_tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
- name: Install lancedb
1616
shell: bash
1717
run: |
18-
pip3 install --extra-index-url https://pypi.fury.io/lance-format/ --extra-index-url https://pypi.fury.io/lancedb/ $(ls target/wheels/lancedb-*.whl)[tests,dev]
18+
pip3 install --extra-index-url https://pypi.fury.io/lance-format/ --extra-index-url https://pypi.fury.io/lancedb/ $(ls target/wheels/lancedbcjk-*.whl)[tests,dev]
1919
- name: Setup localstack for integration tests
2020
if: ${{ inputs.integration == 'true' }}
2121
shell: bash

.github/workflows/upload_wheel/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ runs:
3434
PYPI_TOKEN: ${{ inputs.pypi_token }}
3535
run: |
3636
if [[ ${{ steps.choose_repo.outputs.repo }} == fury ]]; then
37-
WHEEL=$(ls target/wheels/lancedb-*.whl 2> /dev/null | head -n 1)
37+
WHEEL=$(ls target/wheels/lancedbcjk-*.whl 2> /dev/null | head -n 1)
3838
echo "Uploading $WHEEL to Fury"
3939
curl -f -F package=@$WHEEL https://$FURY_TOKEN@push.fury.io/lancedb/
4040
else
4141
twine upload --repository ${{ steps.choose_repo.outputs.repo }} \
4242
--username __token__ \
4343
--password $PYPI_TOKEN \
44-
target/wheels/lancedb-*.whl
44+
target/wheels/lancedbcjk-*.whl
4545
fi

python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "lancedb"
2+
name = "lancedbcjk"
33
# version in Cargo.toml
44
dynamic = ["version"]
55
dependencies = [
@@ -13,7 +13,7 @@ dependencies = [
1313
"lance-namespace>=0.2.1"
1414
]
1515
description = "lancedb"
16-
authors = [{ name = "LanceDB Devs", email = "dev@lancedb.com" }]
16+
authors = [{ name = "LanceDB Devs", email = "dev@lancedb.com" }, { name = "Guowei Hsu", email = "tsui@highyouth.com" }]
1717
license = { file = "LICENSE" }
1818
readme = "README.md"
1919
requires-python = ">=3.9"

python/python/lancedb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Dict, Optional, Union, Any
1010
import warnings
1111

12-
__version__ = importlib.metadata.version("lancedb")
12+
__version__ = importlib.metadata.version("lancedbcjk")
1313

1414
from ._lancedb import connect as lancedb_connect
1515
from .common import URI, sanitize_uri

0 commit comments

Comments
 (0)