Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

Port maintainer.py et al to core and move to separate package
Closed, DeclinedPublic

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

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 3:13 AM
bzimport set Reference to bz64839.
bzimport added a subscriber: Unknown Object (????).

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 (????).

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

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.

No idea for what this package is good for.

Change 198546 abandoned by Xqt:
Porting maintainer.py et al to pywikibot-core from compat.

Reason:
No idea for what tis package is good for. Please reopen if you need or maintain it.

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