Ship 1.0.0: tag-driven PyPI publishing, and declare typing_extensions - #7
Merged
Merged
Conversation
Publishing was a manual upload from a laptop; 0.1.0 went out that way and 0.1.1 never reached PyPI at all. Pushing a v* tag now does the whole thing: verify, run the same CI matrix cd.yml runs before a deploy, build, gate the artifacts, publish via OIDC trusted publishing (no stored token), and open a GitHub Release with notes lifted from CHANGELOG.md. The gates are the point. A release refuses to proceed when the tag disagrees with package.json, when the tagged commit is not an ancestor of origin/main, or when CHANGELOG.md has no section for the version — and both the wheel and the sdist must carry the component bundle, since a package that installs cleanly and then renders nothing is otherwise indistinguishable from a good one. That last check runs from outside the checkout on purpose: a script fed to python on stdin puts the cwd at sys.path[0], and the repo root holds dash_mui_scheduler/ — run from there it imports the source tree and passes against a wheel that shipped nothing. Also declares typing_extensions. Every generated wrapper imports it, and the package had been inheriting it from Dash; the floor is dash 2.11, which gated it behind a python_version marker, so an old-Dash resolution could install successfully and fail on import. 1.0.0 graduates the package out of 0.x — the component API has not changed since 0.1.0 and existing code keeps working untouched. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Publishing was a manual upload from a laptop; 0.1.0 went out that way and 0.1.1 never reached PyPI at all. Pushing a v* tag now does the whole thing: verify, run the same CI matrix cd.yml runs before a deploy, build, gate the artifacts, publish via OIDC trusted publishing (no stored token), and open a GitHub Release with notes lifted from CHANGELOG.md.
The gates are the point. A release refuses to proceed when the tag disagrees with package.json, when the tagged commit is not an ancestor of origin/main, or when CHANGELOG.md has no section for the version — and both the wheel and the sdist must carry the component bundle, since a package that installs cleanly and then renders nothing is otherwise indistinguishable from a good one. That last check runs from outside the checkout on purpose: a script fed to python on stdin puts the cwd at sys.path[0], and the repo root holds dash_mui_scheduler/ — run from there it imports the source tree and passes against a wheel that shipped nothing.
Also declares typing_extensions. Every generated wrapper imports it, and the package had been inheriting it from Dash; the floor is dash 2.11, which gated it behind a python_version marker, so an old-Dash resolution could install successfully and fail on import.
1.0.0 graduates the package out of 0.x — the component API has not changed since 0.1.0 and existing code keeps working untouched.