Repository navigation
docs: point the PyPI package at https://www.zavu.dev - #58
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tomlnow publishes:Homepage=https://www.zavu.devDocumentation=https://www.zavu.dev/docsRepository=https://github.com/zavudev/sdk-python(unchanged)Communication infrastructure for AI agents (WhatsApp, SMS, email, Telegram, voice)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 wheelMETADATAand the sdistPKG-INFO:Hatchling sorts the keywords. The long description is
README.mdviahatch-fancy-pypi-readme. Absolutehttps://links are left as-is.This repo is regenerated
Stainless generates this SDK.
.stats.ymlrecords the OpenAPI spec,release-please-config.jsonuses the Stainless release-please schema, and CI/publish workflows are the Stainless templates. The generator config is not in this repo. It isapps/docs/stainless.ymlinzavudev/zavu:organization.docsishttps://docs.zavu.dev. That is the URL in the generated sentence "The REST API documentation can be found on …".targets.python.production_repoiszavudev/sdk-python, andpublish.pypiis true.readme.head_textis 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, andpublish. Generated Python SDKs hardcode[project.urls] Homepageto the GitHub repo. A direct edit ofpyproject.tomlis the change that actually ships those fields.Stainless keeps edits on the integrated branch (
nextin this production repo) as custom code and replays them with a three-way merge. This PR targetsnextand uses adocs:commit so that replay applies. It can still conflict the next time codegen rewrites the same lines inREADME.mdorpyproject.toml. Resolve those conflicts by keeping the website URLs, the summary, and the keywords.What to change in
apps/docs/stainless.ymlso it sticksreadme.head_text, and keep the existing warning.head_textis inserted near the top of every SDK README, which is the generator-owned place for this copy:After that generation lands, drop the hand-written paragraph in this README if it duplicates
head_text.Leave
organization.docsashttps://docs.zavu.devunless every SDK should stop linking the API reference host. Setting it tohttps://www.zavu.dev/docsrewrites 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 saydocs.zavu.dev.There is nothing to set for the PyPI summary, keywords, or
Project-URLhomepage. Those stay custom code onnextuntil Stainless adds a config key. On a merge-conflict PR, keep:How this reaches PyPI
This PR does not publish. Nothing is uploaded to PyPI.
The release path is the one already in this repo:
next. Stainless treats that as custom code on the integrated branch.release: 0.51.0) fromnextontomain, and updates it whennextmoves. This commit does not bump the version. Release-please ownsversioninpyproject.tomlandsrc/zavudev/_version.py. Thedocs:commit is listed under Documentation..github/workflows/publish-pypi.ymlruns onrelease: publishedand callsbin/publish-pypi(uv buildthenuv publish). The wheel and sdist carry the summary, keywords, project URLs, and README above.Project-URLvalues 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.devand Documentation tohttps://docs.zavu.dev, and does not change the summary, keywords, or README. This PR is the one that matcheshttps://www.zavu.devandhttps://www.zavu.dev/docs.