jayvdb added a comment.

This concept needs to be fleshed out some more. If it is only the scripts in pywikibot-core repo, T139144: Making a pypi package pywikibot-scripts for officially supported scripts would be the correct approach, and the current pwb.py script is probably not very useful for that.

If it is goes to support other scripts, that are separate packages, how will it find them?

One approach is to create a PEP420 namespace, but that doesnt work in Python 2. For T104130: Family packages, https://gerrit.wikimedia.org/r/#/c/221637/ has a Python 2 mechanism that replicates PEP420 behaviour. Maybe I should extract that out into a separate package, and then it can be used for scripts also.

Another approach is to register the scripts as plugins using setuptools (like flake8 v2).

Other ideas?

The library does need a mechanism to create a user-config.py, and that could be a console script in the pywikibot package, and could simply be the existing generate_user_config.py.

Related patches are:


TASK DETAIL
https://phabricator.wikimedia.org/T139143

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: DrTrigon, jayvdb, pywikibot-bugs-list, Aklapper, Zppix, AbdealiJK, Mdupont, Jay8g
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to