[webkit-changes] [WebKit/WebKit] 46e336: Fix most of test-webkitpy on Python 3.12

Sam Sneddon noreply at github.com
Wed Oct 4 10:56:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46e33611bc5cbc47e8baa50a2cad8b2c2225f1bd
      https://github.com/WebKit/WebKit/commit/46e33611bc5cbc47e8baa50a2cad8b2c2225f1bd
  Author: Sam Sneddon <gsnedders at apple.com>
  Date:   2023-10-04 (Wed, 04 Oct 2023)

  Changed paths:
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py
    M Tools/Scripts/webkitpy/__init__.py
    M Tools/Scripts/webkitpy/conftest.py

  Log Message:
  -----------
  Fix most of test-webkitpy on Python 3.12
https://bugs.webkit.org/show_bug.cgi?id=260877

Reviewed by Jonathan Bedard.

This bumps many dependencies to versions which support Python 3.12,
largely either because of meta hooks changes (six, also vendored via
urllib3), because of removals (pylint, soupsieve), or because of use of
non-public API (pyfakefs).

This downgrades the version of urllib3 we are declaring on Python 3.12
as we are unable to install >=2 due to the lack of support of PEP 517
(see https://bugs.webkit.org/show_bug.cgi?id=261082). This also has the
advantage of using the same version on all configurations.

Additionally, change both versions of requests (again, to a singular
version) to be compatible with the version of urllib3 we're specifying.

Also, remove Genshi, because as noted in
https://bugs.webkit.org/show_bug.cgi?id=261103 it is in fact
unused. This avoids having to deal with its incompatibilities.

Finally, when running via pytest, install everything via the
AutoInstaller prior to the start of test execution

* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py:
* Tools/Scripts/webkitpy/__init__.py:
* Tools/Scripts/webkitpy/conftest.py:
(pytest_collection_modifyitems):
(pytest_collection_finish):

Canonical link: https://commits.webkit.org/268856@main




More information about the webkit-changes mailing list