Bug 106737 - Rewrite PHP script in Python (bin/list-dispatch-commands.php)
Summary: Rewrite PHP script in Python (bin/list-dispatch-commands.php)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Arkadiy Illarionov
URL:
Whiteboard: target:5.4.0
Keywords: difficultyBeginner, easyHack, skillPython, topicCleanup
Depends on:
Blocks:
 
Reported: 2017-03-24 07:43 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2017-03-31 07:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2017-03-24 07:43:04 UTC
We have a script in http://opengrok.libreoffice.org/xref/core/bin/list-dispatch-commands.php which is used to generate the data at https://wiki.documentfoundation.org/Development/DispatchCommands .

While this is a useful script, it introduces another dependency on PHP.
The task is to rewrite that script in Python 3 which we usually use for scripts.
Comment 1 Jens Carl 2017-03-29 03:32:56 UTC
Could you please provide more details about the script: Like how, where and with which arguments it is called?
Comment 2 Samuel Mehrbrodt (allotropia) 2017-03-29 09:35:46 UTC
(In reply to Jens Carl from comment #1)
> Could you please provide more details about the script: Like how, where and
> with which arguments it is called?

See https://wiki.documentfoundation.org/Development/DispatchCommands#Tool_to_update_the_page
Comment 3 Arkadiy Illarionov 2017-03-29 19:01:05 UTC
I'd like to work on this issue. Which Python 3 version is required? Can I use f-strings for example?
Comment 4 Samuel Mehrbrodt (allotropia) 2017-03-29 19:37:32 UTC
(In reply to Arkadiy Illarionov from comment #3)
> I'd like to work on this issue. Which Python 3 version is required? Can I
> use f-strings for example?

Please try to support at least Python 3.5.
Comment 5 Commit Notification 2017-03-31 07:03:11 UTC
Arkadiy Illarionov committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b57af3320fe7230dbcf5a0f6577e05bb5ec046cc

tdf#106737 Rewrite bin/list-dispatch-commands.php in Python

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.