import os
from distutils.core import setup

version = '0.9.3'


def read_file(name):
    return open(os.path.join(os.path.dirname(__file__),
                             name)).read()

readme = read_file('README.rst')
changes = read_file('CHANGES')

setup(
    name='django-maintenancemode',
    version=version,
    description='Django-maintenancemode allows you to temporary shutdown your site for maintenance work',
    long_description='\n\n'.join([readme, changes]),
    author='Remco Wendt',
    author_email='remco@maykinmedia.nl',
    license="BSD",
    platforms=["any"],
    url='https://github.com/shanx/django-maintenancemode',
    packages=[
        'maintenancemode',
        'maintenancemode.conf',
        'maintenancemode.conf.settings',
        'maintenancemode.conf.urls',
        'maintenancemode.tests',
        'maintenancemode.views',
    ],
    package_data={
        'maintenancemode': [
            'tests/templates/503.html',
        ],
    },
    classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Web Environment',
            'Framework :: Django',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: BSD License',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Topic :: Utilities',
    ],
)

import os
from distutils.core import setup

version = '0.9.3'

here = os.path.abspath(os.path.dirname(__file__))

def read_file(name):
    return open(os.path.join(here, name)).read()

readme = read_file('README.rst')
changes = read_file('CHANGES')

setup(
    name='django-maintenancemode',
    version=version,
    description='Django-maintenancemode allows you to temporary shutdown your site for maintenance work',
    long_description='\n\n'.join([readme, changes]),
    author='Remco Wendt',
    author_email='remco@maykinmedia.nl',
    license="BSD",
    platforms=["any"],
    url='https://github.com/shanx/django-maintenancemode',
    packages=[
        'maintenancemode',
        'maintenancemode.conf',
        'maintenancemode.conf.settings',
        'maintenancemode.conf.urls',
        'maintenancemode.tests',
        'maintenancemode.views',
    ],
    package_data={
        'maintenancemode': [
            'tests/templates/503.html',
        ],
    },
    classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Web Environment',
            'Framework :: Django',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: BSD License',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Topic :: Utilities',
    ],
)

Use the absolute path for the long description to work around CI issues.
Use the absolute path for the long description to work around CI issues.