<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>281877</bug_id>
          
          <creation_ts>2024-10-21 15:03:57 -0700</creation_ts>
          <short_desc>Python 3.13 support</short_desc>
          <delta_ts>2025-01-08 11:45:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261113</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>282197</dependson>
    
    <dependson>285315</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fujii</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2069671</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-10-21 15:03:57 -0700</bug_when>
    <thetext>With Python 3.13 in a venv, with setuptools installed (see bug 261113), we potentially surprisingly almost manage to work:

We get:

No archives for zope-interface-7.0.1 found
No archives for MarkupSafe-2.1.5 found

Both of these are modules where we require wheels, and neither have Python 3.13 wheels for macOS: see https://pypi.org/project/zope.interface/7.0.1/#files and https://pypi.org/project/MarkupSafe/2.1.5/#files

That said, I can&apos;t see anything that requires zope-interface-7.0.1, though MarkupSafe-2.1.5 is required by jinja2 which we use in a couple of places.

Perhaps surprisingly, all the webkitpy tests do appear to pass on Python 3.13, but we get yet more deprecation warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069672</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-21 15:04:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/138352675&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069691</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-10-21 16:00:52 -0700</bug_when>
    <thetext>Running more than just webkitpy, one discovers webkitflaskpy depends on hiredis-3.0.0 and lupa-2.2, neither of which have 3.13 wheels.

But again, with them installed from source, we do actually pass all tests on Python 3.13.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069694</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-10-21 16:08:03 -0700</bug_when>
    <thetext>So I think the main thing necessary for 3.13 support is upgrading pyfakefs to avoid https://github.com/pytest-dev/pyfakefs/issues/1017, and then we&apos;re gonna need to bump versions of the other dependencies or allow them to install (compile) from source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069698</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-10-21 16:11:55 -0700</bug_when>
    <thetext>Oh, and I forgot to mention &quot;upgrading cffi&quot;, which is also necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>