import codecs
import os
import re
import setuptools


def find_version(*file_paths):
    # Credits: https://packaging.python.org/single_source_version.
    here = os.path.abspath(os.path.dirname(__file__))
    with codecs.open(os.path.join(here, *file_paths), 'r', 'utf8') as f:
        version_file = f.read()

    version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
                              version_file, re.M)
    if version_match:
        return version_match.group(1)

    raise RuntimeError("Unable to find the version string.")


setuptools.setup(
    name='gorilla',
    version=find_version('gorilla.py'),
    description='Convenient approach to monkey patching',
    keywords='gorilla monkey patch',
    license='MIT',
    url='https://github.com/christophercrouzet/gorilla',
    author='Christopher Crouzet',
    author_email='christopher.crouzet@gmail.com',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities'
    ],
    packages=[],
    py_modules=['gorilla'],
    include_package_data=True
)

import codecs
import os
import re
import setuptools


def find_version(*file_paths):
    # Credits: https://packaging.python.org/single_source_version.
    here = os.path.abspath(os.path.dirname(__file__))
    with codecs.open(os.path.join(here, *file_paths), 'r', 'utf8') as f:
        version_file = f.read()

    version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
                              version_file, re.M)
    if version_match:
        return version_match.group(1)

    raise RuntimeError("Unable to find the version string.")


setuptools.setup(
    name='gorilla',
    version=find_version('gorilla.py'),
    description="Convenient approach to monkey patching",
    keywords='gorilla monkey patch',
    license='MIT',
    url='https://github.com/christophercrouzet/gorilla',
    author="Christopher Crouzet",
    author_email='christopher.crouzet@gmail.com',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities'
    ],
    packages=[],
    py_modules=['gorilla'],
    include_package_data=True
)

Enforce double quotes for English sentences