Skip to content
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
15 changes: 15 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ values = ["stable", "alpha", "beta", "rc"]
optional_value = "0"
first_value = "0"

[[tool.bumpversion.files]]
filename = "crates/lance-context-api/Cargo.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "crates/lance-context-client/Cargo.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "crates/lance-context-server/Cargo.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "crates/lance-context-core/Cargo.toml"
search = 'version = "{current_version}"'
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/rust-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ env:

jobs:
publish:
if: github.event_name != 'pull_request'
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
Expand All @@ -47,25 +46,10 @@ jobs:

- uses: rui314/setup-mold@v1

- name: Publish lance-context-core
- name: Publish Rust crates
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
args: "--all-features"
path: crates/lance-context-core
dry-run: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'dry_run') }}

- name: Wait for crates.io index
if: >
(github.event_name == 'release' && github.event.action == 'released') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'release')
run: |
sleep 30

- name: Publish lance-context
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
args: "--all-features"
path: crates/lance-context
path: .
dry-run: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'dry_run') }}
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/lance-context-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lance-context-api"
version = "0.2.4"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Lance Devs <dev@lancedb.com>"]
Expand Down
4 changes: 2 additions & 2 deletions crates/lance-context-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lance-context-client"
version = "0.2.4"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Lance Devs <dev@lancedb.com>"]
Expand All @@ -9,7 +9,7 @@ description = "Rust client for the lance-context REST API"
keywords = ["context", "lance", "client", "api"]

[dependencies]
lance-context-api = { path = "../lance-context-api" }
lance-context-api = { version = "0.4.0", path = "../lance-context-api" }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/lance-context-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ arrow-ipc = "58"
arrow-schema = "58"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
lance = "7.0.0"
lance-context-api = { path = "../lance-context-api" }
lance-context-api = { version = "0.4.0", path = "../lance-context-api" }
lance-index = "7.0.0"
lance-namespace = "7.0.0"
lancedb = "0.30.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/lance-context-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lance-context-server"
version = "0.2.4"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Lance Devs <dev@lancedb.com>"]
Expand All @@ -13,8 +13,8 @@ name = "lance-context-server"
path = "src/main.rs"

[dependencies]
lance-context-core = { path = "../lance-context-core" }
lance-context-api = { path = "../lance-context-api" }
lance-context-core = { version = "0.4.0", path = "../lance-context-core" }
lance-context-api = { version = "0.4.0", path = "../lance-context-api" }
axum = { version = "0.8", features = ["json"] }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
clap = { version = "4", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/lance-context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ remote = ["lance-context-client"]

[dependencies]
lance-context-core = { version = "0.4.0", path = "../lance-context-core" }
lance-context-api = { version = "0.2.4", path = "../lance-context-api" }
lance-context-client = { version = "0.2.4", path = "../lance-context-client", optional = true }
lance-context-api = { version = "0.4.0", path = "../lance-context-api" }
lance-context-client = { version = "0.4.0", path = "../lance-context-client", optional = true }
Loading