build_connector_package
БесплатноБез исполняемых скриптовНе проверенCreate a pyproject.toml for a source connector, bump its version, and build its prebuilt wheel into wheelhouse/.
от databrickslabs★ 74 звезды на GitHubОб этом скилле
Build Source Project
Goal
Create a pyproject.toml for {{source_name}} connector that can be built and distributed as an independent Python package, bump its version when it changes, and build its prebuilt wheel into wheelhouse/{{source_name}}/.
Prerequisites
- The source connector implementation must already exist under
src/databricks/labs/community_connector/sources/{{source_name}}/ - Python 3.10+ installed on your system
Creating pyproject.toml
Create a pyproject.toml file in the source directory with the following structure:
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lakeflow-community-connectors-{{source_name}}"
version = "0.1.0"
description = "{{source_name}} connector for Lakeflow Community Connectors"
requires-python = ">=3.10"
dependencies = [
"pyspark>=3.5.0",
"pydantic>=2.0.0",
"lakeflow-community-connectors>=0.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
[tool.setuptools]
packages = ["databricks.labs.community_connector.sources.{{source_name}}"]
[tool.setuptools.package-dir]
"databricks.labs.community_connector.sources.{{source_name}}" = "."
[tool.setuptools.package-data]
"*" = ["*.json", "*.md", "*.yaml"]
Important Notes
Dependencies: Each source depends on:
lakeflow-community-connectors>=0.1.0- provides theinterfaceandlibsmodulespyspark>=3.5.0- for Spark DataFrame typespydantic>=2.0.0- for data validation
Package Naming: Use
lakeflow-community-connectors-{{source_name}}format (with hyphens, not underscores)Version: a new connector starts at
0.1.0. For an existing connector, never reset or hand-pick the version: bump it as described below.
Choose the version
Skip this section for a new connector. Otherwise, compare the change with master and bump version in src/databricks/labs/community_connector/sources/{{source_name}}/pyproject.toml once, by the largest change. The full rules and examples are in CONTRIBUTING.md (Versioning).
- For every table the change touches, decide what an existing pipeline needs after upgrading:
- full refresh: primary key, cursor, ingestion type, column type, nested struct shape, value meaning or offset format changed, or past data must be repaired
- user action: a table, column, connection parameter, table option or auth method was renamed or removed, an optional parameter or option became required, or a runtime requirement went past what supported runtimes provide
- nothing
- Pick the bump:
- MAJOR (
x.y.z→x+1.0.0) if any table needs a full refresh or user action - MINOR (
x.y.z→x.y+1.0) if nothing is needed and the change adds capability (table, nullable column, optional parameter, auth method, new dependency) - PATCH (
x.y.z→x.y.z+1) for fixes, performance, logging and refactors - No bump if only tests,
README.mdor{{source_name}}_api_doc.mdchanged. Stop here: don't rebuild.
- MAJOR (
- If
masteralready has a higher version than your branch's base, bump frommaster's version. - Record the bump in the commit message and PR description:
{{source_name}} 0.1.0 → 0.2.0 (MINOR): add the cohorts table. For MAJOR, also list what users must do, per table.
If the change also touches framework code (outside sources/), bump the root pyproject.toml by the framework rules in CONTRIBUTING.md (Versioning → Framework: MAJOR if any connector must change, MINOR for new capability, PATCH for fixes; source_simulator/ changes don't bump) and rebuild with --framework. The new framework version must satisfy every connector's lakeflow-community-connectors range: if the script reports a mismatch, update those connectors in the same change (raise the cap and bump each one) or don't release the framework change.
Build the prebuilt wheel (required)
The managed ingestion wizard installs wheelhouse/_framework/ and wheelhouse/{{source_name}}/, so rebuild in the same change as the code and the version bump:
# One-time, in the venv that runs the command
pip install build
python tools/scripts/build_wheelhouse.py {{source_name}}
# wheelhouse/{{source_name}}/lakeflow_community_connectors_{{source_name}}-<version>-py3-none-any.whl
# Only if framework code changed:
python tools/scripts/build_wheelhouse.py --framework
Then verify against master. Fix anything it reports and re-run until it passes:
python tools/scripts/build_wheelhouse.py {{source_name}} --check --base origin/master
It fails if the directory doesn't hold exactly one wheel matching the pyproject.toml version, if the wheel is stale, or if the wheel's contents changed without a version bump. Commit wheelhouse/{{source_name}}/ (and wheelhouse/_framework/ if rebuilt) together with the source change.
Build + upload via the CLI (recommended)
`community-conne
Установить build_connector_package в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл build_connector_package?
Create a pyproject.toml for a source connector, bump its version, and build its prebuilt wheel into wheelhouse/.
Как установить скилл build_connector_package?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build_connector_package запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic