Modernize project for new ownership#16
Merged
Merged
Conversation
- Fix CI: single latest Python (3.x), bump action versions to v4/v5 - Replace setup.cfg + setup.py with pyproject.toml using setuptools-scm for tag-based versioning; set requires-python = >=3.12 (HA minimum) - Add release.yml for OIDC-based verified PyPI publishing - Add pr-build/pr-publish/pr-cleanup workflows for PR test wheels - Update README: new badge URLs, fix asyncio example (remove deprecated loop param), fix "Anouncement" typo, add PR testing section - Add CLAUDE.md documenting release flow and PyPI trusted publisher setup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Transcribed from the MPR-6ZHMAUTO installation manual (model 10761) into a clean, structured markdown table format. Linked from README. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Tests: replace asyncio.get_event_loop() (removed in 3.14) with asyncio.new_event_loop() + addCleanup(loop.close) - mypy: add type: ignore[misc] on @wraps async wrappers (Coroutine[Any] in return type is a known wraps() limitation) - mypy: type _transport as SerialTransport | None (was incorrectly None) - mypy: fix connection_made() override to accept BaseTransport per LSP - mypy: add assert guards before accessing _transport.serial - mypy: suppress arg-type on create_serial_connection return (untyped stub) Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
actions/checkoutto v4,actions/setup-pythonto v5, replace broken3.11-devmatrix with a singlepython-version: "3.x"(always resolves to latest stable)setup.cfg+setup.pywith a completepyproject.tomlusingsetuptools-scmfor tag-based versioning; setrequires-python = ">=3.12"(current HA minimum); migrate mypy config into[tool.mypy]release.yml(OIDC trusted publisher → PyPI, no stored credentials) and PR test-build workflows (pr-build,pr-publish,pr-cleanup) mirroring the pattern used in pyriscoOnFreund/pymonoprice, remove stale Coveralls badge, fix deprecated asyncioloopargument in example, fix "Anouncement" typo, add PR testing sectiondocs/rs232-protocol.mdReviewer notes
Test plan
v0.6, create GitHub Release →release.ymlpublishes to PyPI