#!/usr/bin/python

from setuptools import setup
import sys

DESC = """SPF (Sender Policy Framework) implemented in Python."""
with open("README.md", "r") as fh:
    LONG_DESC = fh.read()

try:
    import dns
    from dns import version
    # dnspython minimum version is for timeout support
    if (version.MAJOR, version.MINOR) >= (1,16):
        if sys.version_info[0] == 2:
            install_req = ['dnspython>=1.16.0', 'authres', 'ipaddr']
        else:
            install_req = ['dnspython>=1.16.0', 'authres']
    # dnspython not present in sufficient version, so require PyDNS
    elif sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
except ImportError:  # If dnspython is not installed, require PyDNS
    if sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']

setup(name='pyspf',
      version='2.0.15',
      description=DESC,
      long_description=LONG_DESC,
      long_description_content_type="text/markdown",
      author='Terence Way',
      author_email='terry@wayforward.net',
      maintainer="Stuart D. Gathman",
      maintainer_email="stuart@gathman.org",
      url='https://github.com/sdgathman/pyspf/',
      license='Python Software Foundation License',
      py_modules=['spf'],
      keywords = ['spf','email','forgery'],
      scripts = ['type99.py','spfquery.py'],
      include_package_data=True,
      zip_safe = False,
      install_requires=install_req,
      classifiers = [
	'Development Status :: 5 - Production/Stable',
	'Environment :: No Input/Output (Daemon)',
	'Intended Audience :: Developers',
	'License :: OSI Approved :: Python Software Foundation License',
	'Natural Language :: English',
	'Operating System :: OS Independent',
	'Programming Language :: Python',
	'Programming Language :: Python :: 3',
	'Topic :: Communications :: Email :: Mail Transport Agents',
	'Topic :: Communications :: Email :: Filters',
	'Topic :: Internet :: Name Service (DNS)',
	'Topic :: Software Development :: Libraries :: Python Modules'
      ]
)

if sys.version_info < (2, 6):
    raise Exception("pyspf 2.0.6 and later requires at least python2.6.")

27fcbb5b77da48ed31d1b589daed5e901c5e796a
<mask token>

<mask token>
with open('README.md', 'r') as fh:
    LONG_DESC = fh.read()
try:
    import dns
    from dns import version
    if (version.MAJOR, version.MINOR) >= (1, 16):
        if sys.version_info[0] == 2:
            install_req = ['dnspython>=1.16.0', 'authres', 'ipaddr']
        else:
            install_req = ['dnspython>=1.16.0', 'authres']
    elif sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
except ImportError:
    if sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
setup(name='pyspf', version='2.0.15', description=DESC, long_description=
    LONG_DESC, long_description_content_type='text/markdown', author=
    'Terence Way', author_email='terry@wayforward.net', maintainer=
    'Stuart D. Gathman', maintainer_email='stuart@gathman.org', url=
    'https://github.com/sdgathman/pyspf/', license=
    'Python Software Foundation License', py_modules=['spf'], keywords=[
    'spf', 'email', 'forgery'], scripts=['type99.py', 'spfquery.py'],
    include_package_data=True, zip_safe=False, install_requires=install_req,
    classifiers=['Development Status :: 5 - Production/Stable',
    'Environment :: No Input/Output (Daemon)',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: Python Software Foundation License',
    'Natural Language :: English', 'Operating System :: OS Independent',
    'Programming Language :: Python', 'Programming Language :: Python :: 3',
    'Topic :: Communications :: Email :: Mail Transport Agents',
    'Topic :: Communications :: Email :: Filters',
    'Topic :: Internet :: Name Service (DNS)',
    'Topic :: Software Development :: Libraries :: Python Modules'])
if sys.version_info < (2, 6):
    raise Exception('pyspf 2.0.6 and later requires at least python2.6.')

<mask token>
DESC = 'SPF (Sender Policy Framework) implemented in Python.'
with open('README.md', 'r') as fh:
    LONG_DESC = fh.read()
try:
    import dns
    from dns import version
    if (version.MAJOR, version.MINOR) >= (1, 16):
        if sys.version_info[0] == 2:
            install_req = ['dnspython>=1.16.0', 'authres', 'ipaddr']
        else:
            install_req = ['dnspython>=1.16.0', 'authres']
    elif sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
except ImportError:
    if sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
setup(name='pyspf', version='2.0.15', description=DESC, long_description=
    LONG_DESC, long_description_content_type='text/markdown', author=
    'Terence Way', author_email='terry@wayforward.net', maintainer=
    'Stuart D. Gathman', maintainer_email='stuart@gathman.org', url=
    'https://github.com/sdgathman/pyspf/', license=
    'Python Software Foundation License', py_modules=['spf'], keywords=[
    'spf', 'email', 'forgery'], scripts=['type99.py', 'spfquery.py'],
    include_package_data=True, zip_safe=False, install_requires=install_req,
    classifiers=['Development Status :: 5 - Production/Stable',
    'Environment :: No Input/Output (Daemon)',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: Python Software Foundation License',
    'Natural Language :: English', 'Operating System :: OS Independent',
    'Programming Language :: Python', 'Programming Language :: Python :: 3',
    'Topic :: Communications :: Email :: Mail Transport Agents',
    'Topic :: Communications :: Email :: Filters',
    'Topic :: Internet :: Name Service (DNS)',
    'Topic :: Software Development :: Libraries :: Python Modules'])
if sys.version_info < (2, 6):
    raise Exception('pyspf 2.0.6 and later requires at least python2.6.')

from setuptools import setup
import sys
DESC = 'SPF (Sender Policy Framework) implemented in Python.'
with open('README.md', 'r') as fh:
    LONG_DESC = fh.read()
try:
    import dns
    from dns import version
    if (version.MAJOR, version.MINOR) >= (1, 16):
        if sys.version_info[0] == 2:
            install_req = ['dnspython>=1.16.0', 'authres', 'ipaddr']
        else:
            install_req = ['dnspython>=1.16.0', 'authres']
    elif sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
except ImportError:
    if sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
setup(name='pyspf', version='2.0.15', description=DESC, long_description=
    LONG_DESC, long_description_content_type='text/markdown', author=
    'Terence Way', author_email='terry@wayforward.net', maintainer=
    'Stuart D. Gathman', maintainer_email='stuart@gathman.org', url=
    'https://github.com/sdgathman/pyspf/', license=
    'Python Software Foundation License', py_modules=['spf'], keywords=[
    'spf', 'email', 'forgery'], scripts=['type99.py', 'spfquery.py'],
    include_package_data=True, zip_safe=False, install_requires=install_req,
    classifiers=['Development Status :: 5 - Production/Stable',
    'Environment :: No Input/Output (Daemon)',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: Python Software Foundation License',
    'Natural Language :: English', 'Operating System :: OS Independent',
    'Programming Language :: Python', 'Programming Language :: Python :: 3',
    'Topic :: Communications :: Email :: Mail Transport Agents',
    'Topic :: Communications :: Email :: Filters',
    'Topic :: Internet :: Name Service (DNS)',
    'Topic :: Software Development :: Libraries :: Python Modules'])
if sys.version_info < (2, 6):
    raise Exception('pyspf 2.0.6 and later requires at least python2.6.')

#!/usr/bin/python

from setuptools import setup
import sys

DESC = """SPF (Sender Policy Framework) implemented in Python."""
with open("README.md", "r") as fh:
    LONG_DESC = fh.read()

try:
    import dns
    from dns import version
    # dnspython minimum version is for timeout support
    if (version.MAJOR, version.MINOR) >= (1,16):
        if sys.version_info[0] == 2:
            install_req = ['dnspython>=1.16.0', 'authres', 'ipaddr']
        else:
            install_req = ['dnspython>=1.16.0', 'authres']
    # dnspython not present in sufficient version, so require PyDNS
    elif sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']
except ImportError:  # If dnspython is not installed, require PyDNS
    if sys.version_info[0] == 2:
        install_req = ['PyDNS', 'authres', 'ipaddr']
    else:
        install_req = ['Py3DNS', 'authres']

setup(name='pyspf',
      version='2.0.15',
      description=DESC,
      long_description=LONG_DESC,
      long_description_content_type="text/markdown",
      author='Terence Way',
      author_email='terry@wayforward.net',
      maintainer="Stuart D. Gathman",
      maintainer_email="stuart@gathman.org",
      url='https://github.com/sdgathman/pyspf/',
      license='Python Software Foundation License',
      py_modules=['spf'],
      keywords = ['spf','email','forgery'],
      scripts = ['type99.py','spfquery.py'],
      include_package_data=True,
      zip_safe = False,
      install_requires=install_req,
      classifiers = [
	'Development Status :: 5 - Production/Stable',
	'Environment :: No Input/Output (Daemon)',
	'Intended Audience :: Developers',
	'License :: OSI Approved :: Python Software Foundation License',
	'Natural Language :: English',
	'Operating System :: OS Independent',
	'Programming Language :: Python',
	'Programming Language :: Python :: 3',
	'Topic :: Communications :: Email :: Mail Transport Agents',
	'Topic :: Communications :: Email :: Filters',
	'Topic :: Internet :: Name Service (DNS)',
	'Topic :: Software Development :: Libraries :: Python Modules'
      ]
)

if sys.version_info < (2, 6):
    raise Exception("pyspf 2.0.6 and later requires at least python2.6.")
