Bug 1702355

Summary: python2-pytest-shutil fails to install due to missing dependencies
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-pytest-shutilAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pytest-shutil-1.6.0-2.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-23 21:36:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700324, 1690439    

Description Miro Hrončok 2019-04-23 14:47:30 UTC
After the recent update of python-pytest-shutil:

https://src.fedoraproject.org/rpms/python-pytest-shutil/c/115ee401f42be6db6ae9b35d8e47604373b7db2b?branch=master

python2-pytest-shutil requires python2.7dist(termcolor).

That doesn't exists:

Error: 
 Problem: conflicting requests
  - nothing provides python2.7dist(termcolor) needed by python2-pytest-shutil-1.6.0-1.fc31.noarch


This makes python-pytest-virtualenv FTBFS and python2-pytest-virtualenv uninstallable as well.
 
If the dependency is optional, it should be filtered out. If it is not, python2-pytest-virtualenv and python2-pytest-shutil should be removed from Fedora and setuptools tests that need it should be skipped on Python 2.

Comment 1 Miro Hrončok 2019-04-23 14:51:41 UTC
IMHO, termcolor is only imported when PrettyFormatter is used.
I guess we can make it optional.

Comment 2 Miro Hrončok 2019-04-23 14:56:40 UTC
Looking into it.