Skip to content

docs: point the PyPI package at https://www.zavu.dev - #58

Merged
viktorvillalobos merged 1 commit into
nextfrom
cursor/pypi-zavu-website-links-4ea1
Nov 13, 2026
Merged

viktorvillalobos merged 1 commit into
nextfrom
cursor/pypi-zavu-website-links-4ea1

Conversation

@viktorvillalobos

Copy link
Copy Markdown
Contributor

PyPI, Libraries.io, and other indexes currently treat the GitHub repo as the project homepage. This sets the package metadata and the README so they point at the Zavu website.

Package metadata

pyproject.toml now publishes:

  • Homepage = https://www.zavu.dev
  • Documentation = https://www.zavu.dev/docs
  • Repository = https://github.com/zavudev/sdk-python (unchanged)
  • Summary: Communication infrastructure for AI agents (WhatsApp, SMS, email, Telegram, voice)
  • Keywords: communication infrastructure, ai agents, whatsapp, sms, email, telegram, voice, zavu

The README links https://www.zavu.dev and https://www.zavu.dev/docs in the first paragraph and again under Documentation. The generated API-reference sentence still points at https://docs.zavu.dev, which is what codegen writes today.

A local python -m build (not published) wrote this into both the wheel METADATA and the sdist PKG-INFO:

Summary: Communication infrastructure for AI agents (WhatsApp, SMS, email, Telegram, voice)
Project-URL: Homepage, https://www.zavu.dev
Project-URL: Documentation, https://www.zavu.dev/docs
Project-URL: Repository, https://github.com/zavudev/sdk-python
Keywords: ai agents,communication infrastructure,email,sms,telegram,voice,whatsapp,zavu

Hatchling sorts the keywords. The long description is README.md via hatch-fancy-pypi-readme. Absolute https:// links are left as-is.

This repo is regenerated

Stainless generates this SDK. .stats.yml records the OpenAPI spec, release-please-config.json uses the Stainless release-please schema, and CI/publish workflows are the Stainless templates. The generator config is not in this repo. It is apps/docs/stainless.yml in zavudev/zavu:

  • organization.docs is https://docs.zavu.dev. That is the URL in the generated sentence "The REST API documentation can be found on …".
  • targets.python.production_repo is zavudev/sdk-python, and publish.pypi is true.
  • readme.head_text is already a server-side warning. That block is not in the current README, so the next codegen can insert it at the top and conflict with the paragraph added here.

The public Stainless config schema has no field for a PyPI homepage, a Documentation project URL, the package summary, or keywords. The Python target exposes package_name, project_name, readme_title, and publish. Generated Python SDKs hardcode [project.urls] Homepage to the GitHub repo. A direct edit of pyproject.toml is the change that actually ships those fields.

Stainless keeps edits on the integrated branch (next in this production repo) as custom code and replays them with a three-way merge. This PR targets next and uses a docs: commit so that replay applies. It can still conflict the next time codegen rewrites the same lines in README.md or pyproject.toml. Resolve those conflicts by keeping the website URLs, the summary, and the keywords.

What to change in apps/docs/stainless.yml so it sticks

  1. Put the website links in readme.head_text, and keep the existing warning. head_text is inserted near the top of every SDK README, which is the generator-owned place for this copy:
readme:
  head_text: |
    [Zavu](https://www.zavu.dev) is communication infrastructure for AI agents (WhatsApp, SMS, email, Telegram, and voice).
    Documentation: https://www.zavu.dev/docs

    > [!IMPORTANT]
    > This library is intended for **server-side use only**. Do not use it in browsers, frontend
    > applications, or any client-side code. Your API key would be exposed to end users, which is
    > a critical security risk. If you need to send messages from a frontend app, create a
    > server-side endpoint that calls the Zavu API, and have your frontend call that endpoint.
    > See the [security docs](https://docs.zavu.dev/authentication#frontend-integration) for examples.

After that generation lands, drop the hand-written paragraph in this README if it duplicates head_text.

  1. Leave organization.docs as https://docs.zavu.dev unless every SDK should stop linking the API reference host. Setting it to https://www.zavu.dev/docs rewrites that generated sentence in the Python, TypeScript, Go, Ruby, and PHP READMEs. Links inside generated docstrings come from the OpenAPI spec, not from this field, so they would still say docs.zavu.dev.

  2. There is nothing to set for the PyPI summary, keywords, or Project-URL homepage. Those stay custom code on next until Stainless adds a config key. On a merge-conflict PR, keep:

description = "Communication infrastructure for AI agents (WhatsApp, SMS, email, Telegram, voice)"
keywords = [
  "communication infrastructure",
  "ai agents",
  "whatsapp",
  "sms",
  "email",
  "telegram",
  "voice",
  "zavu",
]

[project.urls]
Homepage = "https://www.zavu.dev"
Documentation = "https://www.zavu.dev/docs"
Repository = "https://github.com/zavudev/sdk-python"

How this reaches PyPI

This PR does not publish. Nothing is uploaded to PyPI.

The release path is the one already in this repo:

  1. Merge this into next. Stainless treats that as custom code on the integrated branch.
  2. Release-please opens release PR #56 (release: 0.51.0) from next onto main, and updates it when next moves. This commit does not bump the version. Release-please owns version in pyproject.toml and src/zavudev/_version.py. The docs: commit is listed under Documentation.
  3. Merging that release PR creates a GitHub release. .github/workflows/publish-pypi.yml runs on release: published and calls bin/publish-pypi (uv build then uv publish). The wheel and sdist carry the summary, keywords, project URLs, and README above.
  4. PyPI shows Homepage and Documentation in the project links. Libraries.io reads those Project-URL values for the homepage, documentation, and repository. The already-published 0.50.0 files stay as they are until this new release.

#57 sets Homepage to https://zavu.dev and Documentation to https://docs.zavu.dev, and does not change the summary, keywords, or README. This PR is the one that matches https://www.zavu.dev and https://www.zavu.dev/docs.

Open in Web Open in Cursor 

Set the package homepage, documentation URL, summary, and keywords, and
link the website from the top of the README, so package indexes show the
Zavu site.

Co-authored-by: Víctor Villalobos <victor@zavu.dev>
@viktorvillalobos
viktorvillalobos merged commit a26e590 into next Nov 13, 2026
6 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.

2 participants