Bug 460182

Summary: Review Request: python-virtualenv - Tool to create isolated Python environments
Product: [Fedora] Fedora Reporter: Steve Milner <smilner>
Component: Package ReviewAssignee: Parag AN(पराग) <panemade>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, notting, panemade, phalliday
Target Milestone: ---Flags: panemade: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 519615 (view as bug list) Environment:
Last Closed: 2008-09-14 00:38:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Milner 2008-08-26 16:59:53 UTC
Spec URL: http://stevemilner.org/tmp/python-virtualenv.spec
SRPM URL: http://stevemilner.org/tmp/python-virtualenv-1.1-1.fc8.src.rpm
Description: 
virtualenv is a tool to create isolated Python environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project. It is
licensed under an MIT-style permissive license.

Comment 1 Parag AN(पराग) 2008-08-28 08:34:55 UTC
http://koji.fedoraproject.org/koji/taskinfo?taskID=789671 
koji build failed

suggestions:
1) remove inclusion of virtualenv.py twice
warning: File listed twice: /usr/lib/python2.5/site-packages/virtualenv.py
remove following line from spec
%attr(755,root,root) %{python_sitelib}/virtualenv.py

2) Use BuildRequires: python-setuptools-devel to build egginfo from source.

Comment 2 Steve Milner 2008-08-29 01:18:13 UTC
Updated:
http://www.stevemilner.org/tmp/python-virtualenv-1.1-2.fc9.src.rpm
http://www.stevemilner.org/tmp/python-virtualenv.spec

rpmlint output:
[steve@tachikoman SPECS]$ rpmlint /home/steve/rpmbuild/RPMS/noarch/python-virtualenv-1.1-2.fc9.noarch.rpm
python-virtualenv.noarch: E: non-executable-script /usr/lib/python2.5/site-packages/virtualenv.py 0644
1 packages and 0 specfiles checked; 1 errors, 0 warnings.
[steve@tachikoman SPECS]$ 

Verifying /usr/bin/virtualenv is there:
[steve@tachikoman SPECS]$ rpm -qpl /home/steve/rpmbuild/RPMS/noarch/python-virtualenv-1.1-2.fc9.noarch.rpm | grep bin
/usr/bin/virtualenv
[steve@tachikoman SPECS]$

Comment 3 Parag AN(पराग) 2008-08-29 08:28:44 UTC
Review:
+ package builds in mock.
 Koji build => http://koji.fedoraproject.org/koji/taskinfo?taskID=792541
+ rpmlint is silent for SRPM but NOT for RPM.
python-virtualenv.noarch: E: non-executable-script /usr/lib/python2.5/site-packages/virtualenv.py 0644
+ source files match upstream.
8931b66dbb799120583dd107aab2fa89  virtualenv-1.1.tar.gz
+ package meets naming and packaging guidelines.
+ specfile is properly named, is cleanly written
+ Spec file is written in American English.
+ Spec file is legible.
+ dist tag is present.
+ build root is correct.
+ license is open source-compatible.
+ License text is included in package.
+ %doc files present.
+ BuildRequires are proper.
+ defattr usage is correct.
+ %clean is present.
+ package installed properly.
+ Macro use appears rather consistent.
+ Package contains code.
+ no static libraries.
+ no .pc file present.
+ no -devel subpackage exists.
+ no .la files.
+ no translations are available.
+ Does owns the directories it creates.
+ no duplicates in %files.
+ file permissions are appropriate.
+ no scriptlets are used.
+ Not a GUI app.

Suggestions:
1) from http://fedoraproject.org/wiki/Packaging/Python/Eggs#Upstream_Eggs
 drop file /usr/lib/python2.5/site-packages/support-files/setuptools-0.6c8-py2.5.egg from installing by adding line to %files
%exclude %{python_sitelib}/support-files

2) remove rpmlint warning using following command in %prep
sed -i -e "s|#!/usr/bin/env python||" virtualenv.py 

3) you really don't need "ls" in %build. Remove that.

Comment 6 Parag AN(पराग) 2008-08-31 08:47:02 UTC
koji build =>http://koji.fedoraproject.org/koji/taskinfo?taskID=796292

APPROVED.

Comment 7 Steve Milner 2008-09-03 00:45:00 UTC
New Package CVS Request
=======================
Package Name: python-virtualenv
Short Description: a tool to create isolated Python environments
Owners: smilner
Branches: F-9, EL-5

Comment 8 Kevin Fenzi 2008-09-03 20:29:53 UTC
cvs done.

Comment 9 Parag AN(पराग) 2008-09-09 13:30:32 UTC
is this built on build server?

Comment 10 Steve Milner 2008-09-14 00:38:38 UTC
Just got back in town and built it in devel http://koji.fedoraproject.org/koji/taskinfo?taskID=824745

Comment 11 Peter Halliday 2009-08-28 12:42:33 UTC
*** Bug 519615 has been marked as a duplicate of this bug. ***

Comment 12 Thomas Spura 2010-01-08 01:31:35 UTC
*** Bug 548877 has been marked as a duplicate of this bug. ***