https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
Web browser: --- Bug ID: 58053 Summary: Python 3 compatibility Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Classification: Unclassified Mobile Platform: ---
Make Pywikibot also work under shiny new versions of Python (3.3+, probably).
We are aiming for a multi-compatible codebase (2.6, 2.7 and 3.3, and in the near future 3.4), without a dependency on six. This means we do have some hacks (try-except import blocks, 'if sys.version[0] > 2: unicode = str', etc.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 99189 had a related patch set uploaded by Merlijn van Deen: 58053 - Use PY3 environment variable for setup.py
https://gerrit.wikimedia.org/r/99189
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98381 had a related patch set uploaded by Merlijn van Deen: Fix relative imports in tests/
https://gerrit.wikimedia.org/r/98381
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98383 had a related patch set uploaded by Merlijn van Deen: Add Python 3 import for cStringIO
https://gerrit.wikimedia.org/r/98383
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #4 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98385 had a related patch set uploaded by Merlijn van Deen: py3k-ify pwb.py
https://gerrit.wikimedia.org/r/98385
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #5 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98387 had a related patch set uploaded by Merlijn van Deen: py3k: Fix various imports
https://gerrit.wikimedia.org/r/98387
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #6 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 99189 merged by jenkins-bot: Bug 58053 - Use PY3 environment variable for setup.py
https://gerrit.wikimedia.org/r/99189
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #7 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98387 merged by jenkins-bot: Bug 58053 - py3k: Fix various imports
https://gerrit.wikimedia.org/r/98387
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #8 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98383 merged by jenkins-bot: Bug 58053 - Add Python 3 import for cStringIO
https://gerrit.wikimedia.org/r/98383
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #9 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98385 merged by jenkins-bot: Bug 58053 - py3k-ify pwb.py, check py version
https://gerrit.wikimedia.org/r/98385
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #10 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100166 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - exceptions cannot be strings anymore
https://gerrit.wikimedia.org/r/100166
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #11 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100167 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - next(it) instead of it.next()
https://gerrit.wikimedia.org/r/100167
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #12 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100168 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - iter{items,values,keys} -> items(),values(),keys()
https://gerrit.wikimedia.org/r/100168
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #13 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100169 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - catch Exception *as*
https://gerrit.wikimedia.org/r/100169
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #14 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100170 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - func_name -> __name__
https://gerrit.wikimedia.org/r/100170
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #15 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100171 had a related patch set uploaded by Merlijn van Deen: Bug 58053 - fix print & octal in generate_user_files
https://gerrit.wikimedia.org/r/100171
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #16 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100166 merged by jenkins-bot: Bug 58053 - exceptions cannot be strings anymore
https://gerrit.wikimedia.org/r/100166
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #17 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100169 merged by jenkins-bot: Bug 58053 - catch Exception *as*
https://gerrit.wikimedia.org/r/100169
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #18 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100170 merged by jenkins-bot: Bug 58053 - func_name -> __name__
https://gerrit.wikimedia.org/r/100170
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #19 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100171 merged by jenkins-bot: Bug 58053 - fix print & octal in generate_user_files
https://gerrit.wikimedia.org/r/100171
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #20 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100167 merged by jenkins-bot: Bug 58053 - next(it) instead of it.next()
https://gerrit.wikimedia.org/r/100167
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #21 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100168 merged by jenkins-bot: Bug 58053 - iter{items,values,keys} -> items(),values(),keys()
https://gerrit.wikimedia.org/r/100168
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #22 from Andre Klapper aklapper@wikimedia.org --- Ignoring the MERGED patches, only patch left here is: https://gerrit.wikimedia.org/r/#/c/98381/
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
--- Comment #23 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98381 merged by jenkins-bot: Bug 58053 - Fix relative imports in tests/
https://gerrit.wikimedia.org/r/98381
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ladsgroup@gmail.com Summary|Python 3 compatibility |[Tracking] Python 3 | |compatibility
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |NEW
--- Comment #24 from Ricordisamoa ricordisamoa@openmailbox.org --- No more in-review patches.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |CommodoreFabianus@gmx.de, | |jayvdb@gmail.com
--- Comment #25 from John Mark Vandenberg jayvdb@gmail.com --- All tests now pass on py3
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |70936
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |70969, 70976, 70977, 70978, | |70983
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053 Bug 58053 depends on bug 70978, which changed state.
Bug 70978 Summary: win32 py3 sub error https://bugzilla.wikimedia.org/show_bug.cgi?id=70978
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |69664
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053 Bug 58053 depends on bug 70977, which changed state.
Bug 70977 Summary: win32 py3 xmlreader test error https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053 Bug 58053 depends on bug 70969, which changed state.
Bug 70969 Summary: ResourceWarning unclosed files py3 https://bugzilla.wikimedia.org/show_bug.cgi?id=70969
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053 Bug 58053 depends on bug 69664, which changed state.
Bug 69664 Summary: WikibasePage.save fails without mwparserfromhell https://bugzilla.wikimedia.org/show_bug.cgi?id=69664
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |71786, 71788 Summary|[Tracking] Python 3 |[Tracking] Pywikibot Python |compatibility |3 compatibility
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias| |pwbpy3
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |72603
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |72236
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |68617
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |73120
pywikipedia-bugs@lists.wikimedia.org