Skip to content

Add PyPI descriptions and publish Python by default - #120

Merged
leileizhang (lei9444) merged 4 commits into
mainfrom
lei9444-fix-pypi-release-metadata
Sep 2, 2026
Merged

leileizhang (lei9444) merged 4 commits into
mainfrom
lei9444-fix-pypi-release-metadata

Conversation

@lei9444

@lei9444 leileizhang (lei9444) commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • embed complete Markdown READMEs in the dynwinrt and dynwinrt-codegen wheel metadata
  • give the PyPI codegen distribution a dedicated Python-only README, parallel to the existing npm README
  • reject release wheels with a missing or non-Markdown long description
  • proofread the PyPI descriptions against the implementation, including supported Python/platform matrices, runtime behavior, WinUI limitations, Python codegen options, and the lack of Python Classic COM generation
  • align dynwinrt-codegen --help with its Python and Classic COM support
  • enable PublishPyPI by default so tagged releases publish npm and Python packages through ESRP; it can still be disabled for a non-PyPI rehearsal
  • make --pre explicit in generated preview release installation notes
  • extend all GitHub/ADO release handoff waits from 20 to 60 minutes to avoid the timeout encountered during preview.20

Validation

  • built ARM64 CPython 3.13 dynwinrt and standalone dynwinrt-codegen wheels with maturin
  • verified both wheels with verify_python_release.py wheel
  • confirmed each wheel embeds its selected README exactly with Description-Content-Type: text/markdown
  • confirmed the codegen wheel uses tools/dynwinrt-codegen/python/README.md and contains no npm installation content
  • generated an installable Uri Python package, loaded it with an isolated published runtime wheel, called Uri.host, and exited cleanly under RoApartment plus projected_lifetime_scope
  • confirmed the published 0.1.0rc20 wheel set is rejected by the new missing-description gate
  • parsed every Python and PowerShell example in the package READMEs
  • ran cargo test -p dynwinrt-codegen and parsed both release workflow YAML files
  • confirmed v0.1.0-preview.21, npm 0.1.0-preview.21, and PyPI 0.1.0rc21 are all currently unoccupied

The existing 0.1.0rc20 PyPI metadata is immutable; the corrected descriptions will appear in the next release.

Embed package READMEs in both Python distributions, reject wheels without Markdown descriptions, and enable PyPI publication by default alongside npm releases.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1fb6f3e5-4d38-4ffe-85b3-5ecd03ef3134
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 82.86% 79.18% 82.78% regions
Generated Python projections 70.48% n/a 21.71% branches
JavaScript aggregate 21.24% 20.56% 53.98% branches
JavaScript runtime 19.91% 14.28% 7.14% branches
Generated WinRT projections 25.74% 19.25% 54.66% branches
Generated Classic COM projections 14.65% 24.46% 53.75% branches

View workflow run and download full HTML/LCOV/XML reports

Correct and streamline the full PyPI descriptions, document every codegen option and limitation, align CLI help, and make preview installation explicit in generated release notes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1fb6f3e5-4d38-4ffe-85b3-5ecd03ef3134
Allow up to 60 minutes for the GitHub and ADO release workflows to exchange the assembled Python wheels and shared GitHub Release.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1fb6f3e5-4d38-4ffe-85b3-5ecd03ef3134
Give the PyPI codegen distribution its own Python-focused description, separate from the source and npm READMEs, and validate that source metadata points to it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1fb6f3e5-4d38-4ffe-85b3-5ecd03ef3134
@lei9444
leileizhang (lei9444) merged commit 1a0f769 into main Sep 2, 2026
24 checks passed
@lei9444
leileizhang (lei9444) deleted the lei9444-fix-pypi-release-metadata branch September 2, 2026 10:34
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.

3 participants