fix: use README.md content for PyPI long description instead of hardcoded text

- Replace hardcoded description in create_wheel.sh with dynamic README.md reading
- Add error handling if README.md is not found
- Ensures PyPI description stays in sync with repository README

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DaisukeYoda
2025-09-17 00:09:12 +09:00
parent 3f4036dd6c
commit bb13e6d912

View File

@@ -200,6 +200,12 @@ create_wheel() {
# Copy binary
cp "$binary_path" "$bin_dir/"
# Check if README.md exists
if [[ ! -f "$readme_path" ]]; then
echo "Error: README.md not found at $readme_path"
exit 1
fi
# Create METADATA file
cat > "$metadata_dir/METADATA" << EOF
Metadata-Version: 2.1
@@ -225,11 +231,11 @@ Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.8
Description-Content-Type: text/markdown
# pyscn - Python Quality of Life
A next-generation Python static analysis tool that uses Control Flow Graph (CFG) and tree edit distance algorithms to provide deep code quality insights beyond traditional linters.
EOF
# Append README.md content to METADATA
cat "$readme_path" >> "$metadata_dir/METADATA"
# Create WHEEL file
cat > "$metadata_dir/WHEEL" << EOF
Wheel-Version: 1.0
@@ -332,6 +338,7 @@ main() {
local platform_tag=""
local binary_path=""
local output_dir="$project_dir/dist"
local readme_path="$project_dir/README.md"
# Parse arguments
while [[ $# -gt 0 ]]; do