jenkins-bot has submitted this change and it was merged.
Change subject: Just a hint: use compat2core as a helper script ......................................................................
Just a hint: use compat2core as a helper script
Change-Id: Ic50abd7f111d6f68a6aa4339b2bde90140aee846 --- M README-conversion.txt 1 file changed, 11 insertions(+), 5 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/README-conversion.txt b/README-conversion.txt index 1ca732d..e229ab0 100644 --- a/README-conversion.txt +++ b/README-conversion.txt @@ -14,11 +14,12 @@ scripts to the new interface simply by changing import statements and doing global search-and-replace on module names, as discussed in this document.
-With pywikipedia scripts were importing "wikipedia" or "pagegenerators" -libraries; pywikibot is now written as a standard package, and other modules -are contained within it (e.g., pywikibot.site contains Site classes). However, -most commonly-used names are imported into the pywikibot namespace, so that -module names don't need to be used unless specified in the documentation. +With pywikibot compat branch scripts were importing "wikipedia" or +"pagegenerators" libraries; pywikibot is now written as a standard package, +and other modules are contained within it (e.g., pywikibot.site contains Site +classes). However, most commonly-used names are imported into the pywikibot +namespace, so that module names don't need to be used unless specified in the +documentation.
Make sure that the directory that contains the "pywikibot" subdirectory (or folder) is in sys.path. @@ -36,6 +37,11 @@ wikipedia.setAction() no longer works; you must revise the script to pass an explicit edit summary message on each put() or put_async() call.
+There is a helper script which does a lot of changes automatically. +Just call it: +pwb.py maintenance/compat2core [<script to convert>] +and follow the instructions and hints. + == Python librairies ==
[Note: the goal will be to package pywikibot with setuptools easy_install,