<?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>253066</bug_id>
          
          <creation_ts>2023-02-28 02:54:37 -0800</creation_ts>
          <short_desc>[webkitcorepy] AutoInstall unable to install pytest-asyncio (or other packages without setup.py)</short_desc>
          <delta_ts>2023-03-05 17:41:33 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>dpino</cc>
    
    <cc>fujii</cc>
    
    <cc>jbedard</cc>
    
    <cc>lmoura</cc>
    
    <cc>pangle</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1937334</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-02-28 02:54:37 -0800</bug_when>
    <thetext>258166@main (bug 249564) updated the AutoInstalled versions of pytest and its plugins, including pytest-asyncio. pytest-asyncio, as of 0.19, no longer includes a setup.py: it relies on the build frontend reading pyproject.toml, per PEP 517 (https://peps.python.org/pep-0517/).

However, the AutoInstall has no knowledge of PEP 517, and instead tries to run a setup.py, and falls back to just copying the whole source packages over and hoping for the best. This (unsurprisingly) doesn&apos;t work well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937836</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-03-01 10:50:53 -0800</bug_when>
    <thetext>Looks like pytest-asyncio includes a setup.cfg, so it&apos;s note entirely in a world with only pyproject.toml yet. We also would need to bump our setuptools version to support pyproject.toml, which I&apos;m not against in the long term, but I think needs a tad more validation.

Fixing pytest-asyncio, however, doesn&apos;t require bumping setuptools. It just requires laying down a dummy setup.py file which picks up setup.cfg through setuptools. We don&apos;t even have to touch our invocation of setup.py, which is actually somewhat surprising.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937837</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-01 10:53:00 -0800</bug_when>
    <thetext>&lt;rdar://problem/106095209&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937840</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-03-01 10:56:09 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10880</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938275</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-02 13:51:20 -0800</bug_when>
    <thetext>Committed 261097@main (752a2873e756): &lt;https://commits.webkit.org/261097@main&gt;

Reviewed commits have been landed. Closing PR #10880 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938347</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-02 16:46:15 -0800</bug_when>
    <thetext>Committed 259548.354@safari-7615-branch (c2279007a3a5): &lt;https://commits.webkit.org/259548.354@safari-7615-branch&gt;

Reviewed commits have been landed. Closing PR #431 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939004</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-05 17:41:33 -0800</bug_when>
    <thetext>Regressed: Bug 253421 – REGRESSION(261097@main) [Win] test-webkitpy: Failed to install pytest-asyncio-0.20.3!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>