Repository navigation
docs(python): a PyPI page for Python users with absolute links, and CI checks the wheel's description (#905) - #906
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 920c9f84c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3252c61c55
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…example writes with newline='', and the link check reads reference definitions
Summary
PyPI shows
rvt-py/README.md, rewritten for Python users with absolute links only. CI reads the built wheel's own description, checks that it is that file with no relative links, and runs its example. Fixes #905.Stacked on #902, which adds
tests/python/test_docs_python.py. Its commits show in this diff until #902 lands. The change here is the last commit, d521334.Motivation
#905. PyPI renders the description it is given and does not rewrite relative links. 0.6.1's description is the root README, whose
docs/...,CHANGELOG.mdand similar links resolve underpypi.org/project/rvt/and reach nothing. Separately,rvt-py/README.mdsaid PyPI shipped 0.1.2 and the crate was not on crates.io.Changes
rvt-py/README.md: what the package reads,pip install rvt, an example (metadata, element counts, IFC, CSV schedule, diagnostics), what to expect with a link to the support table, documentation links, then the existing contributor sections (why a separate crate, building from source) and the licence and trademark notice. Every link is absolute, and no version number appears.pyproject.toml:readme = "rvt-py/README.md";Documentationopensdocs/python.mdinstead of the root README.tests/python/test_docs_python.py: two tests on the installed wheel (importlib.metadata), which thepython-wheeljob builds and installs before pytest. One checks that the description equalsrvt-py/README.mdand that every link ishttps://. The other runs the description'spythonblocks against the tier-1 fixture copied asmodel.rvt.CHANGELOG.md: a Fixed entry.crates.io keeps the root README: it resolves relative links against
repository.Testing
tools/check-local.sh: N/A, no Rust changed.corpus/tier1/architectural-2024/architectural-2024.rvtin thepython-wheeljob, against the wheel that job builds, so the checked description is the one a release uploads.Audit-honesty checklist
Legal and contribution hygiene