From 19c1facf7f764285f6bd58181c1441657a24260c Mon Sep 17 00:00:00 2001 From: Jiajun Xie Date: Thu, 16 Apr 2026 08:44:08 +0800 Subject: [PATCH] fix(docs): update channel plugin build backend to hatchling The previous setuptools.backends._legacy:_Backend has been removed in Python 3.14 and newer setuptools, causing 'Cannot import setuptools.backends.legacy' error. Using hatchling (same as main project) ensures compatibility across Python versions. Closes #3188 --- docs/CHANNEL_PLUGIN_GUIDE.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/CHANNEL_PLUGIN_GUIDE.md b/docs/CHANNEL_PLUGIN_GUIDE.md index 65ff9eec..70087f33 100644 --- a/docs/CHANNEL_PLUGIN_GUIDE.md +++ b/docs/CHANNEL_PLUGIN_GUIDE.md @@ -141,8 +141,11 @@ dependencies = ["nanobot", "aiohttp"] webhook = "nanobot_channel_webhook:WebhookChannel" [build-system] -requires = ["setuptools"] -build-backend = "setuptools.backends._legacy:_Backend" +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["nanobot_channel_webhook"] ``` The key (`webhook`) becomes the config section name. The value points to your `BaseChannel` subclass.