Skip to content

Use the readme as long description on PyPI - #69

Merged
stefankoegl merged 1 commit into
masterfrom
claude/vibrant-dijkstra-6s8trl-pypi-readme
Nov 11, 2026
Merged

stefankoegl merged 1 commit into
masterfrom
claude/vibrant-dijkstra-6s8trl-pypi-readme

Conversation

@stefankoegl

Copy link
Copy Markdown
Owner

The PyPI page used the module docstring's second paragraph as its long description. That is one sentence plus a link, so the usage example, type hints and payload sections were only visible on GitHub.

Changes

  • long_description is now readme.md, with long_description_content_type='text/markdown'.
  • The short description is still the first line of the module docstring ("A Python implementation of a kd-tree").

Testing

  • python -m build succeeds, and twine check dist/* passes for the sdist and the wheel. The publish workflow already runs twine check.
  • The wheel METADATA has Description-Content-Type: text/markdown and the readme as its body.
  • readme_renderer[md], which PyPI uses, renders all headings and code blocks.
  • readme.md is already included in the sdist via MANIFEST.in.

The pyproject.toml migration PR builds on this one.


Generated by Claude Code

The PyPI page showed the module docstring's second paragraph ("This
package provides a simple implementation of a kd-tree in Python." and a
link), so the usage example and the type hints were only on GitHub. The
long description is now readme.md, rendered as Markdown. The short
description stays the first line of the module docstring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pewzpiih3qbqQ1YhUbhbvk
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — claude/vibrant-dijkstra-6s8trl-pypi-readme into master

@stefankoegl
stefankoegl merged commit 9dbb489 into master Nov 11, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants