Bug 220468

Summary: [webkitcorepy] Add standard mechanism for packaging pip packages
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: REOPENED ---    
Severity: Normal CC: slewis, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch jbedard: review?

Description Jonathan Bedard 2021-01-08 10:40:06 PST
All of our pip packages based on webkitcorepy share some key pieces in common. Most notably, we've attempted to de-duplicate the version of a pip package from setup.py and the __init__.py of the package. This means that we attempt to import from a package before we've actually installed it's dependencies, which can be a problem. The right solution to this is probably to edit the contents of setup.py to replace the imported version with a it's value before deploying the package, but that means having a script to do the package deployment.

In the mean time, we need to duplicate the version for our pip packages to make them easier to independently install.
Comment 1 Radar WebKit Bug Importer 2021-01-08 10:40:41 PST
<rdar://problem/72935720>
Comment 2 Jonathan Bedard 2021-01-08 10:53:49 PST
Created attachment 417277 [details]
Patch
Comment 3 EWS 2021-01-08 11:34:41 PST
Committed r271306: <https://trac.webkit.org/changeset/271306>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 417277 [details].
Comment 4 Jonathan Bedard 2021-01-08 11:35:27 PST
The change landed in this patch just works-around the problem, it doesn't resolve it.
Comment 5 Jonathan Bedard 2021-05-03 13:49:54 PDT
Created attachment 427599 [details]
Patch
Comment 6 Jonathan Bedard 2021-05-03 13:55:11 PDT
Still some work to do to make this compatible with Artifactory, but this lays out the mechanics I had in mind for standardizing our packaging mechanics