[Pywikipedia-l] Time for breaking changes

2015-03-05 Thread Ricordisamoa
I have a bunch of breaking changes I'd like to make to the framework's API; some of them are already in Gerrit ([1] https://gerrit.wikimedia.org/r/178579, [2] https://gerrit.wikimedia.org/r/178647). John Vandenberg said they can be merged after the 2.0 release, but I don't see a schedule yet.

Re: [Pywikipedia-l] Configuring PyWikibot for a local wiki

2015-02-26 Thread Ricordisamoa
Il 26/02/2015 22:31, John Mark Vandenberg ha scritto: We need a wiki page which explains the current combat v core situation suitable for new users. Pun intended? ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] Bot to upload all files for which a broken file link exist

2015-02-25 Thread Ricordisamoa
Hi! There appears to be a cooked script to do exactly that: imagetransfer.py https://www.mediawiki.org/wiki/Manual:Pywikibot/imagetransfer.py (I've never used it though) Il 25/02/2015 18:52, Brenton Horne ha scritto: Hi, About a month ago I transferred from a Wikia wiki

Re: [Pywikipedia-l] Configuring PyWikibot for a local wiki

2015-02-24 Thread Ricordisamoa
Il 24/02/2015 21:56, John ha scritto: OK, First delete core. You dont need both. Delete compat instead! Core is the future. Then run: generate_family_file.py http://localhost/mediawiki local Follow that up with generate_user_files.py and then select local If you have further needs please

Re: [Pywikipedia-l] Configuring PyWikibot for a local wiki

2015-02-24 Thread Ricordisamoa
. When Trying to help new users I dont want to deal with the instability and problems core still has. Ricordisamoa, Im not going to change your option on this nor do I wish to debate it, since you are a relatively new developer to pywiki, but Ive been using it for 10 years and I know what works

Re: [Pywikipedia-l] Styleguide

2015-01-17 Thread Ricordisamoa
Il 15/01/2015 17:26, Fabian Neundorf ha scritto: Is there a styleguide or was there a discussion already, because I think it would be good to have at least some set of rules. Some are already handled by flake8 so jenkins will prevent that some style guides are broken but there is for example:

Re: [Pywikipedia-l] Tox jobs are only triggered for whitelisted person

2015-01-15 Thread Ricordisamoa
This may sound stupid, but... why can't jobs be run by patch submitters? Il 15/01/2015 11:44, Antoine Musso ha scritto: Hello, Yesterday I have restricted the tox Jenkins jobs to only be run by whitelisted person. That is rather inconvenient :-( To whitelist a person, its Gerrit email

[Pywikipedia-l] Status of the python3 branch

2015-01-08 Thread Ricordisamoa
pywikibot/core has a 'python3' branch which has been last updated in October 2013. Since the 'master' branch supports py3k fairly well now, it looks like the old branch should be deleted. Thoughts? ___ Pywikipedia-l mailing list

[Pywikipedia-l] significant pep257 change

2015-01-08 Thread Ricordisamoa
FYI https://github.com/GreenSteam/pep257/pull/91 ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Status of the python3 branch

2015-01-08 Thread Ricordisamoa
Thanks! Il 08/01/2015 17:26, Merlijn van Deen ha scritto: Done. On 8 January 2015 at 16:20, Ricordisamoa ricordisa...@openmailbox.org wrote: pywikibot/core has a 'python3' branch which has been last updated in October 2013. Since the 'master' branch supports py3k fairly well now, it looks

Re: [Pywikipedia-l] Running pywikibot on PyPy

2015-01-03 Thread Ricordisamoa
Il 03/01/2015 09:56, John Mark Vandenberg ha scritto: Thanks. Which GCC is your CPython compiled for? Also GCC 4.9.0 ? GCC 4.9.1 What would be especially useful is if we can determine which methods are performing vastly slower on CPython vs PyPy for that workload.

Re: [Pywikipedia-l] Alternative logo (again)

2014-12-23 Thread Ricordisamoa
What do you think of the new (proposed) logo? I think it's great, though it uses WMF colors while Pywikibot aims to work with every MediaWiki installation. Il 14/12/2014 08:48, Ricordisamoa ha scritto: About http://gallaecio.deviantart.com/art/Pywikibot-Alternative-Logo-475995567 and https

[Pywikipedia-l] Tests are failing

2014-12-14 Thread Ricordisamoa
Xqt made gerrit:178796 https://gerrit.wikimedia.org/r/178796/ not depend on gerrit:179591 https://gerrit.wikimedia.org/r/179591/ anymore. The latter should be merged, or the former should be reverted, because of failing tests https://travis-ci.org/wikimedia/pywikibot-core/jobs/44055432. I

Re: [Pywikipedia-l] out-of-date manuals

2014-12-14 Thread Ricordisamoa
in separate wikis for those who are able to use bots but have difficulties with English. (IMO) 2014-12-14 8:31 GMT+01:00 Ricordisamoa ricordisa...@openmailbox.org mailto:ricordisa...@openmailbox.org: I found some documentation about PWB on Wikiversity and Wikibooks: https

[Pywikipedia-l] Alternative logo (again)

2014-12-13 Thread Ricordisamoa
About http://gallaecio.deviantart.com/art/Pywikibot-Alternative-Logo-475995567 and https://commons.wikimedia.org/wiki/Commons:Deletion_requests/Python_logos: can we get the new logo in? ___ Pywikipedia-l mailing list

[Pywikipedia-l] PWB documentation on MediaWiki.org

2014-12-13 Thread Ricordisamoa
We should work on bringing and keeping the user manual up-to-date. When pages are stable, they should be marked for translation (including code samples). Also, why not to create a 'non-technical hub' at https://www.mediawiki.org/wiki/Pywikibot (to which most related external sites should

[Pywikipedia-l] Pybot on Wikia

2014-12-12 Thread Ricordisamoa
Just found this http://pybot.wikia.com :-) ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] International Pywiki Project

2014-09-02 Thread Ricordisamoa
m:International Pywiki Project https://meta.wikimedia.org/wiki/International_Pywiki_Project was launched by Bináris in 2012, but seems dead presently. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] move L10n away from scripts

2014-08-08 Thread Ricordisamoa
Since TranslateWiki doesn't seem to be the appropriate place for localization dictionaries used in scripts, why not to create a 'L10n' folder or a pywikibot/L10n repository (cf. pywikibot/i18n) to hold them? ___ Pywikipedia-l mailing list

Re: [Pywikipedia-l] Gerrit notification

2014-08-07 Thread Ricordisamoa
Il 07/08/2014 10:59, Jan Dudík ha scritto: recently I got few mail per day, but last few days there are 30 or more mails every day. Maybe there is now higher activity with solving bugs? JAnD Simply, I came back ;-) ___ Pywikipedia-l mailing list

[Pywikipedia-l] dropping support for Python 2.6

2014-08-07 Thread Ricordisamoa
py2.6 tests on Travis-CI are now allowed to fail, meaning that we are, actually, supporting only 2.7+. I renew my proposal to *drop* support for py2.6 at all. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] dropping support for Python 2.6

2014-08-07 Thread Ricordisamoa
Il 07/08/2014 23:48, John Mark Vandenberg ha scritto: On Fri, Aug 8, 2014 at 4:37 AM, Ricordisamoa ricordisa...@openmailbox.org wrote: py2.6 tests on Travis-CI are now allowed to fail, meaning that we are, actually, supporting only 2.7+. I would prefer to say that we've made py 2.6 a second

Re: [Pywikipedia-l] archivebot-older-than

2014-08-07 Thread Ricordisamoa
Il 06/08/2014 21:47, John Mark Vandenberg ha scritto: On Wed, Aug 6, 2014 at 11:59 PM, Ricordisamoa ricordisa...@openmailbox.org wrote: Il 06/08/2014 12:56, Merlijn van Deen ha scritto: Siebrand confirms: we should change it in code, and tw.net will pick it up. Merlijn Thanks a lot! Filed

[Pywikipedia-l] welcome.py and -break

2014-08-07 Thread Ricordisamoa
It has been reported https://it.wikipedia.org/wiki/Speciale:Diff/67448044 to me that core's welcome.py doesn't stop with the '-break' option enabled. Unfortunately, I have no past experience with it. Does it work for you? ___ Pywikipedia-l mailing

Re: [Pywikipedia-l] archivebot-older-than

2014-08-06 Thread Ricordisamoa
Il 06/08/2014 12:56, Merlijn van Deen ha scritto: Siebrand confirms: we should change it in code, and tw.net http://tw.net will pick it up. Merlijn Thanks a lot! Filed gerrit:152138 https://gerrit.wikimedia.org/r/152138/ and gerrit:152139 https://gerrit.wikimedia.org/r/152139/.

[Pywikipedia-l] network Task Force

2014-08-05 Thread Ricordisamoa
I hereby propose to start a Bugzilla+Gerrit Task Force to reduce network usage by the framework and to enhance our low-level code. I hardly ever inspect files like data/api.py, but I see that even the simplest queries get submitted as generators or with the 'userinfo' property attached.

[Pywikipedia-l] Manual:Pywikibot/i18n_conversion on MediaWiki.org

2014-08-05 Thread Ricordisamoa
I've cleaned it up https://www.mediawiki.org/w/index.php?diff=1089478oldid=788068. Please feel free to make additional improvements. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] archivebot-older-than

2014-08-05 Thread Ricordisamoa
The format should be changed to older than $1 to avoid i18n issues. Should the edit happen on TranslateWiki.net, or in our i18n files directly? ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] new version item on Bugzilla

2014-07-26 Thread Ricordisamoa
Currently, the Version field of our bugs can only be set to one of compat (1.0), core (2.0) or unspecified. Why not to create a new both option to explicitly indicate that the bug is valid for both versions? So, unspecified would only mean that the bug has not been tested on both versions.

[Pywikipedia-l] porting scripts from other sources

2014-07-26 Thread Ricordisamoa
botwiki:Template:Script http://botwiki.sno.cc/wiki/Template:Script lists some old PWB scripts. it:Utente:BimBot/Scripts https://it.wikipedia.org/wiki/Utente:BimBot/Scripts contains some others. They could still be useful, even if they'd be rewritten almost completely.

[Pywikipedia-l] new components in Bugzilla

2014-07-24 Thread Ricordisamoa
How can I request new components for the product Pywikibot in Bugzilla? They would be extremely useful, especially for very used scripts like textlib.py. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] new components in Bugzilla

2014-07-24 Thread Ricordisamoa
Il 24/07/2014 17:39, Thehelpfulone ha scritto: Please can you make a request in Bugzilla, create a new bug under Wikimedia - Bugzilla component so that the request to add components is publicly logged? Let me know when you’ve done so and I’ll add the component(s) for you. -- Thehelpfulone

[Pywikipedia-l] SourceForge bug tracker

2014-07-23 Thread Ricordisamoa
A notice about the move to Bugzilla has been added, but many bugs still show up as 'open'. Is this expected/wanted? ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] SourceForge bug tracker

2014-07-23 Thread Ricordisamoa
Il 23/07/2014 18:46, Gerard Meijssen ha scritto: Hoi, Maybe a stupid question, but given that WMF is moving away from Bugzilla, does it make sense for pywikibot to move to Bugzilla? Thanks, GerardM Pywikibot moved to Gerrit+Bugzilla many months ago!

[Pywikipedia-l] VERIFIED bugs

2014-07-23 Thread Ricordisamoa
Can we establish a guideline on when to mark our bugs as VERIFIED FIXED? Is that status useful? ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] new CommonsDelinker repo

2014-07-21 Thread Ricordisamoa
Il 21/07/2014 23:47, Legoktm ha scritto: On 7/19/14, 7:56 AM, Ricordisamoa wrote: It seems from bugzilla:64850 https://bugzilla.wikimedia.org/show_bug.cgi?id=64850 and gerrit:131331 https://gerrit.wikimedia.org/r/131331/ that we're going to split the CommonsDelinker out of our codebase. Can I

Re: [Pywikipedia-l] Bug 64881: Port wiktionary tools and move to own repo

2014-07-21 Thread Ricordisamoa
If pywikibot/wiktionary is reasonably useful for the core branch, then supporting 'compat' is less important. If /wiktionary could take advantage of some features of 'core' which 'compat' does not have, IMHO compat should be left with its old version and /wiktionary be added as submodule in

[Pywikipedia-l] new CommonsDelinker repo

2014-07-19 Thread Ricordisamoa
It seems from bugzilla:64850 https://bugzilla.wikimedia.org/show_bug.cgi?id=64850 and gerrit:131331 https://gerrit.wikimedia.org/r/131331/ that we're going to split the CommonsDelinker out of our codebase. Can I request a new repository? What about the name?

Re: [Pywikipedia-l] copyright notices

2014-07-18 Thread Ricordisamoa
to me. Il 18/07/2014 13:58, John Mark Vandenberg ha scritto: On Fri, Jul 18, 2014 at 9:26 PM, Ricordisamoa ricordisa...@openmailbox.org wrote: Many of our scripts have copyright notices at the top like this (category.py): # (C) Rob W.W. Hooft, 2004 and then: # (C) Pywikibot team, 2008-2013 even

[Pywikipedia-l] Gerrit

2014-07-18 Thread Ricordisamoa
Hey guys, we've got a huge backlog. One of the main requirements to comply with mw:API:Client code/Gold standard https://www.mediawiki.org/wiki/API:Client_code/Gold_standard is the speed of code-review processes. ___ Pywikipedia-l mailing list

[Pywikipedia-l] pep257 docstring style checker

2014-06-13 Thread Ricordisamoa
You must see this! https://github.com/GreenSteam/pep257 Just run it on our codebase, it gives thousands of errors... ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] reflinks.py under GPL?

2014-06-11 Thread Ricordisamoa
I love the GPL /per se/, but I hate license conflicts. IMHO we should send an email to each author. Il 09/06/2014 11:28, xqt ha scritto: Hey folks, Sorry about that. I'd happily relicense the original code under whatever is convenient for you. If anyone contributed to the file in the

Re: [Pywikipedia-l] mwparserfromhell

2014-06-10 Thread Ricordisamoa
Thank you, but I think we will keep our dependency on mwparserfromhell. Even though it has issues on Windows, it is way more powerful and reliable than any other wikicode parser in Python. And it does not only parse nested templates, but also wikilinks, external links and HTML tags. Il

Re: [Pywikipedia-l] Wikidata API function wbsetclaim not available in pywikibot?

2014-06-10 Thread Ricordisamoa
That change was introduced by Legoktm in gerrit:80328 https://gerrit.wikimedia.org/r/80328/, which caused some tests to fail, and thus was reverted by Merlijn van Deen in gerrit:80765 https://gerrit.wikimedia.org/r/80765/. It implemented a Claim._buildMainSnak() method and some serialization

[Pywikipedia-l] adding error handling to Bot.userPut()

2014-06-08 Thread Ricordisamoa
I'm in the process of converting several scripts to use the framework's generic Bot class (gerrit:137334 https://gerrit.wikimedia.org/r/137334/, gerrit:137346 https://gerrit.wikimedia.org/r/137346/, gerrit:137354 https://gerrit.wikimedia.org/r/137354/, gerrit:138219

Re: [Pywikipedia-l] Interested in hacking on pywikibot

2014-06-08 Thread Ricordisamoa
In addition to making your own patches, you can review others' on Gerrit https://gerrit.wikimedia.org/r/#/q/status:open+project:pywikibot/core,n,z. I saw you have an account there, and since Google also uses it, you are supposed to know how to work with it. ;-) Il 06/06/2014 08:34, Travis

[Pywikipedia-l] getters and setters

2014-06-07 Thread Ricordisamoa
It seems to me that the current trend is to use the same attribute as both a getter and a setter, e.g. Page.text. Is this true? Should we convert Claim.getTarget() and .setTarget() to just target (which is already used internally)? ___ Pywikipedia-l

[Pywikipedia-l] reflinks.py under GPL?

2014-06-07 Thread Ricordisamoa
I found this in the source code of scripts/reflinks.py: Distributed under the terms of the GPL This seems to be the single case in the whole repository. Is it compatible with our license conventions? It even doesn't have a full GNU-style license header.

[Pywikipedia-l] site.lang and site.code

2014-06-04 Thread Ricordisamoa
I am not sure it's always better to use site.code instead of site.lang. If TranslateWiki uses language codes, 'be-tarask' should be used instead of 'be-x-old', etc. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] Test needing fix

2014-06-04 Thread Ricordisamoa
https://travis-ci.org/wikimedia/pywikibot-core/jobs/26754246 ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Splitting Wikibase classes

2014-06-01 Thread Ricordisamoa
No difference in front-end, because __init__.py would be changed from from .page import Page, ImagePage, Category, Link, User, ItemPage, PropertyPage, Claim into from .page import Page, ImagePage, Category, Link, User from .wikibase import ItemPage, PropertyPage, Claim, WbTime, WbQuantity I'm

Re: [Pywikipedia-l] PWB vs AWB

2014-06-01 Thread Ricordisamoa
Done as bug 65987 https://bugzilla.wikimedia.org/show_bug.cgi?id=65987 Il 01/06/2014 09:12, Amir Ladsgroup ha scritto: Sounds like a good idea, Go ahead :) Best ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] code conventions guidelines

2014-06-01 Thread Ricordisamoa
mw:Manual talk:Pywikibot/Development guideline https://www.mediawiki.org/wiki/Manual_talk:Pywikibot/Development_guideline I've added two questions about whether to use single or double quotes, and old or new-style string formatting. ___ Pywikipedia-l

[Pywikipedia-l] globe(-)coordinate

2014-06-01 Thread Ricordisamoa
gerrit:135405 https://gerrit.wikimedia.org/r/135405/ is a very simple change. Please review it. Otherwise, I'd have to rework some parts of 125575 https://gerrit.wikimedia.org/r/125575/. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] Deprecation of compat

2014-06-01 Thread Ricordisamoa
Does anyone know how to print a deprecation warning every time someone runs 'compat'? I have tried putting it in wikipedia.py, but with no results. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] PWB vs AWB

2014-06-01 Thread Ricordisamoa
Some of the most interesting features are in w:Wikipedia:AutoWikiBrowser/General fixes https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/General_fixes while most of the utility code is in AWB/WikiFunctions/ http://sourceforge.net/p/autowikibrowser/code/HEAD/tree/AWB/WikiFunctions/ (e.g.

Re: [Pywikipedia-l] Deprecation of compat

2014-06-01 Thread Ricordisamoa
It is not a matter of personal tastes, but of actual functionality and progress. Anyway never mind, no consensus → no warning ;-) Il 01/06/2014 22:27, Bináris ha scritto: Fortunately. For God's sake, please, don't even try to dream of that. Leave people to choose without feeling guilty. I will

Re: [Pywikipedia-l] Deprecation of compat

2014-06-01 Thread Ricordisamoa
OMG... such issues must be discussed and resolved, no matter if compat is to be deprecated or not. Il 01/06/2014 23:44, John ha scritto: Im the same way, Ive tried setting up core half a dozen times in the last 18 months and each time within 5 minutes Ive run into critical issues that make

[Pywikipedia-l] PWB vs AWB

2014-05-31 Thread Ricordisamoa
I propose to create a tracking bug for all features present in AutoWikiBrowser but not in our 'core' (e.g. gerrit:118795 https://gerrit.wikimedia.org/r/118795). Even if the user targets of the two projects are different nowadays, as different are their tasks, I think PWB is going to be the

[Pywikipedia-l] OrderedDict as a requirement

2014-05-31 Thread Ricordisamoa
Per gerrit:127467 https://gerrit.wikimedia.org/r/127467/ and bug 55882#c5 https://bugzilla.wikimedia.org/show_bug.cgi?id=55882#c5, we should add https://pypi.python.org/pypi/ordereddict as a requirement for installing/using pywikibot. Any volunteers for a patch?

[Pywikipedia-l] mwparserfromhell

2014-05-31 Thread Ricordisamoa
Since gerrit:131263 https://gerrit.wikimedia.org/r/131263/ , it seems to me that the excellent mwpfh is going to be used more and more extensively within our framework. Am I right? For example, the DuplicateReferences detection and fix in reflinks.py could be brightly refactored without regular

[Pywikipedia-l] Splitting Wikibase classes

2014-05-31 Thread Ricordisamoa
How about creating a wikibase.py file in the pywikibot/ directory to contain DataSite, WikibasePage, ItemPage, Claim, WbTime, WbQuantity, etc.? ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org