Page MenuHomePhabricator

Use configparser for config files instead of other variants
Open, LowestPublicFeature

Description

Proposals

  • rename config2.py to config.py and implement loading all global and user-defined settings
  • global bot settings can be located in pywikibot/config.ini
  • userdefined settings can be located in user-config.ini
  • script related settings including L10N can be located in scripts_config.ini
  • drop user-config.py support. This might be a great advantage using PAWS
  • enable site-related settings e.g. from wiki page

Event Timeline

Xqt triaged this task as Lowest priority.May 19 2019, 9:08 AM
Xqt changed the subtype of this task from "Task" to "Feature Request".

Change 511692 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] add a new ConfigParserBot class

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

Change 511692 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] add a new ConfigParserBot class

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

Change 731267 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [IMPR] Provide ConfigParserBot for several scripts

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

Change 731267 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Provide ConfigParserBot for several scripts

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