Skip to content

Update dependency MarkupSafe to v3#14006

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/markupsafe-3.x
Open

Update dependency MarkupSafe to v3#14006
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/markupsafe-3.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
MarkupSafe (changelog) ==2.1.3==3.0.3 age confidence
markupsafe (changelog) ==2.1.2==3.0.3 age confidence
markupsafe (changelog) ==2.0.1==3.0.3 age confidence

Release Notes

pallets/markupsafe (MarkupSafe)

v3.0.3

Compare Source

Released 2025-09-27

  • __version__ raises DeprecationWarning instead of UserWarning.
    :issue:487
  • Adopt multi-phase initialisation (:pep:489) for the C extension.
    :issue:494
  • Build Windows ARM64 wheels. :issue:485
  • Build Python 3.14 wheels. :issue:503
  • Build riscv64 wheels. :issue:505

v3.0.2

Compare Source

Released 2024-10-18

  • Fix compatibility when __str__ returns a str subclass. :issue:472
  • Build requires setuptools >= 70.1. :issue:475

v3.0.1

Compare Source

Released 2024-10-08

  • Address compiler warnings that became errors in GCC 14. :issue:466
  • Fix compatibility with proxy objects. :issue:467

v3.0.0

Compare Source

Released 2024-10-07

  • Support Python 3.13 and its experimental free-threaded build. :pr:461
  • Drop support for Python 3.7 and 3.8.
  • Use modern packaging metadata with pyproject.toml instead of setup.cfg.
    :pr:348
  • Change distutils imports to setuptools. :pr:399
  • Use deferred evaluation of annotations. :pr:400
  • Update signatures for Markup methods to match str signatures. Use
    positional-only arguments. :pr:400
  • Some str methods on Markup no longer escape their argument:
    strip, lstrip, rstrip, removeprefix, removesuffix,
    partition, and rpartition; replace only escapes its new
    argument. These methods are conceptually linked to search methods such as
    in, find, and index, which already do not escape their argument.
    :issue:401
  • The __version__ attribute is deprecated. Use feature detection, or
    importlib.metadata.version("markupsafe"), instead. :pr:402
  • Speed up escaping plain strings by 40%. :pr:434
  • Simplify speedups implementation. :pr:437

v2.1.5

Compare Source

Released 2024-02-02

  • Fix striptags not collapsing spaces. :issue:417

v2.1.4

Compare Source

Released 2024-01-19

  • Don't use regular expressions for striptags, avoiding a performance
    issue. :pr:413

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners April 8, 2026 19:28
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Apr 8, 2026
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. api: cloudfunctions Issues related to the Cloud Run functions API. api: composer Issues related to the Cloud Composer API. labels Apr 8, 2026
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 8, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the MarkupSafe dependency to version 3.0.3 across multiple requirement files. The review highlights that this upgrade may introduce breaking changes and compatibility issues with older Python versions (3.7 and 3.8) and legacy frameworks like Flask==1.1.4. It is recommended to revert to markupsafe==2.1.5 to maintain stability in these environments.

gunicorn==23.0.0
requests==2.31.0
markupsafe==2.0.1
markupsafe==3.0.3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Updating markupsafe to 3.0.3 is likely to cause compatibility issues in this legacy environment. MarkupSafe 3.0.0+ dropped support for Python 3.7 and 3.8, which are often used with Flask==1.1.4. Additionally, the major version bump introduces breaking changes in method signatures (positional-only arguments) and escaping behavior that may not be supported by the older versions of Flask and Werkzeug pinned here.

markupsafe==2.1.5

pytest==8.2.0
cloud-composer-dag-test-utils==1.0.0
markupsafe==2.1.2
markupsafe==3.0.3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

MarkupSafe 3.0.0+ drops support for Python 3.7 and 3.8. As this sample is for an older Airflow summit, it may be intended for environments using these Python versions. Upgrading to 3.0.3 will cause installation failures on those runtimes.

markupsafe==2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: appengine Issues related to the App Engine Admin API API. api: cloudfunctions Issues related to the Cloud Run functions API. api: composer Issues related to the Cloud Composer API. owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants