<commit_before>#:coding=utf-8:

from distutils.core import Command
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist


class BuildStatic(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        # Run the collectstatic django command.
        import os
        # NOTE: Enable debug mode so it doesn't complain about required
        #       settings like SECRET_KEY.
        os.environ['DEBUG'] = 'True'
        os.environ['DJANGO_SETTINGS_MODULE'] = 'homepage.settings'
        from django.core.management import call_command
        call_command('collectstatic', interactive=False)


class SdistWithBuildStatic(sdist):
    def run(self):
        self.run_command('build_static')
        return sdist.run(self)


install_requires = [
    'Django==1.4.17',
    'South==0.7.6',

    # For rendering blog posts
    'docutils>=0.5',
    'pygments>=1.0',
    'html2text==3.200.3',
    'Markdown==2.6',

    # For thumbnails
    'Pillow==2.5.1',
    'sorl-thumbnail==11.12',

    # Filebrowser admin.
    'django-filebrowser-no-grappelli==3.5.7',

    # Pagination
    'django-pagination==1.0.7',

    # Not sure where the code is being maintained because
    # the google code repo is old.
    # TODO: Replace.
    'django-tagging==0.3.2',

    # Comments
    'django-disqus==0.4.3',

    # Static file compression.
    'django-compressor==1.4',

    # Production
    'gunicorn==0.14.2',
    'MySQL-python==1.2.3',
    'pylibmc==1.4.1',
]

setup(
    name="homepage",
    version="0.0.16",
    author="<NAME>",
    author_email="<EMAIL>",
    description="Ian Lewis' homepage at www.ianlewis.org",
    license="MIT",
    keywords="django homepage blog",
    url="http://www.ianlewis.org/",
    packages=find_packages(),
    long_description=open('README.md').read(),
    install_requires=install_requires,
    include_package_data=True,  # Include static files, templates, etc.
    cmdclass={
        'build_static': BuildStatic,
        'sdist': SdistWithBuildStatic,
    },
    entry_points={
        'console_scripts': [
            'homepage = homepage.runner:main',
        ],
    },
    classifiers=[
        "Development Status :: 3 - Alpha",<commit_msg>Updated to 0.0.17<commit_after>#:coding=utf-8:

from distutils.core import Command
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist


class BuildStatic(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        # Run the collectstatic django command.
        import os
        # NOTE: Enable debug mode so it doesn't complain about required
        #       settings like SECRET_KEY.
        os.environ['DEBUG'] = 'True'
        os.environ['DJANGO_SETTINGS_MODULE'] = 'homepage.settings'
        from django.core.management import call_command
        call_command('collectstatic', interactive=False)


class SdistWithBuildStatic(sdist):
    def run(self):
        self.run_command('build_static')
        return sdist.run(self)


install_requires = [
    'Django==1.4.17',
    'South==0.7.6',

    # For rendering blog posts
    'docutils>=0.5',
    'pygments>=1.0',
    'html2text==3.200.3',
    'Markdown==2.6',

    # For thumbnails
    'Pillow==2.5.1',
    'sorl-thumbnail==11.12',

    # Filebrowser admin.
    'django-filebrowser-no-grappelli==3.5.7',

    # Pagination
    'django-pagination==1.0.7',

    # Not sure where the code is being maintained because
    # the google code repo is old.
    # TODO: Replace.
    'django-tagging==0.3.2',

    # Comments
    'django-disqus==0.4.3',

    # Static file compression.
    'django-compressor==1.4',

    # Production
    'gunicorn==0.14.2',
    'MySQL-python==1.2.3',
    'pylibmc==1.4.1',
]

setup(
    name="homepage",
    version="0.0.17",
    author="<NAME>",
    author_email="<EMAIL>",
    description="Ian Lewis' homepage at www.ianlewis.org",
    license="MIT",
    keywords="django homepage blog",
    url="http://www.ianlewis.org/",
    packages=find_packages(),
    long_description=open('README.md').read(),
    install_requires=install_requires,
    include_package_data=True,  # Include static files, templates, etc.
    cmdclass={
        'build_static': BuildStatic,
        'sdist': SdistWithBuildStatic,
    },
    entry_points={
        'console_scripts': [
            'homepage = homepage.runner:main',
        ],
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
{'fraction_non_alphanumeric': 0.13699825479930192, 'fraction_numerical': 0.02530541012216405, 'mean_word_length': 2.755118755118755, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1099945', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1484, 'n_words': 297}