RESOLVED FIXED 214309
[webkitcorepy] Spin off general webkitpy tools into a pip module
https://bugs.webkit.org/show_bug.cgi?id=214309
Summary [webkitcorepy] Spin off general webkitpy tools into a pip module
Jonathan Bedard
Reported 2020-07-14 11:22:33 PDT
This bug is intended as the start of a discussion on how to better organize our Python tooling so that it's 1) more re-usable (particularly relevant for services) 2) better tested 3) less coupled to WebKit's specific development quirks. Eventually, the intention is to break off many more parts of webkitpy into this, or other, modules until webkitpy only contains code specific to developing WebKit within the WebKit checkout.
Attachments
Patch (53.21 KB, patch)
2020-07-14 11:43 PDT, Jonathan Bedard
no flags
Patch for landing (53.40 KB, patch)
2020-07-15 14:11 PDT, Jonathan Bedard
no flags
Jonathan Bedard
Comment 1 2020-07-14 11:43:02 PDT
Jonathan Bedard
Comment 2 2020-07-15 11:46:15 PDT
Comment on attachment 404258 [details] Patch The consensus I've heard so far is that this is the right direction. Obviously a single class is insufficient for a library, but I think that doing this piece-by-piece will result in cleaner SCM history as well as more thorough code review.
dewei_zhu
Comment 3 2020-07-15 12:25:25 PDT
Comment on attachment 404258 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404258&action=review > Tools/Scripts/webkitpy/port/win.py:-40 > -from webkitpy.common.system.executive import Executive Do we intentionally remove this? If so, maybe we should mention it in the change log.
Jonathan Bedard
Comment 4 2020-07-15 12:37:14 PDT
Comment on attachment 404258 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404258&action=review >> Tools/Scripts/webkitpy/port/win.py:-40 >> -from webkitpy.common.system.executive import Executive > > Do we intentionally remove this? If so, maybe we should mention it in the change log. This was intentional, I have an IDE configured and removed unused imports. I'll update changelogs.
dewei_zhu
Comment 5 2020-07-15 12:37:57 PDT
Comment on attachment 404258 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404258&action=review >>> Tools/Scripts/webkitpy/port/win.py:-40 >>> -from webkitpy.common.system.executive import Executive >> >> Do we intentionally remove this? If so, maybe we should mention it in the change log. > > This was intentional, I have an IDE configured and removed unused imports. I'll update changelogs. Got it.
Fujii Hironori
Comment 6 2020-07-15 12:57:14 PDT
pip? Do you plan to add the such modules into PyPI? And, use them by auto-installing?
Jonathan Bedard
Comment 7 2020-07-15 13:53:21 PDT
(In reply to Fujii Hironori from comment #6) > pip? Do you plan to add the such modules into PyPI? And, use them by > auto-installing? We definitely are going to be adding these to a package index, not clear yet if we want to add them to the globally accessible one. (Apple has a private package index which we prefer over the global one, but other organizations developing WebKit may want to install these packages, which would likely push us to add them to the global package index) As for auto-installing, yes, but not for WebKit development from the WebKit repository. That should remain unchanged because it's useful to pair WebKit changes with script changes. The use case for auto-installing our own packages that I had in mind is the various Python services we host (which don't share a ton of code at the moment)
Jonathan Bedard
Comment 8 2020-07-15 14:11:52 PDT
Created attachment 404392 [details] Patch for landing
EWS
Comment 9 2020-07-15 14:39:37 PDT
Committed r264425: <https://trac.webkit.org/changeset/264425> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404392 [details].
Radar WebKit Bug Importer
Comment 10 2020-07-15 14:40:17 PDT
Note You need to log in before you can comment on or make changes to this bug.