Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compute/client_library/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
isort==6.0.0; python_version > "3.9"
isort==5.13.2; python_version <= "3.8"
black==24.8.0; python_version < "3.9"
black==24.10.0; python_version >= "3.9"
black==26.3.1; python_version < "3.9"
black==26.3.1; python_version >= "3.9"
Comment on lines +3 to +4
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

Black 26.3.1 dropped support for Python 3.9 and earlier (this change was introduced in version 25.12.0). The current markers will cause installation failures on Python 3.8 and 3.9 because they attempt to install an incompatible version of Black.

To resolve this while still providing the security update for supported environments, you should restrict Black 26.3.1 to Python 3.10+ and use the previous compatible versions for older Python environments. Note that those older versions will remain vulnerable to the security issue mentioned in the PR description.

black==24.8.0; python_version < "3.9"
black==24.10.0; python_version >= "3.9" and python_version < "3.10"
black==26.3.1; python_version >= "3.10"

google-cloud-compute==1.19.1