valhallasw added a comment.
I have changed the overall structure of the project directory a bit. There are now two shared virtualenvs:
- ~/venv-py35-stretch - ~/venv-py27-stretch
both venvs have pywikibot and mwparserfromhell installed. The shared username & config are now stored in ~/.pywikibot, safe from prying eyes. This also means it's super easy to use pywikibot: simply drop a python script that uses pywikibot, and call
`~/venv-py35-stretch/python <your-script>`
and the script will automatically use the `nlwikibots` account.
I have converted `tvpupdater` to the new system, and have converterd `archivering` as well (quadruple upgrade: pywikibot compat -> core, python 2 -> python 3, trusty -> stretch and sys.path hacks -> virtualenv).
`tvpmelder` is still to do.
TASK DETAIL https://phabricator.wikimedia.org/T216355
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw Cc: FrankGeerlings, Aklapper, tools-nlwikibots-list, valhallasw, AndyTan, Zylc, 1978Gage2001, Jayprakash12345, Chicocvenancio, Tbscho, JJMC89, srodlund, Gryllida, Akoopal, scfc, Mbch331, Krenair, chasemp
valhallasw added a comment.
Took a look at `tvpmelder` -- this seems more of an headache:
- complex code that uses both the api and the database - usage of both bytestrings and unicode strings due to the database access. Not clear whether this will work under Python 3 - the AfD page layout has changed recently, and the bot doesn't seem to understands the new format
TASK DETAIL https://phabricator.wikimedia.org/T216355
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw Cc: FrankGeerlings, Aklapper, tools-nlwikibots-list, valhallasw, AndyTan, Zylc, 1978Gage2001, Jayprakash12345, Chicocvenancio, Tbscho, JJMC89, srodlund, Gryllida, Akoopal, scfc, Mbch331, Krenair, chasemp
FrankGeerlings closed this task as "Resolved". FrankGeerlings claimed this task. FrankGeerlings added a comment.
Removed the last nlwikibots crontab entry (`tvpmelder`) from Trusty. Added `tbpmelder` (different code base, same general idea) to Stretch crontab.
TASK DETAIL https://phabricator.wikimedia.org/T216355
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: FrankGeerlings Cc: FrankGeerlings, Aklapper, tools-nlwikibots-list, valhallasw, AndyTan, Zylc, 1978Gage2001, Jayprakash12345, Chicocvenancio, Tbscho, JJMC89, srodlund, Gryllida, Akoopal, scfc, Mbch331, Krenair, chasemp
tools-nlwikibots@lists.wikimedia.org