Page MenuHomePhabricator

Update python-wikitools on Tool Labs
Closed, DeclinedPublic

Description

Tool Labs currently has python-wikitools v1.1.1 installed. To prepare for the upcoming query-continue change, this should be updated to the current version, 1.3.

Event Timeline

Mr.Z-man raised the priority of this task from to Needs Triage.
Mr.Z-man updated the task description. (Show Details)
Mr.Z-man added a project: Toolforge.
Mr.Z-man subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Actually, we're working to reduce the number of custom-built packages on tool labs. In the case of wikitools, it's a pure python package, and the package can simply be pip installed in a virtualenv, so that would be the preferrable option.

The reason why we're not doing packaging anymore: I spent the last hour trying to build the new version of the python-wikitools package anyway, and it was basically a wasted hour.

  • There is no v1.3 available in git; https://github.com/alexz-enwp/wikitools/commit/72a00c96e97c6d1017f607b9ebc8e1a520bd0d3e jumps from 1.2 to 1.4.
  • I needed two hacks to build a package on trusty:
    • add a manual copyright file that conforms to debian specs (not the full GPLv3, refer to /usr/share/common-licenses/GPL-3, must have Copyright YYYY-ZZZZ in it
    • remove the embedded COPYING file in setup.py
  • Building for precise still fails Lintian with
    • E data.tar.xz-member-without-dpkg-pre-depends
    • E bad-provided-package-name Python:any

So, basically, packaging for Ubuntu is overall a pain. If anyone else feels like building a package that works (and passes Lintian), we can deploy it, but I'm not going to spend any more time on this to work.

scfc subscribed.

As I'm packaging this for Debian, assigning to myself.

valhallasw changed the task status from Open to Stalled.Jul 2 2015, 7:25 PM
valhallasw triaged this task as High priority.
valhallasw set Security to None.

As I'm packaging this for Debian, assigning to myself.

Any updates on this?

Somewhat inadvertently, I'm using the globally installed version of wikitools on Tool Labs. It is indeed version 1.1.1:

mzmcbride@tools-bastion-03:~$ grep ^VERSION /usr/lib/python2.7/dist-packages/wikitools/wiki.py
VERSION = '1.1.1'

This is particularly problematic as the default end-point is http://en.wikipedia.org/w/api.php when it soon must be https://en.wikipedia.org/w/api.php.

For what it's worth, PyPI has a version 1.3: https://pypi.python.org/pypi/wikitools/1.3. It installs just fine.

scfc removed scfc as the assignee of this task.

Unassigning from tasks that require more than short-term commitment; as this leaves noone who would want to take this forward, declining as well.

I started a new task related to this topic: T176109.