"""bibpy module setup script for distribution."""

from __future__ import with_statement

import os
import distutils.core


def get_version(filename):
    with open(filename) as fh:
        for line in fh:
            if line.startswith('__version__'):
                return line.split('=')[-1].strip()[1:-1]


distutils.core.setup(
    name='bibpy',
    version=get_version(os.path.join('bibpy', '__init__.py')),
    author='Alexander Asp Bock',
    author_email='albo.developer@gmail.com',
    platforms='All',
    description=('Bib(la)tex parsing and useful tools'),
    license='MIT',
    keywords='bibpy, bibtex, biblatex, parser',
    url='https://github.com/MisanthropicBit/bibpy',
    packages=['bibpy', 'bibpy.entry', 'bibpy.formats', 'bibpy.lexers',
              'bibpy.parsers'],
    long_description=open('README.md').read(),
    scripts=['bin/bibgrep', 'bin/bibformat', 'bin/bibstats'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Topic :: Utilities',
        'Topic :: Software Development',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5'
    ]
)

@@ -728,22 +728,21 @@
  'bibpy.
-format
+lexer
 s', 'bib
@@ -740,27 +740,28 @@
 rs', 'bibpy.
-lex
+pars
 ers',%0A      
@@ -775,23 +775,19 @@
  'bibpy.
-parsers
+doi
 '%5D,%0A    

Add bibpy.doi to setup.py packages