Bug 701284

Summary: Review Request: python-py2pack - Generate distribution packages from Python packages on PyPI
Product: [Fedora] Fedora Reporter: Jerome Soyer <saispo>
Component: Package ReviewAssignee: Haïkel Guémar <karlthered>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, karlthered, notting, saispo
Target Milestone: ---Flags: karlthered: fedora-review+
j: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-11 15:29:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jerome Soyer 2011-05-02 13:01:48 UTC
Spec URL: http://saispo.fedorapeople.org/python-py2pack.spec
SRPM URL: http://saispo.fedorapeople.org/python-py2pack-0.3.15-1.fc14.src.rpm
Description: 

Hi ! I just finished packaging up py2pack, and i would appreciate a review so that i can get it into Fedora !

py2pack is designed to generate distribution packages from Python packages on PyPI.

Comment 1 Alexander Kurtakov 2011-05-02 21:22:54 UTC
*** Bug 701279 has been marked as a duplicate of this bug. ***

Comment 2 Haïkel Guémar 2011-05-08 15:35:42 UTC
Preliminary pass:
MUST: rpmlint must be run on src.rpm and rpm: KO
$ rpmlint -iv python-py2pack-0.3.15-1.fc14.src.rpm
python-py2pack.src: I: checking
python-py2pack.src: W: spelling-error %description -l en_US dsc -> dc, disc, doc
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.src: W: spelling-error %description -l en_US changelogs -> change logs, change-logs, changelings
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.src: I: checking-url http://github.com/saschpe/py2pack (timeout 10 seconds)
python-py2pack.src:41: W: mixed-use-of-spaces-and-tabs (spaces: line 11, tab: line 41)
The specfile mixes use of spaces and tabs for indentation, which is a cosmetic
annoyance.  Use either spaces or tabs for indentation, not both.

python-py2pack.src: W: invalid-url Source0: py2pack-0.3.15.tar.gz
The value should be a valid, public HTTP, HTTPS, or FTP URL.

1 packages and 0 specfiles checked; 0 errors, 4 warnings.

$ rpmlint -iv python-py2pack-0.3.15-1.fc15.noarch.rpm
python-py2pack.noarch: I: checking
python-py2pack.noarch: W: spelling-error %description -l en_US dsc -> dc, disc, doc
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.noarch: W: spelling-error %description -l en_US changelogs -> change logs, change-logs, changelings
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.noarch: I: checking-url http://github.com/saschpe/py2pack (timeout 10 seconds)
1 packages and 0 specfiles checked; 0 errors, 2 warnings.


Please provide download url in Source field, in your case, that should be: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
Though not explicitly mandatory, fix the tabs issue, real editors can do that automagically.

MUST: package named accordingly to package naming guidelines: OK

MUST: spec file name match %{name}: OK

MUST: licensed according a Fedora compliant license: OK (GPLv2 - license file
included)

MUST: License field in spec match actual license: OK

MUST: spec in legible american english: OK

MUST: sources provided match upstream's OK
provided sources md5sum: 8a9aceba034a96cfa9d622971cb697e4
upstream sources md5sum: 8a9aceba034a96cfa9d622971cb697e4

MUST: package sucessfully compiles on at least one primary architecture (all of
them: x86 and x86_64 under mock for fedora-devel)

MUST: all build dependencies are listed in BR: OK
MUST: package does not list a file more than once in %files section: OK

MUST: permissions are properly set: OK

MUST: package consistenly uses macros: OK

MUST: package contains permissable content: OK

MUST: all filenames are valid UTF-8: OK

SHOULD: the module provided works (tested with python 2.7)

Note: does not build on python 3.2 as stated by the reviewee in the spec

few remarks:
* inconsistent use of macros:  %{_mandir} | /usr/man/man1/   %{_docdir} | /usr/share/doc ==> please use the macro
choose either $RPM_BUILD_ROOT or %{buildroot}.
* can you state the reasons why you disabled the %check part ? If you're not planning to fix this, you should at least comment the whole part.
* about python3 support bits, what's the current situation ? is it supported upstream or a work-in-progress ? are you working on a patch to fix build issues ? 
* probably a matter of style, but i'd prefer that you explicitely set permissions for chmod commands (0755 for the scripts). I advise you to do the same for the man pages (0644).

Comment 3 Jerome Soyer 2011-05-09 06:49:36 UTC
Hi, 

First, thanks for the review, i will correct with your hints. For Python 3 support, the module don't support it upstream, i just added things in the spec for further release.

Comment 4 Jerome Soyer 2011-05-09 07:37:15 UTC
http://saispo.fedorapeople.org/python-py2pack.spec
http://saispo.fedorapeople.org/python-py2pack-0.3.15-2.fc14.src.rpm

I uploaded a newer version which fix all the problems you notice.

Comment 5 Haïkel Guémar 2011-05-09 08:36:09 UTC
* rpmlint output: OK

% rpmlint -iv python-py2pack-0.3.15-2.fc14.src.rpm
python-py2pack.src: I: checking
python-py2pack.src: W: spelling-error %description -l en_US dsc -> dc, sc, desc
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.src: I: checking-url http://github.com/saschpe/py2pack (timeout 10 seconds)
python-py2pack.src: I: checking-url http://pypi.python.org/packages/source/p/py2pack-0.3.15.tar.gz (timeout 10 seconds)
python-py2pack.src: W: invalid-url Source0: http://pypi.python.org/packages/source/p/py2pack-0.3.15.tar.gz HTTP Error 404: Not Found
The value should be a valid, public HTTP, HTTPS, or FTP URL.

1 packages and 0 specfiles checked; 0 errors, 2 warnings.
% rpmlint -iv /home/haikel/rpmbuild/RPMS/noarch/python-py2pack-0.3.15-2.fc14.noarch.rpm
python-py2pack.noarch: I: checking
python-py2pack.noarch: W: spelling-error %description -l en_US dsc -> dc, sc, desc
The value of this tag appears to be misspelled. Please double-check.

python-py2pack.noarch: I: checking-url http://github.com/saschpe/py2pack (timeout 10 seconds)
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

* koji scratch build: OK
koji build --scratch dist-f15 python-py2pack-0.3.15-2.fc14.src.rpm

Ok for python3 support, it's better to be proactive on that matter than not.
I don't think there are any blockers to push this package in Packages Collection, so i hereby grant you my blessing.

Comment 6 Jerome Soyer 2011-05-09 10:23:25 UTC
New Package SCM Request
=======================
Package Name: python-py2pack 
Short Description: py2pack is designed to generate distribution packages from Python packages on PyPI
Owners: saispo
Branches: f14 f15 el6
InitialCC: saispo

Comment 7 Jerome Soyer 2011-05-09 10:24:29 UTC
Thanks Haïkel Guémar for your review and your advice.

Comment 8 Jason Tibbitts 2011-05-10 15:54:01 UTC
Git done (by process-git-requests).

Comment 9 Jerome Soyer 2011-05-11 15:29:58 UTC
Thanks