1# -*- coding: utf-8 -*- 2 3import codecs 4import re 5import sys 6 7try: 8 from setuptools import setup 9except ImportError: 10 from distutils.core import setup 11 12 13def get_version(): 14 return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version') 15 16 17setup(name = "aiodns", 18 version = get_version(), 19 author = "Saúl Ibarra Corretgé", 20 author_email = "saghul@gmail.com", 21 url = "http://github.com/saghul/aiodns", 22 description = "Simple DNS resolver for asyncio", 23 long_description = codecs.open("README.rst", encoding="utf-8").read(), 24 install_requires = ['pycares>=1.0.0'], 25 extras_require = { 26 ':python_version=="3.3"': ['asyncio'], 27 ':python_version<="3.2"': ['trollius'], 28 }, 29 packages = ['aiodns'], 30 platforms = ["POSIX", "Microsoft Windows"], 31 classifiers = [ 32 "Development Status :: 5 - Production/Stable", 33 "Intended Audience :: Developers", 34 "License :: OSI Approved :: MIT License", 35 "Operating System :: POSIX", 36 "Operating System :: Microsoft :: Windows", 37 "Programming Language :: Python", 38 "Programming Language :: Python :: 2", 39 "Programming Language :: Python :: 2.6", 40 "Programming Language :: Python :: 2.7", 41 "Programming Language :: Python :: 3", 42 "Programming Language :: Python :: 3.0", 43 "Programming Language :: Python :: 3.1", 44 "Programming Language :: Python :: 3.2", 45 "Programming Language :: Python :: 3.3", 46 "Programming Language :: Python :: 3.4", 47 "Programming Language :: Python :: 3.5" 48 ] 49) 50 51