mirror of
https://github.com/HKUDS/CLI-Anything.git
synced 2026-09-19 09:31:09 +08:00
fix(calibre): make setup.py path-safe and ship README in wheel
- Resolve README.md relative to setup.py via Path(__file__).parent - Open README with explicit utf-8 encoding - Add include_package_data=True and include README.md in package_data so 'pip install ./calibre/agent-harness' works from any cwd and the installed wheel ships SKILL.md plus README.md. Addresses reviewer feedback on PR #223 (Phase 2). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
yuhao
co-authored by
Copilot
parent
d6fb8cc52b
commit
f7690c9efe
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user