Skip to content

release(v0.7.3): hand-maintained README-pypi.md for proper PyPI rendering#66

Merged
kmadan merged 1 commit into
mainfrom
chore/v0.7.3-pypi-readme
May 14, 2026
Merged

release(v0.7.3): hand-maintained README-pypi.md for proper PyPI rendering#66
kmadan merged 1 commit into
mainfrom
chore/v0.7.3-pypi-readme

Conversation

@kmadan
Copy link
Copy Markdown
Contributor

@kmadan kmadan commented May 14, 2026

Summary

PyPI doesn't resolve relative image paths or cross-links against the source repo, so https://pypi.org/project/aicertify/ has been silently showing broken images (hero banner, diagram1, demo.gif) and broken links into `examples/` and `docs/`.

This release adds a hand-maintained `README-pypi.md` and points the `readme` field in `pyproject.toml` at it. Same shape as the GitHub README but with every image and cross-link rewritten to absolute `https://raw.githubusercontent.com/.../...\` or `https://github.com/.../...\` URLs.

The GitHub README.md is unchanged. This is purely a PyPI-listing-presentation fix.

Trimmed vs. GitHub README

  • Language switcher (PyPI audience is en-only — translated READMEs are linked from the "More on GitHub" footer)
  • Verbose How-It-Works / architecture diagram walkthrough → replaced with single-paragraph "For OPA / Rego users" section
  • Full Regulatory Coverage list → replaced by the comparison table + link to full README
  • CLI flag reference table → `aicertify --help` is one command away
  • Status / Who-should-contribute sections → less PyPI-relevant

All trimmed content is one click away via the explicit "More on GitHub" pointer.

Verification

  • Locally rendered with `readme_renderer[md]` (the actual library PyPI uses) — all image `src` URLs resolve to `https://raw.githubusercontent.com\`, all hrefs are absolute
  • Headless-Chrome screenshot of rendered HTML inspected — hero banner, badges, diagram1, demo gif, code blocks, comparison table all display

Maintenance pattern

When updating Quick Start, comparison table, examples list, or any newly-relative paths in README.md → update README-pypi.md in lockstep. Drift surface is small (well under half the size of README.md).

Test plan

  • `readme_renderer.markdown.render()` succeeds, all paths absolute
  • Headless Chrome preview inspected — clean layout, all images loaded
  • After merge: `twine check dist/*` (PyPI's pre-upload validator)
  • After upload: visit `https://pypi.org/project/aicertify/0.7.3/\` and confirm hero banner + diagram + demo gif all render

…ring

PyPI doesn't resolve relative image paths or cross-links against the
source repo, so https://pypi.org/project/aicertify/ has been silently
showing broken images (hero banner, diagram1, demo.gif) and broken
links into examples/ and docs/.

This release adds a hand-maintained README-pypi.md and points the
`readme` field in pyproject.toml at it. The new file is a slightly-
trimmed variant of README.md — same structure (banner → tagline →
badges → diagram → quick start → demo gif → minimal Python → why →
comparison table → OPA-users section → examples → see-the-output →
GitHub pointers → license) — but with every image and cross-link
rewritten to absolute `https://raw.githubusercontent.com/...` or
`https://github.com/...` URLs.

Trimmed sections vs the GitHub README: the language switcher (PyPI
audience is en-only), the verbose How-It-Works/architecture diagram
walkthrough (replaced with a single-paragraph OPA-users section),
the long Regulatory Coverage list (replaced with the comparison
table + a link to the full list), the CLI flag reference table (full
help is one `aicertify --help` away), Status / Who-should-contribute
(less PyPI-relevant). All trimmed content lives one click away on
GitHub via the explicit "More on GitHub" pointer near the end.

Verified locally with `readme_renderer[md]` (the actual library PyPI
uses) — all image URLs resolve to https://raw.githubusercontent.com,
all hrefs resolve to https://github.com or other absolute targets.

The GitHub README.md is unchanged. Maintenance pattern: when updating
Quick Start, the comparison table, or the examples list in README.md,
update README-pypi.md in lockstep. CHANGELOG drift is the only thing
to watch for.

No code changes in this release.
@github-actions github-actions Bot added 📝 documentation Improvements or additions to documentation 🚀 enhancement New feature or request labels May 14, 2026
@kmadan kmadan merged commit b773dc0 into main May 14, 2026
6 checks passed
@kmadan kmadan deleted the chore/v0.7.3-pypi-readme branch May 14, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📝 documentation Improvements or additions to documentation 🚀 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant