# import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
import multiprocessing
assert multiprocessing
import re
from setuptools import setup, find_packages


def get_version():
    """
    Extracts the version number from the version.py file.
    """
    VERSION_FILE = 'entity_emailer/version.py'
    mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
    if mo:
        return mo.group(1)
    else:
        raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))


setup(
    name='',
    version=get_version(),
    description='',
    long_description=open('README.md').read(),
    url='',
    author='',
    author_email='opensource@ambition.com',
    keywords='',
    packages=find_packages(),
    classifiers=[
        'Programming Language :: Python',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Framework :: Django',
    ],
    license='MIT',
    install_requires=[
        'django>=1.6',
        'django-db-mutex>=0.1.3',
        'django-entity>=0.4.1',
        'celery>=3.1',
    ],
    tests_require=[
        'django-dynamic-fixture',
        'django-nose',
        'freezegun',
        'mock',
        'south',
    ],
    test_suite='run_tests.run_tests',
    include_package_data=True,
)

# import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
import multiprocessing
assert multiprocessing
import re
from setuptools import setup, find_packages


def get_version():
    """
    Extracts the version number from the version.py file.
    """
    VERSION_FILE = 'entity_emailer/version.py'
    mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
    if mo:
        return mo.group(1)
    else:
        raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))


setup(
    name='',
    version=get_version(),
    description='',
    long_description=open('README.md').read(),
    url='',
    author='',
    author_email='opensource@ambition.com',
    keywords='',
    packages=find_packages(),
    classifiers=[
        'Programming Language :: Python',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Framework :: Django',
    ],
    license='MIT',
    install_requires=[
        'django>=1.6',
        'django-db-mutex>=0.1.3',
        'django-entity>=1.0',
        'django-entity-subscription>=0.1.2',
        'celery>=3.1',
    ],
    tests_require=[
        'django-dynamic-fixture',
        'django-nose',
        'freezegun',
        'mock',
        'south',
    ],
    test_suite='run_tests.run_tests',
    include_package_data=True,
)

Bump entity version, add entity-subscription requirement.