<commit_before>#!/usr/bin/env python
# encoding: utf-8

"""
Python setup file.
"""

import setuptools
import os.path

from RedditWallpaperChooser import __version__

__author__ = 'aldur'

_readme = "README.md"
_requirements = "requirements.txt"
_requirements_extra = "requirements_extra.txt"


def readme():
    """Open and return the _readme contents."""
    if not os.path.isfile(_readme):
        return ""

    with open(_readme) as f:
        return f.read()


def requirements():
    """Open and return the _requirements contents."""
    if not os.path.isfile(_requirements):
        return []

    with open(_requirements) as f:
        return [line.rstrip() for line in f]


def requirements_extras():
    """Open and return the other requirement files content."""
    extra = dict()

    if not os.path.isfile(_requirements_extra):
        return extra

    with open(_requirements_extra) as f:
        extra.update({
            'extras': [line.rstrip() for line in f]
        })

    return extra


setuptools.setup(
    name='RedditWallpaperChooser',
    description='Automatically download the most trending wallpapers from subreddits of your choice.',
    long_description=readme(),
    version=__version__,

    url='https://github.com/aldur/RedditWallpaperChooser',
    license='MIT',

    author='aldur',
    author_email='<EMAIL>',

    packages=[
        "RedditWallpaperChooser",
    ],
    install_requires=requirements(),
    extras_require=requirements_extras(),
    scripts=[
        "bin/RedditWallpaperChooser"
    ],

    zip_safe=False,
    include_package_data=True,

    # TODO: include classifiers and keywords.
)<commit_msg>Add keywords and classifiers to setup.py<commit_after>#!/usr/bin/env python
# encoding: utf-8

"""
Python setup file.
"""

import setuptools
import os.path

from RedditWallpaperChooser import __version__

__author__ = 'aldur'

_readme = "README.md"
_requirements = "requirements.txt"
_requirements_extra = "requirements_extra.txt"


def readme():
    """Open and return the _readme contents."""
    if not os.path.isfile(_readme):
        return ""

    with open(_readme) as f:
        return f.read()


def requirements():
    """Open and return the _requirements contents."""
    if not os.path.isfile(_requirements):
        return []

    with open(_requirements) as f:
        return [line.rstrip() for line in f]


def requirements_extras():
    """Open and return the other requirement files content."""
    extra = dict()

    if not os.path.isfile(_requirements_extra):
        return extra

    with open(_requirements_extra) as f:
        extra.update({
            'extras': [line.rstrip() for line in f]
        })

    return extra


setuptools.setup(
    name='RedditWallpaperChooser',
    description='Automatically download trending wallpapers from subreddits of your choice.',
    long_description=readme(),
    version=__version__,

    url='https://github.com/aldur/RedditWallpaperChooser',
    license='MIT',

    author='aldur',
    author_email='<EMAIL>',

    packages=[
        "RedditWallpaperChooser",
    ],
    install_requires=requirements(),
    extras_require=requirements_extras(),
    scripts=[
        "bin/RedditWallpaperChooser"
    ],

    zip_safe=False,
    include_package_data=True,

    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: End Users/Desktop',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.5',
        'Topic :: Desktop Environment',
        'Topic :: Multimedia',
        'Topic :: Utilities',
    ],
    keywords="Reddit subreddit wallpaper desktop"
)
{'fraction_non_alphanumeric': 0.11583924349881797, 'fraction_numerical': 0.0015760441292356187, 'mean_word_length': 3.121212121212121, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4340633', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1115, 'n_words': 288}