Bug 1368911 - Review Request: python-mpd2 - It is a Python library which provides a client interface for MPD
Summary: Review Request: python-mpd2 - It is a Python library which provides a client ...
Keywords:
Status: CLOSED DUPLICATE of bug 1507235
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1404618
TreeView+ depends on / blocked
 
Reported: 2016-08-22 05:29 UTC by kushaldas@gmail.com
Modified: 2017-10-28 15:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-28 15:41:34 UTC
Type: ---
Embargoed:
panemade: fedora-review?


Attachments (Terms of Use)

Description kushaldas@gmail.com 2016-08-22 05:29:23 UTC
Spec URL: https://kushal.fedorapeople.org/packages/python-mpd2.spec
SRPM URL: https://kushal.fedorapeople.org/packages/python-mpd2-0.5.5-1.fc24.src.rpm
Description: It is a Python library which provides a client interface for MPD
Fedora Account System Username: kushal

Comment 1 Parag AN(पराग) 2016-08-22 08:12:21 UTC
oops mistakenly set needinfo? this chromium rendering is not working good for me.

Comment 2 Parag AN(पराग) 2016-12-18 10:57:56 UTC
This package need to be updated as per latest python guidelines. I think you need to have this package packaged as similar to https://pnemade.fedorapeople.org/fedora-work/python-mpd2.spec

License also corrected to LGPLv3+

Comment 3 Parag AN(पराग) 2017-04-17 07:48:28 UTC
any updates here?

Comment 4 Ankur Sinha (FranciscoD) 2017-05-24 10:09:08 UTC
Heya,

This is blocking another update. 

Kushal - would you have time for this in the near future? Otherwise either Parag or I can package it up and the other can review it for the time being and then we can all co-maintain it? :)

Cheers!

Comment 5 "FeRD" (Frank Dana) 2017-07-01 11:30:01 UTC
This seems to have become a bit more urgent lately because, at least for me, mpDris2 is failing to connect to MPD using python-mpd. At various times, I was seeing crashes due to either system library argument formatting and/or pretty basic string-encoding issues:

  File "/usr/lib/python2.7/site-packages/mpd.py", line 316, in connect
    self._hello()
  File "/usr/lib/python2.7/site-packages/mpd.py", line 276, in _hello
    if not line.endswith("\n"):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

2017-07-01 07:23:08,409 mpDris2 ERROR: Could not connect to MPD: getaddrinfo() argument 2 must be integer or string

(The first one is because python-mpd doesn't set encoding="utf-8" on the network stream, as python-mpd2 does. The second one, I honestly didn't even begin to explore.)

Regardless, I built a python3-mpd2 of my own, installed it, and instantly by running 'python3 /usr/bin/mpDris2' full functionality was restored, with no changes required to the mpDris2 script.

Comment 6 Ankur Sinha (FranciscoD) 2017-07-05 13:43:23 UTC
Here's an updated spec/srpm:

https://ankursinha.fedorapeople.org/python-mpd2/python-mpd2.spec
https://ankursinha.fedorapeople.org/python-mpd2/python-mpd2-0.5.5-20170705git05510bb.fc26.src.rpm

- uses git sources
- builds docs and puts them in a different doc package
- skips tests because they require internet access
- various other updates to adhere to current packaging guidelines.

Kushal and I will co-maintain the package.

Cheers,
Ankur

Comment 7 "FeRD" (Frank Dana) 2017-07-05 14:40:37 UTC
Great to see movement on this, thanks Ankur!

(In reply to Ankur Sinha (FranciscoD) from comment #6)
> 
> https://ankursinha.fedorapeople.org/python-mpd2/python-mpd2.spec

If I'm reading that right, wouldn't the python2 package still be built as 
python-mpd2-0.5.5-20170705git05510bb%{dist}.noarch.rpm, and merely offer python2-mpd2 as one of its Provides?

Wouldn't it be better to build the module packages as python2-mpd2 and python3-mpd2, respectively? See e.g. (as a random pick) python-tempdir.spec which does so:

https://src.fedoraproject.org/cgit/rpms/python-tempdir.git/tree/python-tempdir.spec

Something I also ended up doing when I built my own python-mpd2 RPMs (though I'm not sure if it's permissible under the Fedora packaging guidelines): Since python2-mpd2 is a drop-in replacement for python-mpd, might it maybe even make sense to have python2-mpd2 additionally Provides: python-mpd (and also Obsoletes:), instead of (or in addition to) Conflicting with it?

Then mpDris2 wouldn't _have_ to be repackaged in order to deploy python-mpd2, as it Requires: python-mpd. (I realize that the plan is to repackage mpDris2 anyway, of course, so changing its Requires is not a big deal. But in the interest of not breaking compatibility for people who may have various things installed...) *shrug* More an idle though that anything, which I realize isn't exactly what Bugzilla is meant for. So, feel free to ignore this tangent, and just focus on the package naming question.

Comment 8 Ankur Sinha (FranciscoD) 2017-10-28 15:41:34 UTC
Hi Kushal, Parag:

Since there hasn't been much activity on this recently, I'm going to close this review and submit a fresh one. Please feel free to comment on it if you'd like to co-maintain etc.

Thanks for the work you've already done on this :)

Frank, I'll update the spec in the new review ticket with your suggestions. Thanks for helping out :)

Ankur

*** This bug has been marked as a duplicate of bug 1507235 ***


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