Page MenuHomePhabricator

Port maintainer.py et al to core and move to separate package
Open, Needs TriagePublic

Description

This is maintainer.py and it's dependencies:

censure.py
maintcont.py
rciw.py

I think this should be moved to a seperate package, which depends on pywikibot.


Version: core-(2.0)
Severity: enhancement

Details

Reference
bz64839

Event Timeline

bzimport raised the priority of this task from to Lowest.
bzimport set Reference to bz64839.
bzimport added a subscriber: Unknown Object (????).
Xqt added a comment.May 24 2014, 2:46 PM

No idea for what this is good for.

jayvdb raised the priority of this task from Lowest to Needs Triage.Dec 5 2014, 3:39 AM
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).
droid added a subscriber: droid.Mar 9 2015, 9:55 AM

Change 198546 had a related patch set uploaded (by Prianka):
Porting maintainer.py et al to pywikibot-core from compat.

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

jayvdb added a subscriber: jayvdb.Apr 8 2015, 9:12 PM

How do we use/test this?

After installing the irclib package, the bot starts up with

$ python pwb.py scripts/maintainer/maintcont.py 
WARNING: Type of 'console_encoding' changed
         Was: <type 'str'>
         Now: <type 'unicode'>

worker list:
--------------------

I can then see that 'maintcont' has joined irc.freenode.net

/msg maintcont active
/msg maintcont workerjoin foo
07:05 <maintcont> accepted
07:05 <maintcont> tasklist rciw|censure

and on the console

worker list:
--------------------

('worker got, name:', 'jayvdb', 'job:', 'foo')

worker list:
('*', 'jayvdb', 'has been removed')
--------------------

how do we get it to do anything more than that?

As with T66848, I think this should not go into the main repository but an external one which has pywikibot as dependency.