<commit_before>"""Setup script.

Run "python setup.py install" to install the bencode package.
"""


import os
import re
import sys

from setuptools import setup


PACKAGE_NAME = 'bencode'


if sys.version_info < (3, 5):
    raise RuntimeError('ERROR: {} requires Python 3.5 or higher'.format(PACKAGE_NAME))


def get_version():
    """Return the version string from the package's __init__.py file."""
    with open(os.path.join(PACKAGE_NAME, '__init__.py')) as version_file:
        version_source = version_file.read()
    version_match = re.search(r"^__version__ = '([^']*)'", version_source, re.MULTILINE)
    if not version_match:
        raise RuntimeError('Could not find the version string.')
    return version_match.group(1)


VERSION = get_version()


setup(
    name=PACKAGE_NAME,
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/elliptical/bencode',
    download_url='https://github.com/elliptical/%s/archive/%s.tar.gz' % (PACKAGE_NAME, VERSION),
    license='MIT',
    platforms='All',
    description='Bencoding helpers',
    version=VERSION,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',<commit_msg>Cleanup setup.py<commit_after>"""Setup script.

Run "python setup.py install" to install the bencode package.
"""


import os
import re
import sys

from setuptools import setup


PACKAGE_NAME = 'bencode'


if sys.version_info < (3, 5):
    raise RuntimeError('{} requires Python 3.5 or higher'.format(PACKAGE_NAME))


def get_version():
    """Return the version string from the package's __init__.py file."""
    with open(os.path.join(PACKAGE_NAME, '__init__.py')) as version_file:
        version_source = version_file.read()
    version_match = re.search(r"^__version__ = '([^']*)'", version_source, re.MULTILINE)
    if not version_match:
        raise RuntimeError('Could not find the version string.')
    return version_match.group(1)


VERSION = get_version()


setup(
    name=PACKAGE_NAME,
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/elliptical/{}'.format(PACKAGE_NAME),
    download_url='https://github.com/elliptical/{}/archive/{}.tar.gz'.format(PACKAGE_NAME, VERSION),
    license='MIT',
    platforms='All',
    description='Bencoding helpers',
    version=VERSION,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
{'fraction_non_alphanumeric': 0.13819095477386933, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 3.660535117056856, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4948559', 'n_tokens_mistral': 867, 'n_tokens_neox': 844, 'n_words': 213}