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.
This commit is contained in:
UncleCode
2025-01-01 17:53:51 +08:00
parent e9d9a6ffe8
commit bfe21b29d4
2 changed files with 3 additions and 3 deletions

View File

@@ -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__"}