Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 (https://gerrit.wikimedia.org/r/139591/ is an attempted fix). But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 ? py3k.
* no more need for external dependencies like https://gerrit.wikimedia.org/r/138318 * less work for Travis-CI * new features like dict comprehension, etc.
Good for me, but some people use Pywiki in an environment where Python version is up to sysop's decision and they don't run to update. There was a survey on this question where people told why they used this or that version, can somebody find it?
2014-06-14 21:44 GMT+02:00 Ricordisamoa ricordisamoa@openmailbox.org:
Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 ( https://gerrit.wikimedia.org/r/139591/ is an attempted fix). But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 → py3k.
- no more need for external dependencies like
https://gerrit.wikimedia.org/r/138318
- less work for Travis-CI
- new features like dict comprehension, etc.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I think you're looking for this: https://www.mediawiki.org/wiki/Manual:Pywikibot/Survey2012
On 6/15/14, Bináris wikiposta@gmail.com wrote:
Good for me, but some people use Pywiki in an environment where Python version is up to sysop's decision and they don't run to update. There was a survey on this question where people told why they used this or that version, can somebody find it?
2014-06-14 21:44 GMT+02:00 Ricordisamoa ricordisamoa@openmailbox.org:
Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 ( https://gerrit.wikimedia.org/r/139591/ is an attempted fix). But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 → py3k.
- no more need for external dependencies like
https://gerrit.wikimedia.org/r/138318
- less work for Travis-CI
- new features like dict comprehension, etc.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Bináris
2014-06-14 23:51 GMT+02:00 Amir Ladsgroup ladsgroup@gmail.com:
I think you're looking for this: https://www.mediawiki.org/wiki/Manual:Pywikibot/Survey2012
Sure, thank you. That page was obviously created by me in old times when I was unemployed and spent all my time with Wikipedia, but now I live in a different world and forgot the whole thing. :-)
Someone however moved it to manual, althogh I told it was not a manual at all. Never mind.
All of pages related to Pywikibot are in manual namespace no matter they are manual or not, I was trying to move them to the main namespace but due to lack of support I stopped.
Best
On 6/15/14, Bináris wikiposta@gmail.com wrote:
2014-06-14 23:51 GMT+02:00 Amir Ladsgroup ladsgroup@gmail.com:
I think you're looking for this: https://www.mediawiki.org/wiki/Manual:Pywikibot/Survey2012
Sure, thank you. That page was obviously created by me in old times when I was unemployed and spent all my time with Wikipedia, but now I live in a different world and forgot the whole thing. :-)
Someone however moved it to manual, althogh I told it was not a manual at all. Never mind.
On Sun, Jun 15, 2014 at 2:44 AM, Ricordisamoa ricordisamoa@openmailbox.org wrote:
Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 (https://gerrit.wikimedia.org/r/139591/ is an attempted fix).
If a proper fix for 2.6 cant be found quickly, any use of Wikibase WbQuantity should raise an exception in py2.6, which effectively means Wikibase support for py2.6 is dropped because it is erroneous. Dropping Wikibase support for py2.6 also solves the ordereddict dependency issue.
But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 → py3k.
I agree with focusing on py3, and dont care much about py2.6 support myself.
no more need for external dependencies like https://gerrit.wikimedia.org/r/138318 less work for Travis-CI new features like dict comprehension, etc.
On Sun, Jun 15, 2014 at 4:51 AM, Amir Ladsgroup ladsgroup@gmail.com wrote:
I think you're looking for this: https://www.mediawiki.org/wiki/Manual:Pywikibot/Survey2012
Some of those reasons are no longer valid. e.g. cygwin now includes Python 2.7. It seems some of the people wanting 2.6 support would be happy to move away from 2.6 if we supported Python 3 which is packaged for them. We should re-check all the other reasons for keeping 2.6 to see what the effect will be.
Also, that survey doesnt appear to differentiate between compat and core. Perhaps compat can continue to support 2.6, while core drops support for 2.6.
Hi Ricordi,
Ricordisamoa schreef op 14-6-2014 21:44:
Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 (https://gerrit.wikimedia.org/r/139591/ is an attempted fix). But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 → py3k.
We don't have a clue about how many users are using 2.6. Without that we don't know how many users we're locking out. I was wondering, does the user-agent include the python version? If so, we could ask the wmf analytics team to do some logging for us.
Maarten
2014-06-15 12:37 GMT+02:00 Maarten Dammers maarten@mdammers.nl:
I was wondering, does the user-agent include the python version? If so, we could ask the wmf analytics team to do some logging for us.
Currently doesn't, but it is a good idea to implement.
On Sun, Jun 15, 2014 at 8:12 PM, Bináris wikiposta@gmail.com wrote:
2014-06-15 12:37 GMT+02:00 Maarten Dammers maarten@mdammers.nl:
I was wondering, does the user-agent include the python version? If so, we could ask the wmf analytics team to do some logging for us.
Currently doesn't, but it is a good idea to implement.
I agree.
Another option would be to implement a central logging system, to collect usage of specific configurations, and to allow collection of backtraces for unexpected behaviour like https://bugzilla.wikimedia.org/show_bug.cgi?id=66619
I believe the WMF has a central logging system. Or we could set up our own on WMF Labs.
Currently user-agent _is_ included (by pywikibot/comms/http.py)
xqt
----- Original Nachricht ---- Von: Bináris wikiposta@gmail.com An: Pywikibot discussion list pywikipedia-l@lists.wikimedia.org Datum: 15.06.2014 15:12 Betreff: Re: [Pywikipedia-l] drop support for python 2.6
2014-06-15 12:37 GMT+02:00 Maarten Dammers maarten@mdammers.nl:
I was wondering, does the user-agent include the python version? If so,
we
could ask the wmf analytics team to do some logging for us.
Currently doesn't, but it is a good idea to implement.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 14 June 2014 21:44, Ricordisamoa ricordisamoa@openmailbox.org wrote:
Some tests fail only in py2.6: https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 ( https://gerrit.wikimedia.org/r/139591/ is an attempted fix). But I think we may instead drop support for py2.6 entirely, focusing ourselves on py2.7 → py3k.
- no more need for external dependencies like
https://gerrit.wikimedia.org/r/138318
- less work for Travis-CI
- new features like dict comprehension, etc.
I feel none of those are very strong arguments; keeping support for 2.6
is a minor burden (mainly thanks to the automatic tests in Travis), and there is only a limited set of new features that are of use to us - mainly OrderedDict and UnitTest, but those have been backported as pypi packages. Maybe we would also be interested in argparse (also a backport available).
This is in stark contrast to 2.5 vs 2.6: 2.6 introduced several features that are very important for moving to Python 3: relative imports, print-as-a-function, exception handling, byte literals... basically everything to allow for hybrid code that runs on both Python 2 (.6+) and 3 (.2+). Python 3.3 made this even easier by re-allowing the u'' prefix.
Merlijn
pywikipedia-l@lists.wikimedia.org