Skip to content

Conversation

@arcra
Copy link
Member

@arcra arcra commented Jul 10, 2025

Motivation for features / changes

Addresses #7010.

The old version of bleach that we were using, needed dependencies six and html5lib to be installed, and the old version of "six" that we were using for CI via bazel is not supported in python >= 3.12, which causes some issues at least for local builds and CI when using newer versions of python.

Technical description of changes

Update the version of bleach specified in the http_archive rule used by bazel and remove rules referring to six and html5lib.

Detailed steps to verify changes work correctly (as executed by you)

Created a virtualenv with python 3.12+ and ran bazel run //tensorboard -- --logdir=<logdir>, and verified that it runs correctly. Also CI should be passing for this to get merged.

arcra added 3 commits July 10, 2025 21:01
…and `html5lib`

Addresses tensorflow#7010.

The old version of bleach that we were using, needed dependencies `six`
and `html5lib` to be installed, and the old version of "six" that we
were using for CI via bazel is not supported in python >= 3.12, which
causes some issues at least for local builds and CI when using newer
versions of python.
@Zamanhuseyinli
Copy link

Oh, is that what you meant? I thought you would provide a separate installation structure to prevent the dependencies you use from conflicting with the old ones. Of course, this is a ridiculous idea, but as long as other libraries do not directly support these dependencies, there is no problem.

@Zamanhuseyinli
Copy link

Zamanhuseyinli commented Jul 10, 2025

By the way, support for 3.9 has been discontinued, so I think you can remove it from the CI/CD file.Older versions are already sufficient. Newer versions should be compatible with new Python standards. Even if they receive security updates, it is unnecessary. In my opinion, providing support for Python 3.10+ is more logical.

@arcra arcra marked this pull request as ready for review July 11, 2025 02:00
@arcra arcra merged commit 3aee8d8 into tensorflow:master Jul 11, 2025
24 of 25 checks passed
@arcra arcra deleted the bleach_update branch July 11, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants