[python-bugzilla] requests dependency missing from setup.py/setup.cfg; bugzilla cli/modules fail to import on machines without requests package

Garrett Cooper yanegomi at gmail.com
Sun Sep 14 03:19:44 UTC 2014


On Sep 13, 2014, at 0:48, Pierre-Yves Chibon <pingou at pingoured.fr> wrote:

> On Fri, Sep 12, 2014 at 03:04:31PM +1000, Arun Babu Neelicattu wrote:
>> 
>> 
>> On Thu, 2014-09-11 at 14:36 -0700, Garrett Cooper wrote:
>>> Hello!
>>>    I recently did a pip install of python-bugzilla, which installed
>>> 1.1.0, and when I tried running the bugzilla command it failed to
>>> execute because the requests module wasn't installed on my machine.
>>>    Replacing requirements.txt with the following lines in setup.py should work:
>>> 
>>>    install_requires=[
>>>        'requests',
>>>    ]
>>> 
>> 
>> This might be the easiest fix for this. But this would mean we will have
>> to keep *requirements.txt in sync with setup.py (not too big a deal).
>> 
>> We could also do something like this,
>> https://github.com/abn/python-bugzilla/commit/b66ba937bbc182476d0d59d4fbdf36ae389783b6 (might be over kill considering we do not depend on much).
> 
> I just wanted to point out a possible other way to do it:
> https://github.com/fedora-infra/pkgdb2/blob/master/setup.py#L15

	I added a comment to the commit: https://github.com/fedora-infra/pkgdb2/commit/69a724312e44737d0ad7567e7f6d6bff5d517cc8#diff-2eeaed663bd0d25b7e608891384b7298R14 .
Thank you,
-Garrett


More information about the python-bugzilla mailing list