text: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  import re
  
  
  def find_version():
      return re.search(r"^__version__ = '(.*)'$",
                       open('asn1tools/__init__.py', 'r').read(),
                       re.MULTILINE).group(1)
  
  
  setup(name='asn1tools',
        version=find_version(),
        description='ASN.1 parsing, encoding and decoding.',
        long_description=open('README.rst', 'r').read(),
        author='Erik Moqvist',
        author_email='erik.moqvist@gmail.com',
        license='MIT',
        classifiers=[
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 3',
        ],
        keywords=['ASN.1', 'asn1'],
        url='https://github.com/eerimoq/asn1tools',
        packages=find_packages(exclude=['tests']),
        install_requires=[
            'pyparsing>=2.2.0',
            'prompt_toolkit'
        ],
        test_suite="tests",
        entry_points = {
            'console_scripts': ['asn1tools=asn1tools.__init__:_main']
        })
  