Importing a python package as a plugin do not validate its requirement.txt

Bug #1874001 reported by Nagendra Prasath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stevedore
Invalid
Undecided
Unassigned

Bug Description

I'm using stevedore to import one of my python package as a plugin.
However importing through stevedore do not seem to validate requirement.txt of my python package and this results in failures at later point of time.
Is stevedore expected to validate requirements.txt of python package being imported? If not, appreciate any suggestions on how to manage dependencies of python packages imported through stevedore please. Thanks!

Package Used: python2-stevedore-1.29.0-1.el7.noarch

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The ExtensionManager takes a Boolean argument called verify_requirements. It defaults to False, but if you set it to True then when stevedore uses pkg_resources to load the module it will check requirements.

https://docs.openstack.org/stevedore/latest/reference/index.html#extensionmanager

Revision history for this message
Nagendra Prasath (npchandran) wrote :

I missed it. Thanks for the pointer. Let me give it a try in my env. Appreciate your quick turn around. Thank you!
Closing this ticket.

Changed in python-stevedore:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.