Bug 1275517 - Review Request: python-wand - python bindings for ImageMagick
Summary: Review Request: python-wand - python bindings for ImageMagick
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-27 07:00 UTC by Dennis Chen
Modified: 2015-11-23 20:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-08 22:22:30 UTC
Type: ---
Embargoed:
rdieter: fedora-review+


Attachments (Terms of Use)

Description Dennis Chen 2015-10-27 07:00:18 UTC
Spec URL: http://unintel.tk/packaging/python-wand.spec
SRPM URL: http://unintel.tk/packaging/python-wand-0.4.1-1.fc22.src.rpm
Description: Wand is a ctypes-based simple ImageMagick binding for Python. It doesn't cover all functionalities of MagickWand API currently. It works on Python 2.6, 2.7, 3.2, 3.3, and PyPy.
Fedora Account System Username: barracks510

This is my first package and I need a sponsor. A link to the koji build is here:

http://koji.fedoraproject.org/koji/taskinfo?taskID=11594764

Comment 1 Randy Barlow 2015-10-28 02:10:11 UTC
Hello Dennis!

My review here is informal (as I am also currently seeking to become a package maintainer), but here are a few notes:

0) You've put a BuildRequires on python3-setuptools in the section that deals with Python 2 (probably a typo).

1) Python 3 systems will get Requires ImageMagick twice - I think the second Requires line is redundant.

rpmlint only complains about a few spellings, but I think they are all OK so I wouldn't worry about them. Nice work!

Comment 2 Rex Dieter 2015-10-28 03:15:31 UTC
Welcome Dennis, I'd be happy to help review this (and sponsor you).

Per Randy's comment's:

0.  this is actually ok, it's already wrapped inside the conditional
%if %{with python3}
...
%endif

1.  MUST: however, putting runtime dep here is wrong, you really want the 
Requires: ImageMagick
down under
%package -n python3-wand

for cleanliness, and since this subpkg is already wrapped by %if %{with python3} itself, you could move both the runtime and build python3-related deps here, to look something like:

%if %{with python3}
%package     -n python3-wand
Summary:        Ctypes-based simple MagickWand API binding for Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       ImageMagick
%description -n python3-wand
Wand is a ctypes-based simple ImageMagick binding for Python. It doesn't cover
all functionalities of MagickWand API currently. It works on Python 2.6, 2.7,
3.2, 3.3, and PyPy.
%endif


naming: ok

2. SHOULD consider omitting from %description the imo mostly-needless phrase:
"It works on Python 2.6, 2.7, 3.2, 3.3, and PyPy."

sources: kinda ok, but

3.  SHOULD see https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL#Git_Tags
about how to rename the source tarball, to use something like:
https://github.com/dahlia/wand/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
instead

license: ok

macros: ok, mostly...

4.  SHOULD omit from %install:
rm -rf $RPM_BUILD_ROOT
it is deprecated and no longer needed.

scriptets: ok (n/a)


Please fix all MUST items, and consider addressing SHOULD's, and we should be good to go.

Comment 3 Randy Barlow 2015-10-28 03:22:21 UTC
(In reply to Rex Dieter from comment #2)
> 0.  this is actually ok, it's already wrapped inside the conditional
> %if %{with python3}
> ...
> %endif

Hi Rex! I should have been clearer - the python3-setuptools is actually repeated. It appears first outside the conditional statement, and then again inside it. I suspect the first one was supposed to be python2-setuptools.

Comment 4 Rex Dieter 2015-10-28 12:57:02 UTC
Ah, I misinterpreted that detail, thanks.  Let's amend point 0,

0.  MUST adjust the initial
BuildRequires:  python3-setuptools
present in the top/main pkg to:
BuildRequires:  python2-setuptools

Comment 5 Dennis Chen 2015-10-28 15:10:59 UTC
Hi Rex and Randy! Thanks for the feedback on the package.

I have update the SPEC file and RPM to fix all the MUSTS and the SHOULDS.

SPEC: http://unintel.tk/packaging/python-wand.spec
SRPM: http://unintel.tk/packaging/python-wand-0.4.1-2.fc22.src.rpm

Here is a link to the Koji build: 
http://koji.fedoraproject.org/koji/taskinfo?taskID=11613811

Comment 6 Upstream Release Monitoring 2015-10-28 15:13:05 UTC
barracks510's scratch build of python-wand-0.4.1-2.fc22.src.rpm for rawhide completed http://koji.fedoraproject.org/koji/taskinfo?taskID=11613811

Comment 7 Rex Dieter 2015-10-28 15:22:16 UTC
APPROVED and sponsored, welcome to fedora.  Please let me know if have any questions or need help with anything else.


Next steps,
https://fedoraproject.org/wiki/Join_the_package_collection_maintainers?rd=PackageMaintainers/Join#Add_Package_to_Source_Code_Management_.28SCM.29_system_and_Set_Owner



One other optional/non-blocker item I just noticed:

5. SHOULD remove 
BuildRequires: python-setuptools
and
BuildRequires: python3-setuptools

turns out these are already implicitly pulled in by base python packages, and afaict, are currently not recommended to explicitly list per guidelines at:
https://fedoraproject.org/wiki/Packaging:Python#BuildRequires

Comment 8 Fedora Update System 2015-10-28 20:20:56 UTC
python-wand-0.4.1-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e15101edc9

Comment 9 Fedora Update System 2015-10-28 20:37:49 UTC
python-wand-0.4.1-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-98115ca1a3

Comment 10 Fedora Update System 2015-10-28 20:38:35 UTC
python-wand-0.4.1-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd9e8a4e7a

Comment 11 Fedora Update System 2015-11-01 06:58:32 UTC
python-wand-0.4.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update python-wand'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e15101edc9

Comment 12 Fedora Update System 2015-11-01 16:50:39 UTC
python-wand-0.4.1-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update python-wand'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd9e8a4e7a

Comment 13 Fedora Update System 2015-11-02 00:27:01 UTC
python-wand-0.4.1-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update python-wand'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-98115ca1a3

Comment 14 Fedora Update System 2015-11-08 22:22:28 UTC
python-wand-0.4.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2015-11-10 00:23:23 UTC
python-wand-0.4.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2015-11-23 20:06:34 UTC
python-wand-0.4.1-2.el7 has been pushed to the Fedora EPEL 7 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.