Page MenuHomePhabricator

Refactor upload.py / move re-usable parts to framework
Closed, ResolvedPublic

Description

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 replace

Most notable one is upload.py

Event Timeline

valhallasw raised the priority of this task from to Needs Triage.
valhallasw updated the task description. (Show Details)
valhallasw added subscribers: Multichill, valhallasw, Ricordisamoa, Unknown Object (MLST).

Change 283422 had a related patch set uploaded (by Xqt):
[IMPR] Separate scripts and library part

https://gerrit.wikimedia.org/r/283422

Xqt triaged this task as Medium priority.Aug 26 2016, 7:52 AM

Change 283422 merged by jenkins-bot:
[IMPR] Separate scripts and library part

https://gerrit.wikimedia.org/r/283422