Upgrade to Python 3.11#14
Draft
olmos-keepsafe wants to merge 10 commits into
Draft
Conversation
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
Upgrades
html-structure-diffto the shared Python 3.11 library/tool conventions while preserving its public parsing, rendering, and structural-diff behavior.Changes
setup.pyandsetup.cfgwithpyproject.toml.--py311-plus.pip-compile.This repository is a library/tool rather than a service, so service-only migration work such as Docker Compose, Gunicorn, backing services, and runtime health checks is intentionally excluded.
Compatibility
The existing Mistune 0.8.4 behavior remains pinned and covered by golden fixtures. Upgrading to Mistune 3.x is intentionally outside the scope of this pull request.
Downstream impact
Version 1.1.0 requires Python 3.11, so downstream consumers should update to this release as part of their own Python 3.11 migrations.
Known consumers:
content-validatordirectly importssdiffAPIs and currently references version 1.0.0. Its Python 3.11 migration should update the dependency to 1.1.0 and rerun its compatibility and integration proof.email-serviceconsumessdifftransitively throughcontent-validator. Its generated requirements currently reference the older 0.4.1 tag and will need to be regenerated after upgrading Python andcontent-validator.translation-real-time-validatonalso consumessdifftransitively throughcontent-validatorand currently references the older 0.4.1 tag. Its Python 3.11 migration will need the same dependency refresh and service-level verification.This pull request makes the Python 3.11-compatible library release available but does not update those downstream repositories or claim their service flows have been verified. Each consumer must run its own tests and integration proof after adopting the new package version.
Validation
pip checkreported no broken requirements.twine checkpassed for both distribution artifacts.--next, and processed-config validation.Linear
BE-96: Upgrade html-structure to Python 3.11
Fixes BE-96