<commit_before>"""
Pontus
------

Flask utility for signing Amazon S3 POST requests and validating Amazon S3
files.
"""

import os
import re
import subprocess

from setuptools import Command, setup


def get_version():
    filename = os.path.join(
        os.path.dirname(os.path.abspath(__file__)),
        'pontus',
        '__init__.py'
    )
    contents = open(filename).read()
    pattern = r"^__version__ = '(.*?)'$"
    return re.search(pattern, contents, re.MULTILINE).group(1)


class PyTest(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        errno = subprocess.call(['py.test'])
        raise SystemExit(errno)


extras_require = {
    'test': [
        'flexmock>=0.9.7',
        'freezegun>=0.1.18',
        'py>=1.4.20',
        'pytest>=2.5.2',
        'moto>=0.3.9'
    ]
}


setup(
    name='Pontus',
    version=get_version(),
    url='https://github.com/fastmonkeys/pontus',
    author='<NAME>',
    author_email='<EMAIL>',
    description='Flask utility for Amazon S3.',
    license='MIT',
    packages=['pontus'],
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    install_requires=[
        'Flask>=0.10.1',
        'python-magic>=0.4.6',
        'boto>=2.34.0'
    ],
    extras_require=extras_require,
    cmdclass={'test': PyTest},
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)
<commit_msg>Fix hanging tests<commit_after>"""
Pontus
------

Flask utility for signing Amazon S3 POST requests and validating Amazon S3
files.
"""

import os
import re
import subprocess

from setuptools import Command, setup


def get_version():
    filename = os.path.join(
        os.path.dirname(os.path.abspath(__file__)),
        'pontus',
        '__init__.py'
    )
    contents = open(filename).read()
    pattern = r"^__version__ = '(.*?)'$"
    return re.search(pattern, contents, re.MULTILINE).group(1)


class PyTest(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        errno = subprocess.call(['py.test'])
        raise SystemExit(errno)


extras_require = {
    'test': [
        'flexmock>=0.9.7',
        'freezegun>=0.1.18',
        'py>=1.4.20',
        'pytest>=2.5.2',
        'moto>=0.3.9',
        'httpretty==0.8.6'
    ]
}


setup(
    name='Pontus',
    version=get_version(),
    url='https://github.com/fastmonkeys/pontus',
    author='<NAME>',
    author_email='<EMAIL>',
    description='Flask utility for Amazon S3.',
    license='MIT',
    packages=['pontus'],
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    install_requires=[
        'Flask>=0.10.1',
        'python-magic>=0.4.6',
        'boto>=2.34.0'
    ],
    extras_require=extras_require,
    cmdclass={'test': PyTest},
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)

{'fraction_non_alphanumeric': 0.15421081985499163, 'fraction_numerical': 0.01868377021751255, 'mean_word_length': 2.5798403193612773, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4340593', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1173, 'n_words': 235}