Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix(calibre): make setup.py path-safe and ship README in wheel

ChengYef7690c9efe1f
diff --git a/calibre/agent-harness/setup.py b/calibre/agent-harness/setup.py
index 9cfdf379f..cccba3443 100644
--- a/calibre/agent-harness/setup.py
+++ b/calibre/agent-harness/setup.py
@@ -1,13 +1,21 @@
+from pathlib import Path
+
from setuptools import setup, find_namespace_packages
+BASE_DIR = Path(__file__).parent
+long_description = (BASE_DIR / "cli_anything" / "calibre" / "README.md").read_text(
+ encoding="utf-8"
+)
+
setup(
name="cli-anything-calibre",
version="1.0.0",
description="CLI harness for Calibre e-book manager — part of the cli-anything toolkit",
- long_description=open("cli_anything/calibre/README.md").read(),
+ long_description=long_description,
long_description_content_type="text/markdown",
packages=find_namespace_packages(include=["cli_anything.*"]),
- package_data={"cli_anything.calibre": ["skills/*.md"]},
+ include_package_data=True,
+ package_data={"cli_anything.calibre": ["skills/*.md", "README.md"]},
install_requires=[
"click>=8.0.0",
"prompt-toolkit>=3.0.0",