Skip to content

Commit

Permalink
Use per-version requires for wheels
Browse files Browse the repository at this point in the history
Fixes: #20
  • Loading branch information
saghul committed Aug 28, 2016
1 parent 6399412 commit 7ee13f9
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,18 @@ def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')


install_requires = ['pycares>=1.0.0']
if sys.version_info >= (3, 4):
pass
elif sys.version_info >= (3, 3):
install_requires.append('asyncio')
else:
install_requires.append('trollius')


setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "[email protected]",
url = "https://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = install_requires,
install_requires = ['pycares>=1.0.0'],
extras_require = {
':python_version=="3.3"': ['asyncio'],
':python_version<="3.2"': ['trollius'],
},
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
Expand Down

0 comments on commit 7ee13f9

Please sign in to comment.