Bump the requirements to aiodns 1.0

(and use install_requires instead of requires in the setup.py)
This commit is contained in:
mathieui 2015-09-14 23:14:06 +02:00
parent 27f98bf22c
commit 1aa15792b4
No known key found for this signature in database
GPG Key ID: C59F84CEEFD616E3
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ setup(
platforms=['any'], platforms=['any'],
packages=packages, packages=packages,
ext_modules=ext_modules, ext_modules=ext_modules,
requires=['aiodns', 'pyasn1', 'pyasn1_modules'], install_requires=['aiodns>=1.0', 'pyasn1', 'pyasn1_modules'],
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
cmdclass={'test': TestCommand} cmdclass={'test': TestCommand}
) )

View File

@ -193,7 +193,7 @@ def get_A(host, resolver=None, use_aiodns=True, loop=None):
except Exception as e: except Exception as e:
log.debug('DNS: Exception while querying for %s A records: %s', host, e) log.debug('DNS: Exception while querying for %s A records: %s', host, e)
recs = [] recs = []
return recs return [rec.host for rec in recs]
@asyncio.coroutine @asyncio.coroutine