From bfe21b29d47e9d391aa6868b9c27a843155044e4 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Wed, 1 Jan 2025 17:53:51 +0800 Subject: [PATCH] build: streamline package discovery and bump to v0.4.243 - Replace explicit package listing with setuptools.find - Include all crawl4ai.* packages automatically - Use `packages = {find = {where = ["."], include = ["crawl4ai*"]}}` syntax - Bump version to 0.4.243 This change simplifies package maintenance by automatically discovering all subpackages under crawl4ai namespace instead of listing them manually. --- crawl4ai/__version__.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crawl4ai/__version__.py b/crawl4ai/__version__.py index 6a6b93f3..2761f396 100644 --- a/crawl4ai/__version__.py +++ b/crawl4ai/__version__.py @@ -1,2 +1,2 @@ # crawl4ai/_version.py -__version__ = "0.4.242" +__version__ = "0.4.243" diff --git a/pyproject.toml b/pyproject.toml index 9a1ee248..b3247e8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,10 +69,10 @@ crawl4ai-doctor = "crawl4ai.install:doctor" crawl = "crawl4ai.cli:cli" [tool.setuptools] -packages = ["crawl4ai", "crawl4ai.js_snippet"] +packages = {find = {where = ["."], include = ["crawl4ai*"]}} [tool.setuptools.package-data] crawl4ai = ["js_snippet/*.js"] [tool.setuptools.dynamic] -version = {attr = "crawl4ai.__version__.__version__"} +version = {attr = "crawl4ai.__version__.__version__"} \ No newline at end of file