# Path: oath_toolkit/metadata.py
# DESCRIPTION = 'Python bindings for the OATH Toolkit library.'
# VERSION = '2.0.dev1'


import os
import sys
import re
    import codecs
    import ctypes
        from docutils.frontend import OptionParser
    from Cython.Build import cythonize
from functools import partial
from platform import python_implementation
from setuptools import find_packages, setup
from setuptools.extension import Extension
from oath_toolkit import metadata
def requires_from_req_txt(filename):
    requires = []
    with open(os.path.join(THIS_DIR, filename)) as f:
        for line in f:
            req = RE_REQ_COMMENT.sub('', line).strip()
            if req != '':
                requires.append(req)
    return requires


def liboath_version():
    # FIXME windows support
    c = ctypes.cdll.LoadLibrary('liboath.so.0')
    check_version = c.oath_check_version
    check_version.argtypes = [ctypes.c_char_p]
    check_version.restype = ctypes.c_char_p
    return tuple(int(x) for x in check_version(b'0').split(b'.'))

with utf8_open(os.path.join(THIS_DIR, 'README.rst')) as f:
    long_description = f.read()

requires = []
READTHEDOCS = os.environ.get('READTHEDOCS')
if not READTHEDOCS:
    requires = requires_from_req_txt('requirements.txt')
extra_req = dict([(x, requires_from_req_txt('requirements/{0}.txt'.format(x)))
                  for x in ['django-otp', 'qrcode', 'wtforms']])

attrs = dict(name='pyoath-toolkit',
             version=metadata.VERSION,

# Path: oath_toolkit/metadata.py
# DESCRIPTION = 'Python bindings for the OATH Toolkit library.'
# VERSION = '2.0.dev1'


# Path: setup.py
import os
import sys
import re
    import codecs
    import ctypes
        from docutils.frontend import OptionParser
    from Cython.Build import cythonize
from functools import partial
from platform import python_implementation
from setuptools import find_packages, setup
from setuptools.extension import Extension
from oath_toolkit import metadata

def requires_from_req_txt(filename):
    requires = []
    with open(os.path.join(THIS_DIR, filename)) as f:
        for line in f:
            req = RE_REQ_COMMENT.sub('', line).strip()
            if req != '':
                requires.append(req)
    return requires


def liboath_version():
    # FIXME windows support
    c = ctypes.cdll.LoadLibrary('liboath.so.0')
    check_version = c.oath_check_version
    check_version.argtypes = [ctypes.c_char_p]
    check_version.restype = ctypes.c_char_p
    return tuple(int(x) for x in check_version(b'0').split(b'.'))

with utf8_open(os.path.join(THIS_DIR, 'README.rst')) as f:
    long_description = f.read()

requires = []
READTHEDOCS = os.environ.get('READTHEDOCS')
if not READTHEDOCS:
    requires = requires_from_req_txt('requirements.txt')
extra_req = dict([(x, requires_from_req_txt('requirements/{0}.txt'.format(x)))
                  for x in ['django-otp', 'qrcode', 'wtforms']])

attrs = dict(name='pyoath-toolkit',
             version=metadata.VERSION,

             description=metadata.DESCRIPTION,