Per https://wikitech.wikimedia.org/wiki/Add_a_wiki once the wiki has been created
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T415974 Post-creation work for urwikisource | |||
| Resolved | Zabe | T415960 Create Wikisource Urdu | |||
| Resolved | NAGAM_SURYA_NARAYANA | T415976 Add support for urwikisource to Pywikibot |
Event Timeline
good first task
addwikis script can be used to add the wiki easily. The patch will be submitted after the wiki is really created.
Thank you for tagging this task with good first task for Wikimedia newcomers!
Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.
A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly point to the codebase URL and provide clear steps to help a contributor get set up for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !
Thank you for helping us drive new contributions to our projects <3
Hi! I’m a newcomer and I’d love to work on this task.
Could you please confirm if I can take it and guide me on where to start in the Pywikibot codebase?
Hi @Roshani005, NAGAM_SURYA_NARAYANA has already announced in T416116 to work on this but you can work on T414239 which is quite similar.
Hi @Xqt
Patch uploaded: https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237260
Awaiting feedback.
Hm, first refer the commit message guidlines. The subject line should explain the changes and it can be the same as this task here. pre-commit formatting is not relevant - it is just a helper script. And there is no fix but only the familie file get a new site. So the commit msg should be like:
L10N: Add support for urwikisource to Pywikibot Bug: T415976
Your pathc is not created by the addwikis tool. You shoul use it because the tool takes care of the alignments and line limits. Otherwise you have to do it by hand. Please revert your change locally and start the addwikis tool. Refer the documentation for its usage here. Refer the first example.
run python pwb.py addwikis -family:wikisource ur should do the job. Or for Windows users: py -3.13 -m pwb addwikis -family:wikisource ur where -3.13 is your installed Python version.
@NAGAM_SURYA_NARAYANA: your patch is not completed and this task is still an issue. If you run addwikis locally, it compares the local file, not the repository. Pleas adjust the lines of your commit. Or restet you local changes and run the addwikis script.
Hi @Xqt,
I reset my local repository to origin/master and re-ran the addwikis script.
The script reports that ur is already present in Family.codes and there is no remaining diff.
It looks like the change has landed upstream. Please let me know if anything further is needed from my side for T415976.
Hi @NAGAM_SURYA_NARAYANA, please use the related task for communication. It is difficult if threads are spreaded over several tasks.
Your patch didn't solve this issue, neither the commit message was appopriate nor the family file was updated in the right format even the site code was added.
The site code was added propertly within the family file. This is the reason why addwikis reported there are no codes to add.
You could solve this issue in two ways (beside the commit message thing:
- reset your local repository the remote master; run the addwikis script, upload the change - or
- update your local repository in that way that the codes have a line break after 'vi', and not before 'ur', and submitt it.
The remote master doesn't have the 'ur' code, see here.
I am removing you from assignment. You may add yourself again if you want to work on it.
Change #1237496 had a related patch set uploaded (by NAGAM SURYA NARAYANA; author: Xqt):
[pywikibot/core@master] L10N: Add support for urwikisource to Pywikibot
Hi @Xqt,
Thank you for the clarification and for your patience.
I now understand the issue clearly:
- My earlier patch added ur in an incorrect alignment.
- Because of that, addwikis compared against my local file and reported no changes.
- The upstream master still does not contain ur in the correct position.
I have reset my local repository to origin/master, re-ran the addwikis script, and verified the correct diff where the line break is after vi (not before ur).
I have submitted a new change with:
- Proper formatting generated by addwikis
- Correct commit message following the guidelines
Link to the new Gerrit change:
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237496
Please let me know if this now matches the expected result, or if any further adjustment is required.
Thanks again for your guidance.
@NAGAM_SURYA_NARAYANA, Great, the family is well, thank you. But the addwikis part is not related to this task, probably added by accident due to a new release from source. Could you remove it please.
Hi @Xqt,
Thanks for pointing that out. I’ve reverted the unintended change to scripts/maintenance/addwikis.py.
git diff is now clean, and only the wikisource family change remains.
Please let me know if everything looks good now.
Change #1237628 had a related patch set uploaded (by NAGAM SURYA NARAYANA; author: NAGAM SURYA NARAYANA):
[pywikibot/core@master] L10N: Add support for urwikisource to Pywikibot
Hi @Xqt,
I’ve uploaded the updated change with a new patchset here:
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237628
The change now contains only the wikisource family update, with correct formatting and no addwikis changes.
Please let me know if anything else is needed. Thanks!
Change #1237496 abandoned by Xqt:
[pywikibot/core@master] L10N: Add support for urwikisource to Pywikibot
Reason:
New PS with https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237628
Hi @Xqt,
Just checking in on this task. I understand it is waiting for the creation of Urdu Wikisource.
Please let me know if there is anything I can help with from my side or if any changes are needed in my patch.
Also let me know shall I work on any other beginner friendly task.
Thanks!
Change #1237628 merged by jenkins-bot:
[pywikibot/core@master] L10N: Add support for urwikisource to Pywikibot