<commit_before>import sys

from os.path import abspath, dirname, join
from setuptools import setup, find_packages
from readability import __version__


CURRENT_DIRECTORY = abspath(dirname(__file__))


with open(join(CURRENT_DIRECTORY, "README.rst")) as readme:
    with open(join(CURRENT_DIRECTORY, "CHANGELOG.rst")) as changelog:
        long_description = "%s\n\n%s" % (readme.read(), changelog.read())


install_requires = [
    "docopt>=0.6.1,<0.7",
    "charade",
    "lxml>=2.0",
]
tests_require = [
    "coverage",
    "nose",
]


if sys.version_info < (2, 7):
    install_requires.append("unittest2")


setup(
    name="readability",
    version=__version__,
    description="Port of Readability HTML parser in Python",
    long_description=long_description,
    keywords=[
        "readability",
        "readable",
        "parsing",
        "HTML",
        "content",
    ],
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/miso-belica/readability.py",
    license="BSD",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: Implementation :: CPython",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Software Development :: Pre-processors",
        "Topic :: Text Processing :: Filters",
        "Topic :: Text Processing :: Markup :: HTML",

    ],
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    test_suite="tests.run_tests.run",
    entry_points={
        "console_scripts": [
            "readability=readability.scripts.client:main",
            "readability_test=readability.scripts.test_helper:main",
        ]
    }
)<commit_msg>Create console scripts with python version suffix<commit_after>import sys

from os.path import abspath, dirname, join
from setuptools import setup, find_packages
from readability import __version__


VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
CURRENT_DIRECTORY = abspath(dirname(__file__))


with open(join(CURRENT_DIRECTORY, "README.rst")) as readme:
    with open(join(CURRENT_DIRECTORY, "CHANGELOG.rst")) as changelog:
        long_description = "%s\n\n%s" % (readme.read(), changelog.read())


install_requires = [
    "docopt>=0.6.1,<0.7",
    "charade",
    "lxml>=2.0",
]
tests_require = [
    "coverage",
    "nose",
]


if sys.version_info < (2, 7):
    install_requires.append("unittest2")


setup(
    name="readability",
    version=__version__,
    description="Port of Readability HTML parser in Python",
    long_description=long_description,
    keywords=[
        "readability",
        "readable",
        "parsing",
        "HTML",
        "content",
    ],
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/miso-belica/readability.py",
    license="BSD",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: Implementation :: CPython",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Software Development :: Pre-processors",
        "Topic :: Text Processing :: Filters",
        "Topic :: Text Processing :: Markup :: HTML",

    ],
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    test_suite="tests.run_tests.run",
    entry_points={
        "console_scripts": [
            "readability = readability.scripts.client:main",
            "readability-%s = readability.scripts.client:main" % VERSION_SUFFIX,
            "readability_test = readability.scripts.test_helper:main",
            "readability_test-%s = readability.scripts.test_helper:main" % VERSION_SUFFIX,
        ]
    }
)
{'fraction_non_alphanumeric': 0.13786531130876747, 'fraction_numerical': 0.009106310885218127, 'mean_word_length': 3.029863481228669, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6354439', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1400, 'n_words': 299}