lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
September 2017
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
2 participants
109 discussions
Start a n
N
ew thread
Passed: wikimedia/pywikibot-core#4335 (master - 3c26042)
by Travis CI
29 Sep '17
29 Sep '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4335 Status: Passed Duration: 2 hours, 8 minutes, and 43 seconds Commit: 3c26042 (master) Author: jenkins-bot Message: Merge "Introduce a userscripts directory" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/f0d16962b2b0...3c26042b…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/281211631?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: Introduce a userscripts directory
by jenkins-bot (Code Review)
29 Sep '17
29 Sep '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/378734
) Change subject: Introduce a userscripts directory ...................................................................... Introduce a userscripts directory Bug: T176147 Change-Id: Ia9fc57243f5b66b20b00911f373c916d79945ceb --- M .gitignore M pwb.py A scripts/userscripts/__init__.py 3 files changed, 6 insertions(+), 1 deletion(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved Zoranzoki21: Looks good to me, but someone else must approve diff --git a/.gitignore b/.gitignore index 3e00551..cf0b69d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ build dist docs/_build/ +/scripts/userscripts/* +!/scripts/userscripts/__init__.py diff --git a/pwb.py b/pwb.py index 03b46d4..cd99f5f 100755 --- a/pwb.py +++ b/pwb.py @@ -209,7 +209,8 @@ if not os.path.exists(filename): script_paths = ['scripts', 'scripts.maintenance', - 'scripts.archive'] + 'scripts.archive', + 'scripts.userscripts'] from pywikibot import config # flake8: disable=E402 if config.user_script_paths: if isinstance(config.user_script_paths, (tuple, list)): diff --git a/scripts/userscripts/__init__.py b/scripts/userscripts/__init__.py new file mode 100644 index 0000000..02a8c63 --- /dev/null +++ b/scripts/userscripts/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +"""THIS DIRECTORY IS TO HOLD USER-DEFINED BOT SCRIPTS.""" -- To view, visit
https://gerrit.wikimedia.org/r/378734
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ia9fc57243f5b66b20b00911f373c916d79945ceb Gerrit-PatchSet: 7 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Huji <huji.huji(a)gmail.com> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz> Gerrit-Reviewer: Huji <huji.huji(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <Ladsgroup(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: Zoranzoki21 <dori.gord(a)orion.rs> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Passed: wikimedia/pywikibot-core#4334 (master - f0d1696)
by Travis CI
25 Sep '17
25 Sep '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4334 Status: Passed Duration: 2 hours, 2 minutes, and 23 seconds Commit: f0d1696 (master) Author: MarcoAurelio Message: Add hi.wikivoyage to wikivoyage family Bug: T173013 Change-Id: I82e708c0b55df2e48c83838a4db38e43bf0b5085 View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/2c7fc53e84a1...f0d16962…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/279693140?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: Add hi.wikivoyage to wikivoyage family
by jenkins-bot (Code Review)
25 Sep '17
25 Sep '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/371142
) Change subject: Add hi.wikivoyage to wikivoyage family ...................................................................... Add hi.wikivoyage to wikivoyage family Bug: T173013 Change-Id: I82e708c0b55df2e48c83838a4db38e43bf0b5085 --- M pywikibot/families/wikivoyage_family.py 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Multichill: Looks good to me, approved jenkins-bot: Verified Dereckson: Looks good to me, but someone else must approve Zoranzoki21: Looks good to me, but someone else must approve Objections: Xqt: There's a problem with this change, please improve diff --git a/pywikibot/families/wikivoyage_family.py b/pywikibot/families/wikivoyage_family.py index bb0d8fb..a29341c 100644 --- a/pywikibot/families/wikivoyage_family.py +++ b/pywikibot/families/wikivoyage_family.py @@ -23,7 +23,7 @@ """Constructor.""" self.languages_by_size = [ 'en', 'de', 'fa', 'it', 'fr', 'pl', 'ru', 'nl', 'pt', 'fi', 'es', - 'zh', 'he', 'vi', 'sv', 'el', 'ro', 'uk', + 'zh', 'he', 'vi', 'sv', 'el', 'ro', 'uk', 'hi', ] super(Family, self).__init__() -- To view, visit
https://gerrit.wikimedia.org/r/371142
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I82e708c0b55df2e48c83838a4db38e43bf0b5085 Gerrit-PatchSet: 7 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: MarcoAurelio <maurelio(a)tools.wmflabs.org> Gerrit-Reviewer: Dereckson <dereckson(a)espace-win.org> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: MarcoAurelio <maurelio(a)tools.wmflabs.org> Gerrit-Reviewer: Multichill <maarten(a)mdammers.nl> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: Zoranzoki21 <dori.gord(a)orion.rs> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Errored: wikimedia/pywikibot-core#4333 (master - 2c7fc53)
by Travis CI
25 Sep '17
25 Sep '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4333 Status: Errored Duration: 2 hours, 10 minutes, and 11 seconds Commit: 2c7fc53 (master) Author: Zoranzoki21 Message: Add deadLinkTag = { for sr wiki Bug: T175482 Change-Id: Iae444e6b7a868801b92340a23f800be3b265149d View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/e877b9f6709e...2c7fc53e…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/279383342?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: Add deadLinkTag = { for sr wiki
by jenkins-bot (Code Review)
25 Sep '17
25 Sep '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/379976
) Change subject: Add deadLinkTag = { for sr wiki ...................................................................... Add deadLinkTag = { for sr wiki Bug: T175482 Change-Id: Iae444e6b7a868801b92340a23f800be3b265149d --- M scripts/reflinks.py 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Dvorapa: Looks good to me, but someone else must approve jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/scripts/reflinks.py b/scripts/reflinks.py index c178b0c..7f39ae8 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -112,6 +112,7 @@ 'en': u'[%s] {{dead link}}', 'pl': u'[%s] {{Martwy link}}', 'ru': u'[%s] {{subst:dead}}', + 'sr': '[%s] {{dead link}}', } -- To view, visit
https://gerrit.wikimedia.org/r/379976
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Iae444e6b7a868801b92340a23f800be3b265149d Gerrit-PatchSet: 6 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Zoranzoki21 <dori.gord(a)orion.rs> Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz> Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: Zoranzoki21 <dori.gord(a)orion.rs> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Fixed: wikimedia/pywikibot-core#4332 (master - e877b9f)
by Travis CI
21 Sep '17
21 Sep '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4332 Status: Fixed Duration: 1 hour, 8 minutes, and 33 seconds Commit: e877b9f (master) Author: jenkins-bot Message: Merge "Skip when target raises UnsupportedPage" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/bfe87c29f1f4...e877b9f6…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/278123591?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: Skip when target raises UnsupportedPage
by jenkins-bot (Code Review)
21 Sep '17
21 Sep '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/367322
) Change subject: Skip when target raises UnsupportedPage ...................................................................... Skip when target raises UnsupportedPage An UnsupportedPage is raised when the target is a Special: page or a Media: page. Now it will be skipped. Change-Id: Ia5a2d626e0071dcf358b7c5e04014247c847f936 --- M scripts/redirect.py 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/scripts/redirect.py b/scripts/redirect.py index bd8ddec..7b8f93d 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -615,7 +615,8 @@ u"Redirect target section %s doesn't exist." % newRedir.title(asLink=True)) except (pywikibot.CircularRedirect, - pywikibot.InterwikiRedirectPage) as e: + pywikibot.InterwikiRedirectPage, + pywikibot.UnsupportedPage) as e: pywikibot.exception(e) pywikibot.output(u"Skipping %s." % newRedir) break -- To view, visit
https://gerrit.wikimedia.org/r/367322
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ia5a2d626e0071dcf358b7c5e04014247c847f936 Gerrit-PatchSet: 4 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Broken: wikimedia/pywikibot-core#4331 (master - bfe87c2)
by Travis CI
19 Sep '17
19 Sep '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4331 Status: Broken Duration: 2 hours, 7 minutes, and 50 seconds Commit: bfe87c2 (master) Author: jenkins-bot Message: Merge "[bugfix] Re-enable installation from pypi package" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/58d5624cd430...bfe87c29…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/277400531?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: [bugfix] Re-enable installation from pypi package
by jenkins-bot (Code Review)
19 Sep '17
19 Sep '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/375541
) Change subject: [bugfix] Re-enable installation from pypi package ...................................................................... [bugfix] Re-enable installation from pypi package - rename pypi descripton file which must be the same name as in subfolder - Also add release history to pypi description Bug: T176085 Change-Id: Ibca3cc0f545d6481f6c3427b5d14a4e7f7aadf86 --- A CONTENT.rst A HISTORY.rst M README.rst D pypi_description.rst A pywikibot/CONTENT.rst A pywikibot/DIRECTORIES.rst M pywikibot/README.rst M setup.py 8 files changed, 357 insertions(+), 311 deletions(-) Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified diff --git a/CONTENT.rst b/CONTENT.rst new file mode 100644 index 0000000..b9b81af --- /dev/null +++ b/CONTENT.rst @@ -0,0 +1,46 @@ +The contents of the package +---------------------------- + + +----------------------------------------------------------------------------------+ + | README and config files: | + +===========================+======================================================+ + | ChangeLog | Log file to keep track of major changes versionwise | + +---------------------------+------------------------------------------------------+ + | CODE_OF_CONDUCT.md | Code of conduct reference | + +---------------------------+------------------------------------------------------+ + | CONTENT.rst | Content description file | + +---------------------------+------------------------------------------------------+ + | CREDITS | List of major contributors to this module | + +---------------------------+------------------------------------------------------+ + | ez_setup.py | Bootstrap distribute installation file, can also be | + | | run to install or upgrade setuptools. | + +---------------------------+------------------------------------------------------+ + | generate_family_file.py| Creates a new family file. | + +---------------------------+------------------------------------------------------+ + | generate_user_files.py | Creates user-config.py or user-fixes.py | + +---------------------------+------------------------------------------------------+ + | LICENSE | a reference to the MIT license | + +---------------------------+------------------------------------------------------+ + | pwb.py | Wrapper script to use Pywikibot in 'directory' mode | + +---------------------------+------------------------------------------------------+ + | README-conversion.txt | Guide to converting bot scripts from version 1 | + | | of the Pywikibot framework to version 3 | + +---------------------------+------------------------------------------------------+ + | README.rst | Short info string used by Pywikibot Nightlies | + +---------------------------+------------------------------------------------------+ + | requirements.txt | PIP requirements file | + +---------------------------+------------------------------------------------------+ + | setup.py | Installer script for Pywikibot 3.0 framework | + +---------------------------+------------------------------------------------------+ + | user-config.py.sample | Example user-config.py file for reference | + +---------------------------+------------------------------------------------------+ + + +----------------------------------------------------------------------------------+ + | Directories | + +===========================+======================================================+ + | pywikibot | Contains some libraries and control files | + +---------------------------+------------------------------------------------------+ + | scripts | Contains all bots and utility scripts | + +---------------------------+------------------------------------------------------+ + | tests | Some test stuff for the developing team | + +---------------------------+------------------------------------------------------+ diff --git a/HISTORY.rst b/HISTORY.rst new file mode 100644 index 0000000..989c1bf --- /dev/null +++ b/HISTORY.rst @@ -0,0 +1,101 @@ +Release history +=============== + +3.0.20170917 +-------------- + +* BaseUnlinkBot has become part of the framework in specialbots.py +* Decommission of rcstream +* Script files added to
https://doc.wikimedia.org/pywikibot/
+* Other documentation updates +* Bugfixes and improvements +* Localisation updates + +3.0.20170801 +------------ + +* Bugfixes and improvements +* Localisation updates + +3.0.20170713 +------------ + +* Implement server side event client EventStreams +* Add thanks log support +* new ndashredir.py script to create hyphenated redirects +* new followlive.py script to flag new articles +* new WbUnknown data type for Wikibase +* Deprecate APISite.newfiles() +* new pagegenerators filter option -titleregexnot +* Inverse of pagegenerators -namespace option +* Bugfixes and improvements +* Localisation updates +* Remove panoramiopicker.py script +* Remove anarchopedia family out of the framework +* CODE_OF_CONDUCT included + +3.0.20170521 +------------ + +* Replaced the word 'async' with 'asynchronous' due to python 3.7 +* Support for Python 2.6 but higher releases are strictly recommended +* Bugfixes and improvements +* Localisation updates + +3.0.20170403 +------------ + +* First major release from master branch +* requests package is mandatory +* Deprecate previous 2.0 branches + +2.0rc5 +------ + +* Last stable 2.0 branch + +2.0rc4 +------ + +* Remove dependency on pYsearch +* Desupport Python 2.6 for Pywikibot 2.0 release branch + +2.0rc3 +------ + +* Bugfixes +* Localisation updates +* i18n: always follow master branch + +2.0rc2 +------ + +* Bugfixes and improvements +* Localisation updates + + +2.0rc1 +------ + +* New scripts patrol.py and piper.py ported from old compat branch +* isbn.py now supports wikibase +* RecentChanges stream (rcstream) support +* Sphinx documentation at
https://doc.wikimedia.org/pywikibot/
+* Bugfixes and improvements +* Localisation updates + +2.0b3 +----- + +* Bugfixes and improvements + +2.0b2 +----- + +* Bugfixes and improvements + +2.0b1 +----- + +* First stable release branch + diff --git a/README.rst b/README.rst index 7858840..927d103 100644 --- a/README.rst +++ b/README.rst @@ -47,50 +47,7 @@ For more documentation on pywikibot see our `docs <
https://doc.wikimedia.org/pywikibot/
>`_. - -The contents of the package ----------------------------- - - +----------------------------------------------------------------------------------+ - | README and config files: | - +===========================+======================================================+ - | ChangeLog | Log file to keep track of major changes versionwise | - +---------------------------+------------------------------------------------------+ - | CREDITS | List of major contributors to this module | - +---------------------------+------------------------------------------------------+ - | ez_setup.py | Bootstrap distribute installation file, can also be | - | | run to install or upgrade setuptools. | - +---------------------------+------------------------------------------------------+ - | generate_family_file.py| Creates a new family file. | - +---------------------------+------------------------------------------------------+ - | generate_user_files.py | Creates user-config.py or user-fixes.py | - +---------------------------+------------------------------------------------------+ - | LICENSE | a reference to the MIT license | - +---------------------------+------------------------------------------------------+ - | pwb.py | Wrapper script to use Pywikibot in 'directory' mode | - +---------------------------+------------------------------------------------------+ - | README-conversion.txt | Guide to converting bot scripts from version 1 | - | | of the Pywikibot framework to version 3 | - +---------------------------+------------------------------------------------------+ - | README.rst | Short info string used by Pywikibot Nightlies | - +---------------------------+------------------------------------------------------+ - | requirements.txt | PIP requirements file | - +---------------------------+------------------------------------------------------+ - | setup.py | Installer script for Pywikibot 3.0 framework | - +---------------------------+------------------------------------------------------+ - | user-config.py.sample | Example user-config.py file for reference | - +---------------------------+------------------------------------------------------+ - - +----------------------------------------------------------------------------------+ - | Directories | - +===========================+======================================================+ - | pywikibot | Contains some libraries and control files | - +---------------------------+------------------------------------------------------+ - | scripts | Contains all bots and utility scripts | - +---------------------------+------------------------------------------------------+ - | tests | Some test stuff for the developing team | - +---------------------------+------------------------------------------------------+ - +.. include:: pywikibot/DIRECTORIES.rst Required external programs --------------------------- @@ -99,13 +56,18 @@ * `7za`: To extract 7z files +.. include:: HISTORY.rst + Contributing ------------ -Our code is maintained on Wikimedia's -`Gerrit installation <
https://gerrit.wikimedia.org/r/#/admin/projects/?filter=pywikibot
>`_. -Learn about `how to contribute <
https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Developm…
>`_. +Our code is maintained on Wikimedia's `Gerrit installation <
https://gerrit.wikimedia.org/
>`_, +`learn <
https://www.mediawiki.org/wiki/Special:MyLanguage/Developer_access
>`_ how to get +started. .. image::
https://secure.travis-ci.org/wikimedia/pywikibot-core.png?branch=master
:alt: Build Status :target:
https://travis-ci.org/wikimedia/pywikibot-core
+.. image::
https://img.shields.io/pypi/v/pywikibot.svg
+ :alt: Pywikibot release + :target:
https://pypi.python.org/pypi/pywikibot
\ No newline at end of file diff --git a/pypi_description.rst b/pypi_description.rst deleted file mode 100644 index 25af392..0000000 --- a/pypi_description.rst +++ /dev/null @@ -1,89 +0,0 @@ -Pywikibot -========= - -The Pywikibot framework is a Python library that interfaces with the -`MediaWiki API <
https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
>`_ -version 1.14 or higher. - -Also included are various general function scripts that can be adapted for -different tasks. - -For further information about the library excluding scripts see -the full `code documentation <
https://doc.wikimedia.org/pywikibot/
>`_. - -Quick start ------------ - -:: - - git clone
https://gerrit.wikimedia.org/r/pywikibot/core.git
- cd core - git submodule update --init - python pwb.py script_name - -Or to install using PyPI (excluding scripts) -:: - - pip install pywikibot --pre - -Our `installation -guide <
https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Installa…
>`_ -has more details for advanced usage. - -Basic Usage ------------ - -If you wish to write your own script it's very easy to get started: - -:: - - import pywikibot - site = pywikibot.Site('en', 'wikipedia') # The site we want to run our bot on - page = pywikibot.Page(site, 'Wikipedia:Sandbox') - page.text = page.text.replace('foo', 'bar') - page.save('Replacing "foo" with "bar"') # Saves the page - -------------------------------------------------------------------------------------------- - -For more documentation on pywikibot see our `docs <
https://doc.wikimedia.org/pywikibot/
>`_. - - -The contents of the package ----------------------------- - - +----------------------------------------------------------------------------------+ - | Directories | - +===========================+======================================================+ - | pywikibot | Library routines, control files and global settings | - +---------------------------+------------------------------------------------------+ - | pywikibot/comms | Communication layer | - +---------------------------+------------------------------------------------------+ - | pywikibot/compat | Package to provide compatibility with compat scripts | - +---------------------------+------------------------------------------------------+ - | pywikibot/data | Module with several layers for data access to wiki | - +---------------------------+------------------------------------------------------+ - | pywikibot/families | wiki-specific information and settings | - +---------------------------+------------------------------------------------------+ - | pywikibot/tools | Miscellaneous helper functions (not wiki-dependent) | - +---------------------------+------------------------------------------------------+ - | pywikibot/userinterfaces | GUI and terminal interface | - +---------------------------+------------------------------------------------------+ - - -Required external programs ---------------------------- - -It may require the following programs to function properly: - -* `7za`: To extract 7z files - -Contributing ------------- - -Our code is maintained on Wikimedia's `Gerrit installation <
https://gerrit.wikimedia.org/
>`_, -`learn <
https://www.mediawiki.org/wiki/Special:MyLanguage/Developer_access
>`_ how to get -started. - -.. image::
https://secure.travis-ci.org/wikimedia/pywikibot-core.png?branch=master
- :alt: Build Status - :target:
https://travis-ci.org/wikimedia/pywikibot-core
diff --git a/pywikibot/CONTENT.rst b/pywikibot/CONTENT.rst new file mode 100644 index 0000000..ed47779 --- /dev/null +++ b/pywikibot/CONTENT.rst @@ -0,0 +1,177 @@ +The contents of the package +--------------------------- + + +-----------------------------------------------------------------------------------+ + | Library routines | + +===========================+=======================================================+ + | __init__.py | Initialization of the pywikibot framework, | + | | basic classes and methods | + +---------------------------+-------------------------------------------------------+ + | _wbtypes.py | Wikibase data type classes | + +---------------------------+-------------------------------------------------------+ + | backports.py | Module contains backports to support older Python | + | | versions | + +---------------------------+-------------------------------------------------------+ + | bot.py | User-interface related functions for building bots | + +---------------------------+-------------------------------------------------------+ + | bot_choice.py | Classes for input_choice | + +---------------------------+-------------------------------------------------------+ + | botirc.py | User-interface related functions for building irc bot | + +---------------------------+-------------------------------------------------------+ + | config2.py | Module to define and load pywikibot configuration | + +---------------------------+-------------------------------------------------------+ + | cosmetic_changes.py | Slight modifications to a wiki page's source code | + +---------------------------+-------------------------------------------------------+ + | daemonize.py | Daemonize the current process on Unix | + +---------------------------+-------------------------------------------------------+ + | date.py | Date formats in various languages | + +---------------------------+-------------------------------------------------------+ + | diff.py | Diff module | + +---------------------------+-------------------------------------------------------+ + | echo.py | Classes and functions for working with the Echo | + | | extension | + +---------------------------+-------------------------------------------------------+ + | editor.py | Text editor class for your favourite editor | + +---------------------------+-------------------------------------------------------+ + | epydoc.cfg | The list of objects to document | + +---------------------------+-------------------------------------------------------+ + | exceptions.py | Exception classes used throughout the framework | + +---------------------------+-------------------------------------------------------+ + | family.py | Abstract superclass for wiki families. Subclassed by | + | | the classes in the 'families' subdirectory. | + +---------------------------+-------------------------------------------------------+ + | fixes.py | File containing all standard fixes, stores predefined | + | | replacements used by replace.py. | + +---------------------------+-------------------------------------------------------+ + | flow.py | Objects representing Flow entities | + +---------------------------+-------------------------------------------------------+ + | i18n.py | Helper functions for both the internal translation | + | | system and for TranslateWiki-based translations | + +---------------------------+-------------------------------------------------------+ + | interwiki_graph.py | Possible create graph with interwiki.py. | + +---------------------------+-------------------------------------------------------+ + | logentries.py | Objects representing Mediawiki log entries | + +---------------------------+-------------------------------------------------------+ + | logging.py | Logging and output functions | + +---------------------------+-------------------------------------------------------+ + | login.py | Log in to an account on your "home" wiki. or check | + | | login status | + +---------------------------+-------------------------------------------------------+ + | page.py | Allows access to the site's bot user list. | + +---------------------------+-------------------------------------------------------+ + | pagegenerators.py | Generator pages. | + +---------------------------+-------------------------------------------------------+ + | plural.py | Module containing plural rules of various languages | + +---------------------------+-------------------------------------------------------+ + | proofreadpage.py | Objects representing objects used with ProofreadPage | + | | Extension | + +---------------------------+-------------------------------------------------------+ + | site.py | Objects representing MediaWiki sites (wikis) | + +---------------------------+-------------------------------------------------------+ + | site_detect.py | Classes for detecting a MediaWiki site | + +---------------------------+-------------------------------------------------------+ + | specialbots.py | Predefined special bot classes | + +---------------------------+-------------------------------------------------------+ + | textlib.py | Functions for manipulating wiki-text | + +---------------------------+-------------------------------------------------------+ + | throttle.py | Mechanics to slow down wiki read and/or write rate | + +---------------------------+-------------------------------------------------------+ + | titletranslate.py | Rules and tricks to auto-translate wikipage titles | + | | articles. | + +---------------------------+-------------------------------------------------------+ + | version.py | Module to determine the pywikibot version (tag, | + | | revision and date) | + +---------------------------+-------------------------------------------------------+ + | weblib.py | Functions for manipulating external links or querying | + | | third-party sites | + +---------------------------+-------------------------------------------------------+ + | xmlreader.py | Reading and parsing XML dump files. | + +---------------------------+-------------------------------------------------------+ + + + +---------------------------+-------------------------------------------------------+ + | comms | Communication layer. | + +===========================+=======================================================+ + | eventstreams.py | stream client for server sent events | + +---------------------------+-------------------------------------------------------+ + | http.py | Basic HTTP access interface | + +---------------------------+-------------------------------------------------------+ + | threadedhttp.py | Httplib2 threaded cookie layer extending httplib2 | + +---------------------------+-------------------------------------------------------+ + + + +---------------------------+-------------------------------------------------------+ + | compat | Package to provide compatibility with compat scripts. | + | | (should never be used) | + +===========================+=======================================================+ + | catlib.py | Library routines written especially to handle | + | | category pages and recurse over category contents. | + +---------------------------+-------------------------------------------------------+ + | query.py | API query library | + +---------------------------+-------------------------------------------------------+ + | userlib.py | Library to work with users, their pages and talk page | + +---------------------------+-------------------------------------------------------+ + + + +---------------------------+-------------------------------------------------------+ + | data | Module providing several layers of data access to wiki| + +===========================+=======================================================+ + | api.py | Interface to Mediawiki's api.php | + +---------------------------+-------------------------------------------------------+ + | mysql.py | Miscellaneous helper functions for mysql queries | + +---------------------------+-------------------------------------------------------+ + | sparql.py | Objects representing SPARQL query API | + +---------------------------+-------------------------------------------------------+ + | wikistats.py | Objects representing WikiStats API | + +---------------------------+-------------------------------------------------------+ + + + +---------------+-------------------------------------------------------------------+ + | tools | Miscellaneous helper functions (not wiki-dependent). | + +===============+===================================================================+ + | __init__.py | several classes and methods | + +---------------+-------------------------------------------------------------------+ + | _logging.py | Logging tools | + +---------------+-------------------------------------------------------------------+ + | chars.py | Character based helper functions(not wiki-dependent) | + +---------------+-------------------------------------------------------------------+ + | djvu.py | Wrapper around djvulibre to access djvu properties and content | + +---------------+-------------------------------------------------------------------+ + | formatter.py | Various formatting related utilities | + +---------------+-------------------------------------------------------------------+ + | ip.py | IP address tools module | + +---------------+-------------------------------------------------------------------+ + + + +-----------------------------------------------------------------------------------+ + | User Interface | + +============================+======================================================+ + | cgi_interface.py | CGI user interface | + +----------------------------+------------------------------------------------------+ + | gui.py | GUI with a unicode textfield where the user can edit | + +----------------------------+------------------------------------------------------+ + | terminal_interface.py | Platform independent terminal interface module | + +----------------------------+------------------------------------------------------+ + | terminal_interface_base.py | Base for terminal user interfaces | + +----------------------------+------------------------------------------------------+ + | terminal_interface_unix.py | User interface for unix terminals | + +----------------------------+------------------------------------------------------+ + | terminal_interface_win32.py| User interface for Win32 terminals | + +----------------------------+------------------------------------------------------+ + | transliteration.py | Module to transliterate text | + +----------------------------+------------------------------------------------------+ + | win32_unicode.py | Stdout, stderr and argv support for unicode | + +----------------------------+------------------------------------------------------+ + + + +-----------------------------------------------------------------------------------+ + | Others | + +============================+======================================================+ + | families (folder) | Contains wiki-specific information like URLs, | + | | languages, encodings etc. | + +----------------------------+------------------------------------------------------+ + | CONTENT.rst | This file ( Short info on all modules ) | + +----------------------------+------------------------------------------------------+ + | READMY.rst | Package description file | + +----------------------------+------------------------------------------------------+ + diff --git a/pywikibot/DIRECTORIES.rst b/pywikibot/DIRECTORIES.rst new file mode 100644 index 0000000..1ad16eb --- /dev/null +++ b/pywikibot/DIRECTORIES.rst @@ -0,0 +1,20 @@ +The contents of the package +---------------------------- + + +----------------------------------------------------------------------------------+ + | Directories | + +===========================+======================================================+ + | pywikibot | Library routines, control files and global settings | + +---------------------------+------------------------------------------------------+ + | pywikibot/comms | Communication layer | + +---------------------------+------------------------------------------------------+ + | pywikibot/compat | Package to provide compatibility with compat scripts | + +---------------------------+------------------------------------------------------+ + | pywikibot/data | Module with several layers for data access to wiki | + +---------------------------+------------------------------------------------------+ + | pywikibot/families | wiki-specific information and settings | + +---------------------------+------------------------------------------------------+ + | pywikibot/tools | Miscellaneous helper functions (not wiki-dependent) | + +---------------------------+------------------------------------------------------+ + | pywikibot/userinterfaces | GUI and terminal interface | + +---------------------------+------------------------------------------------------+ diff --git a/pywikibot/README.rst b/pywikibot/README.rst index 181ddd3..5fa9326 100644 --- a/pywikibot/README.rst +++ b/pywikibot/README.rst @@ -12,180 +12,7 @@ `Manual:Pywikibot <
http://www.mediawiki.org/wiki/Manual:Pywikibot
>`_ -The contents of the package ---------------------------- - - +-----------------------------------------------------------------------------------+ - | Library routines | - +===========================+=======================================================+ - | __init__.py | Initialization of the pywikibot framework, | - | | basic classes and methods | - +---------------------------+-------------------------------------------------------+ - | _wbtypes.py | Wikibase data type classes | - +---------------------------+-------------------------------------------------------+ - | backports.py | Module contains backports to support older Python | - | | versions | - +---------------------------+-------------------------------------------------------+ - | bot.py | User-interface related functions for building bots | - +---------------------------+-------------------------------------------------------+ - | bot_choice.py | Classes for input_choice | - +---------------------------+-------------------------------------------------------+ - | botirc.py | User-interface related functions for building irc bot | - +---------------------------+-------------------------------------------------------+ - | config2.py | Module to define and load pywikibot configuration | - +---------------------------+-------------------------------------------------------+ - | cosmetic_changes.py | Slight modifications to a wiki page's source code | - +---------------------------+-------------------------------------------------------+ - | daemonize.py | Daemonize the current process on Unix | - +---------------------------+-------------------------------------------------------+ - | date.py | Date formats in various languages | - +---------------------------+-------------------------------------------------------+ - | diff.py | Diff module | - +---------------------------+-------------------------------------------------------+ - | echo.py | Classes and functions for working with the Echo | - | | extension | - +---------------------------+-------------------------------------------------------+ - | editor.py | Text editor class for your favourite editor | - +---------------------------+-------------------------------------------------------+ - | epydoc.cfg | The list of objects to document | - +---------------------------+-------------------------------------------------------+ - | exceptions.py | Exception classes used throughout the framework | - +---------------------------+-------------------------------------------------------+ - | family.py | Abstract superclass for wiki families. Subclassed by | - | | the classes in the 'families' subdirectory. | - +---------------------------+-------------------------------------------------------+ - | fixes.py | File containing all standard fixes, stores predefined | - | | replacements used by replace.py. | - +---------------------------+-------------------------------------------------------+ - | flow.py | Objects representing Flow entities | - +---------------------------+-------------------------------------------------------+ - | i18n.py | Helper functions for both the internal translation | - | | system and for TranslateWiki-based translations | - +---------------------------+-------------------------------------------------------+ - | interwiki_graph.py | Possible create graph with interwiki.py. | - +---------------------------+-------------------------------------------------------+ - | logentries.py | Objects representing Mediawiki log entries | - +---------------------------+-------------------------------------------------------+ - | logging.py | Logging and output functions | - +---------------------------+-------------------------------------------------------+ - | login.py | Log in to an account on your "home" wiki. or check | - | | login status | - +---------------------------+-------------------------------------------------------+ - | page.py | Allows access to the site's bot user list. | - +---------------------------+-------------------------------------------------------+ - | pagegenerators.py | Generator pages. | - +---------------------------+-------------------------------------------------------+ - | plural.py | Module containing plural rules of various languages | - +---------------------------+-------------------------------------------------------+ - | proofreadpage.py | Objects representing objects used with ProofreadPage | - | | Extension | - +---------------------------+-------------------------------------------------------+ - | site.py | Objects representing MediaWiki sites (wikis) | - +---------------------------+-------------------------------------------------------+ - | site_detect.py | Classes for detecting a MediaWiki site | - +---------------------------+-------------------------------------------------------+ - | specialbots.py | Predefined special bot classes | - +---------------------------+-------------------------------------------------------+ - | textlib.py | Functions for manipulating wiki-text | - +---------------------------+-------------------------------------------------------+ - | throttle.py | Mechanics to slow down wiki read and/or write rate | - +---------------------------+-------------------------------------------------------+ - | titletranslate.py | Rules and tricks to auto-translate wikipage titles | - | | articles. | - +---------------------------+-------------------------------------------------------+ - | version.py | Module to determine the pywikibot version (tag, | - | | revision and date) | - +---------------------------+-------------------------------------------------------+ - | weblib.py | Functions for manipulating external links or querying | - | | third-party sites | - +---------------------------+-------------------------------------------------------+ - | xmlreader.py | Reading and parsing XML dump files. | - +---------------------------+-------------------------------------------------------+ - - - +---------------------------+-------------------------------------------------------+ - | comms | Communication layer. | - +===========================+=======================================================+ - | eventstreams.py | stream client for server sent events | - +---------------------------+-------------------------------------------------------+ - | http.py | Basic HTTP access interface | - +---------------------------+-------------------------------------------------------+ - | threadedhttp.py | Httplib2 threaded cookie layer extending httplib2 | - +---------------------------+-------------------------------------------------------+ - - - +---------------------------+-------------------------------------------------------+ - | compat | Package to provide compatibility with compat scripts. | - | | (should never be used) | - +===========================+=======================================================+ - | catlib.py | Library routines written especially to handle | - | | category pages and recurse over category contents. | - +---------------------------+-------------------------------------------------------+ - | query.py | API query library | - +---------------------------+-------------------------------------------------------+ - | userlib.py | Library to work with users, their pages and talk page | - +---------------------------+-------------------------------------------------------+ - - - +---------------------------+-------------------------------------------------------+ - | data | Module providing several layers of data access to wiki| - +===========================+=======================================================+ - | api.py | Interface to Mediawiki's api.php | - +---------------------------+-------------------------------------------------------+ - | mysql.py | Miscellaneous helper functions for mysql queries | - +---------------------------+-------------------------------------------------------+ - | sparql.py | Objects representing SPARQL query API | - +---------------------------+-------------------------------------------------------+ - | wikistats.py | Objects representing WikiStats API | - +---------------------------+-------------------------------------------------------+ - - - +---------------+-------------------------------------------------------------------+ - | tools | Miscellaneous helper functions (not wiki-dependent). | - +===============+===================================================================+ - | __init__.py | several classes and methods | - +---------------+-------------------------------------------------------------------+ - | _logging.py | Logging tools | - +---------------+-------------------------------------------------------------------+ - | chars.py | Character based helper functions(not wiki-dependent) | - +---------------+-------------------------------------------------------------------+ - | djvu.py | Wrapper around djvulibre to access djvu properties and content | - +---------------+-------------------------------------------------------------------+ - | formatter.py | Various formatting related utilities | - +---------------+-------------------------------------------------------------------+ - | ip.py | IP address tools module | - +---------------+-------------------------------------------------------------------+ - - - +-----------------------------------------------------------------------------------+ - | User Interface | - +============================+======================================================+ - | cgi_interface.py | CGI user interface | - +----------------------------+------------------------------------------------------+ - | gui.py | GUI with a unicode textfield where the user can edit | - +----------------------------+------------------------------------------------------+ - | terminal_interface.py | Platform independent terminal interface module | - +----------------------------+------------------------------------------------------+ - | terminal_interface_base.py | Base for terminal user interfaces | - +----------------------------+------------------------------------------------------+ - | terminal_interface_unix.py | User interface for unix terminals | - +----------------------------+------------------------------------------------------+ - | terminal_interface_win32.py| User interface for Win32 terminals | - +----------------------------+------------------------------------------------------+ - | transliteration.py | Module to transliterate text | - +----------------------------+------------------------------------------------------+ - | win32_unicode.py | Stdout, stderr and argv support for unicode | - +----------------------------+------------------------------------------------------+ - - - +-----------------------------------------------------------------------------------+ - | Others | - +============================+======================================================+ - | families (folder) | Contains wiki-specific information like URLs, | - | | languages, encodings etc. | - +----------------------------+------------------------------------------------------+ - | README.rst | This file ( Short info on all modules ) | - +----------------------------+------------------------------------------------------+ +.. include:: CONTENT.rst **External software can be used with Pywikibot:** * Pydot, Pyparsing and Graphviz for use with interwiki_graph.py diff --git a/setup.py b/setup.py index de64c83..f15f1de 100644 --- a/setup.py +++ b/setup.py @@ -201,12 +201,14 @@ version = version + "-dev" github_url = '
https://github.com/wikimedia/pywikibot-core
' +with open('README.rst') as f: + long_description = f.read() setup( name=name, version=version, description='Python MediaWiki Bot Framework', - long_description=open('pypi_description.rst').read(), + long_description=long_description, keywords=('pywikibot', 'python', 'mediawiki', 'bot', 'wiki', 'framework', 'wikimedia', 'wikipedia', 'pwb', 'pywikipedia', 'API'), maintainer='The Pywikibot team', -- To view, visit
https://gerrit.wikimedia.org/r/375541
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ibca3cc0f545d6481f6c3427b5d14a4e7f7aadf86 Gerrit-PatchSet: 6 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
← Newer
1
2
3
4
...
11
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
Results per page:
10
25
50
100
200