Bug 804039

Summary: Pollutes /usr/lib/python2.7/site-packages/tests with its test suite
Product: [Fedora] Fedora Reporter: Daniel BerrangĂ© <berrange>
Component: python-paste-scriptAssignee: Luke Macken <lmacken>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: a.badger, fschwarz, lmacken, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-19 14:11:17 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 Daniel Berrangé 2012-03-16 11:38:25 UTC
Description of problem:
These private unit tests should not be installed in the RPM, not least because they clash with other (bogusly installed) test files from python-boto. This prevents installation of openstack in Fedora 17 updates-testing

# rpm -ql python-paste-script | grep /usr/lib/python2.7/site-packages/tests
/usr/lib/python2.7/site-packages/tests
/usr/lib/python2.7/site-packages/tests/__init__.py
/usr/lib/python2.7/site-packages/tests/__init__.pyc
/usr/lib/python2.7/site-packages/tests/__init__.pyo
/usr/lib/python2.7/site-packages/tests/appsetup
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.py
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.pyc
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.pyo
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.py
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.pyc
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.pyo
/usr/lib/python2.7/site-packages/tests/test_egg_finder.py
/usr/lib/python2.7/site-packages/tests/test_egg_finder.pyc
/usr/lib/python2.7/site-packages/tests/test_egg_finder.pyo
/usr/lib/python2.7/site-packages/tests/test_logging_config.py
/usr/lib/python2.7/site-packages/tests/test_logging_config.pyc
/usr/lib/python2.7/site-packages/tests/test_logging_config.pyo
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.py
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.pyc
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.pyo
/usr/lib/python2.7/site-packages/tests/test_template_introspect.py
/usr/lib/python2.7/site-packages/tests/test_template_introspect.pyc
/usr/lib/python2.7/site-packages/tests/test_template_introspect.pyo

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2012-03-16 11:48:04 UTC
This problem was missed because of badly designed %files rules:

  %files
  %defattr(-,root,root,-)
  %doc docs/*
  %{python_sitelib}/*

This last line should be rewritten as

  %{python_sitelib}/PasteScript-*
  %{python_sitelib}/paste

So that future RPM updates will error out at build time if bogus files get dropped into the sitelib directory.

Comment 2 Luke Macken 2012-03-19 14:11:17 UTC

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