Page MenuHomeDevCentral

Install and configure pywikibot
ClosedPublic

Authored by dereckson on Nov 15 2017, 22:29.
Tags
None
Referenced Files
F9519334: D1218.id.diff
Fri, Jun 6, 08:40
F9507332: D1218.id3130.diff
Fri, Jun 6, 02:22
F9491271: D1218.id3132.diff
Thu, Jun 5, 17:46
F9482196: D1218.id3133.diff
Thu, Jun 5, 12:41
F9481503: D1218.id3133.diff
Thu, Jun 5, 12:21
Unknown Object (File)
Wed, Jun 4, 19:01
Unknown Object (File)
Tue, Jun 3, 15:38
Unknown Object (File)
Mon, Jun 2, 16:19
Subscribers
None

Details

Summary

This is a follow-up for 1e344c0b.

Install the downloaded pywikibot as a package through setup.py,
so every Python 3 script can do an import pywikibot.

Provide configuration for DæghrefnBot.

Ref T1309

Test Plan

Run create_givenname or create_surname

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
install-pywikibot
Build Status
Buildable 1937
Build 2185: arc lint + arc unit

Event Timeline

Drop use_api_login.

Documented on wiki but the following message is raised at runtime:

/usr/local/lib/python3.6/site-packages/pywikibot-3.0.20171114-py3.6.egg/pywikibot/config2.py:1070: UserWarning: Configuration variable use_api_login is defined but unknown. Misspelled?
  'Misspelled?'.format(name), UserWarning)

user-config.py doesn't contain sensible data

This revision is now accepted and ready to land.Nov 15 2017, 23:07
This revision was automatically updated to reflect the committed changes.