Bug 790154 - Review Request: python-mwlib - MediaWiki parser and utility library
Summary: Review Request: python-mwlib - MediaWiki parser and utility library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Toshio Ernie Kuratomi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 19:37 UTC by Ian Weller
Modified: 2012-02-28 10:42 UTC (History)
3 users (show)

Fixed In Version: python-qserve-0.2.7-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-28 10:42:29 UTC
Type: ---
a.badger: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Ian Weller 2012-02-13 19:37:05 UTC
Spec URL: http://ianweller.fedorapeople.org/SRPMS/python-mwlib/0.13.3-2/python-mwlib.spec
SRPM URL: http://ianweller.fedorapeople.org/SRPMS/python-mwlib/0.13.3-2/python-mwlib-0.13.3-2.fc16.src.rpm

Description:
mwlib provides a library for parsing MediaWiki articles and converting them to
different output formats. mwlib is used by Wikipedia's "Print/export" feature
in order to generate PDF documents from Wikipedia articles.

(This package is currently deprecated due to hellish dependencies. This has now been taken care of. Upstream is still alive and kicking.)

Comment 1 Toshio Ernie Kuratomi 2012-02-13 20:28:02 UTC
There's a few needswork items but I'll APPROVE this if you fix those when you import the package.

Good:
* Matches naming guidelines
* License is BSD in source and spec
* License is spelled out in full in the README.rst file which is included in
  the package
* Spec file is legible
* Source matches upstream
* No locale files that need to be handled
* No bundled libraries found
* Package not relocatable
* Package owns all directories it creates and no more.
* Proper permissions for files
* Macros used consistently
* Code, not content
* No large documentation
* Nothing in %doc affects application at runtime
* Not an elf library
* Not a GUI application
* All filenames are valid utf-8

Needswork:

* package doesn't build in koji -- needs:
    BuildRequires: python-setuptools
  - Tested that the package builds with that change made
* Package needs Requires: python-setuptools since it uses import pkg_resources
  in the code


Cosmetic:

* rpmlint just has warnings for no man pages:
  python-mwlib.x86_64: W: no-manual-page-for-binary mw-post (and all the other
  %{_bindir} scripts).  These are warnings and if no man pages are easily
  available, ignorable.

Potential future issues:

* The package installs a toplevel argv.py file/module.  This seems to just be
  used for the command line scripts for parsing the command line.  Since this
  has the potential to pollute the python package namespace with a somewhat
  common name, suggest to upstream that they may want to restructure like
  this::
    mv argv.py mwlib/._argv.py
    sed s/import argv/from mwlib import _argv as argv/

Comment 2 Ian Weller 2012-02-13 21:05:44 UTC
(In reply to comment #1)
> Needswork:
> 
> * package doesn't build in koji -- needs:
>     BuildRequires: python-setuptools
>   - Tested that the package builds with that change made
> * Package needs Requires: python-setuptools since it uses import pkg_resources
>   in the code

Fixed in the version below.

> 
> 
> Cosmetic:
> 
> * rpmlint just has warnings for no man pages:
>   python-mwlib.x86_64: W: no-manual-page-for-binary mw-post (and all the other
>   %{_bindir} scripts).  These are warnings and if no man pages are easily
>   available, ignorable.

They aren't easily available so I plan to ignore :)

> Potential future issues:
> 
> * The package installs a toplevel argv.py file/module.  This seems to just be
>   used for the command line scripts for parsing the command line.  Since this
>   has the potential to pollute the python package namespace with a somewhat
>   common name, suggest to upstream that they may want to restructure like
>   this::
>     mv argv.py mwlib/._argv.py
>     sed s/import argv/from mwlib import _argv as argv/

/me sighs

I'll file a ticket with them.

* Mon Feb 13 2012 Ian Weller <iweller> - 0.13.3-3
- BuildRequires: python-setuptools
Files in http://ianweller.fedorapeople.org/SRPMS/python-mwlib/0.13.3-3/

Comment 3 Ian Weller 2012-02-13 21:30:02 UTC
argv ticket filed with upstream: https://github.com/pediapress/mwlib/issues/8

Comment 4 Toshio Ernie Kuratomi 2012-02-13 21:45:28 UTC
APPROVED.

Comment 5 Toshio Ernie Kuratomi 2012-02-13 21:47:13 UTC
Also, I didn't see this fixed in the last update:

* Package needs Requires: python-setuptools since it uses import pkg_resources
  in the code

You can just fix this after you import the package.

Comment 6 Ian Weller 2012-02-13 21:50:53 UTC
New Package SCM Request
=======================
Package Name: python-mwlib
Short Description: MediaWiki parser and utility library
Owners: ianweller
Branches: f16 f17
InitialCC:

This package has been deprecated and needs to be undeprecated.

Comment 7 Gwyn Ciesla 2012-02-13 23:53:30 UTC
Done.  Please take ownership, then submit a package change request for f16
and f17 branches.

Comment 8 Gwyn Ciesla 2012-02-13 23:58:44 UTC
Oops.

Comment 9 Ian Weller 2012-02-14 01:27:47 UTC
Package Change Request
======================
Package Name: python-mwlib
New Branches: f16 f17
Owners: ianweller
InitialCC:

Comment 10 Fedora Update System 2012-02-14 23:24:49 UTC
python-mwlib-0.13.3-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-mwlib-0.13.3-4.fc17

Comment 11 Fedora Update System 2012-02-14 23:26:46 UTC
python-mwlib-0.13.3-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-mwlib-0.13.3-4.fc16

Comment 12 Fedora Update System 2012-02-15 11:36:04 UTC
Package python-mwlib-0.13.3-4.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-mwlib-0.13.3-4.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1698/python-mwlib-0.13.3-4.fc16
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-02-15 23:08:30 UTC
python-qserve-0.2.7-1.fc17, python-mwlib-0.13.4-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-qserve-0.2.7-1.fc17,python-mwlib-0.13.4-1.fc17

Comment 14 Fedora Update System 2012-02-28 10:42:29 UTC
python-qserve-0.2.7-1.fc17, python-mwlib-0.13.4-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.