This bug is to track features that are now in specific scripts, but that should be moved to the framework.
Some examples:
- functions in scripts that could be used more broadly (e.g. functions that work on page text could be moved to textlib)
- parts of scripts that call the API, or some other low-level layer, directly
- scripts that import eachother:
We have quite a few pywikibot scripts in core (https://git.wikimedia.org/tree/pywikibot%2Fcore.git/HEAD/scripts). Some of these scripts import other scripts. That shouldn't happen. These target scripts should probably be split up in a library part and a script part:
grep "from scripts import" *.py
data_ingestion.py:from scripts import upload
flickrripper.py:from scripts import upload
template.py:from scripts import replaceMost notable one is upload.py
Version: core-(2.0)
Severity: normal