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
53 changes: 53 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright (c) 2026 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Dependabot configuration for the kernel.
#
# Ecosystems intentionally covered:
# - cargo: keeps the Rust crate graph patched, complements
# `cargo-deny` (RustSec advisories already block merges).
# - github-actions: keeps the SHA-pinned actions current.
#
# Ecosystems intentionally NOT covered:
# - pip: per go/pinning-python-deps the kernel is an
# externally-published library; we use major-version bounds in
# pyo3/pyproject.toml + `uv sync` re-resolution per CI run, with
# no committed lockfile. Letting Dependabot rewrite pinned pip
# versions would conflict with that policy.

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
groups:
# Batch patch + minor updates to reduce PR churn; security
# advisories still come through as individual PRs.
cargo-minor-and-patch:
update-types:
- "minor"
- "patch"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
groups:
gha-minor-and-patch:
update-types:
- "minor"
- "patch"
2 changes: 1 addition & 1 deletion .github/workflows/dco-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
name: Check DCO Sign-off
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

Expand Down
20 changes: 13 additions & 7 deletions pyo3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@ description = "Python bindings for the Databricks SQL Kernel (PyO3)"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [{ name = "Databricks" }]
# Runtime dependency for downstream consumers. Loose major-version
# bound per the published-library guidance — exact pins make this
# wheel harder for end-users to install alongside their own pyarrow
# consumers. The CI environment is fully hash-locked via `uv.lock`
# (see below), separately from this contract.
# Runtime dependency for downstream consumers. Major-version bound
# per the go/pinning-python-deps externally-published-library rule:
# exact pins make this wheel harder for end-users to install
# alongside their own pyarrow consumers. The CI environment also
# uses these bounds (no committed lockfile) — see the
# `[dependency-groups].dev` block below + the workflow comment in
# `.github/workflows/pyo3-checks.yml` for the policy rationale.
dependencies = ["pyarrow>=14,<19"]

# Dev / CI dependencies. PEP 735 standard; uv reads this directly.
# `uv sync --frozen` installs from `uv.lock`, which carries SHA256
# hashes for every artifact + transitive dep.
# CI runs `uv sync --group dev` (no `--frozen`, no committed
# lockfile) per the externally-published-library policy in
# go/pinning-python-deps. The major-version upper bounds below
# plus the `db-pypi` JFrog proxy's 7-day age filter are the
# baseline supply-chain protection; uv re-resolves on each CI run
# within those bounds.
[dependency-groups]
dev = [
"maturin>=1.7,<2.0",
Expand Down