Skip to content

docs(python): a PyPI page for Python users with absolute links, and CI checks the wheel's description (#905) - #906

Merged
DrunkOnJava merged 11 commits into
mainfrom
docs/pypi-page
Oct 23, 2026
Merged

DrunkOnJava merged 11 commits into
mainfrom
docs/pypi-page

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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.md and similar links resolve under pypi.org/project/rvt/ and reach nothing. Separately, rvt-py/README.md said 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"; Documentation opens docs/python.md instead of the root README.
  • tests/python/test_docs_python.py: two tests on the installed wheel (importlib.metadata), which the python-wheel job builds and installs before pytest. One checks that the description equals rvt-py/README.md and that every link is https://. The other runs the description's python blocks against the tier-1 fixture copied as model.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.
  • Real Revit files: N/A. The example runs on corpus/tier1/architectural-2024/architectural-2024.rvt in the python-wheel job, against the wheel that job builds, so the checked description is the one a release uploads.
  • IFC exporter / performance: N/A.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • No limitation resolved or introduced in the library
  • Commit messages describe what and why
  • No emojis
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding: N/A

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 23, 2026 16:36
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 23, 2026 16:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread rvt-py/README.md Resolved
Comment thread rvt-py/README.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread tests/python/test_docs_python.py Resolved
…example writes with newline='', and the link check reads reference definitions
@DrunkOnJava
DrunkOnJava merged commit d9c5c10 into main Oct 23, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/pypi-page branch October 23, 2026 17:10
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

PyPI page: relative links resolve under pypi.org, and rvt-py/README.md says 0.1.2

1 participant