from setuptools import setup, find_packages
from version import get_git_version


setup(
    name='thecut-emailfield',
    author='The Cut',
    author_email='development@thecut.net.au',
    url='https://projects.thecut.net.au/projects/thecut-emailfield',
    namespace_packages=['thecut'],
    version=get_git_version(),
    packages=find_packages(),
    include_package_data=True,
    install_requires=['dnspython>=1.11.1,<2.0'],
)

@@ -46,39 +46,246 @@
 rom 
-version import get_git_version%0A
+sys import version_info as PYTHON_VERSION%0Afrom version import get_git_version%0A%0Ainstall_requires = %5B%5D%0A%0Aif PYTHON_VERSION %3C (3,):%0A    install_requires.append('dnspython%3E=1.11.1,%3C2')%0Aelse:%0A    install_requires.append('dnspython3%3E=1.11.1,%3C2')
 %0A%0Ase
@@ -608,34 +608,24 @@
 res=
-%5B'dnspython%3E=1.11.1,%3C2.0'%5D
+install_requires
 ,%0A)%0A

Install correct version of ``dnspython`` for user's version of python, fixes #6001