import os
from setuptools import setup, find_packages

README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='django-counter-cache-field',
    version='0.1.0',
    packages=find_packages(exclude=['tests']),
    license='MIT License',
    description='django-counter-cache-field makes it extremely easy to denormalize and '
                'keep track of related model counts.',
    long_description=README,
    url='http://github.com/enjoy2000/django-counter-cache-field',
    author='Hat Dao',
    author_email='enjoy3013@gmail.com',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
    install_requires=[],
    extras_require={
        'test': [
            'django',
        ]
    },
    test_suite='runtests.runtests',
    tests_require=[
        'django'
    ],
    zip_safe=False,
)
