<commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import os
from setuptools import setup, find_packages

data_patterns = [
    'templates/**.html',
    'static/**.jpg',
    'static/**.css',
    'static/**.js',
    'static/**.txt',
]

setup(
    name='relengapi',
    version='0.3',
    description='The code behind https://api.pub.build.mozilla.org',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://api.pub.build.mozilla.org',
    install_requires=[
        "Flask",
        "Flask-Login>=0.2.10",
        "Flask-Browserid",
        "Sphinx",
        "SQLAlchemy>=0.9.4",
        "Celery",
        "argparse",
        "requests",
        "wrapt",
        "blinker",  # required to use flask signals
        #  Tests break with newer pytz,
        #  see https://bugs.launchpad.net/pytz/+bug/1324158
        "pytz==2014.1",
        "wsme",
        "croniter",
        "python-dateutil",
        "simplejson",
    ],
    extras_require={
        'test': [
            'nose',
            'mock',
            'coverage',
            'pep8',
            'mockldap',
            'pyflakes',
        ],
        # extras required only for LDAP authorization support
        'ldap': [
            'python-ldap',
        ],
    },
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    namespace_packages=['relengapi', 'relengapi.blueprints'],
    # copy ./docs to %(sys.prefix)s/relengapi-docs, recursively
    data_files=[
        ('relengapi-' + dirpath, [os.path.join(dirpath, f) for f in files])
        for dirpath, _, files in os.walk('docs')
    ],
    package_data={  # NOTE: these files must *also* be specified in MANIFEST.in
        'relengapi.blueprints.base': data_patterns,
        'relengapi.blueprints.auth': data_patterns,
        'relengapi.blueprints.tokenauth': data_patterns,
        'relengapi.blueprints.docs': data_patterns + [
            'base/**.rst',
            'base/_static/**',
            'base/conf.py',
        ],
    },
    entry_points={
        "relengapi.blueprints": [
            'base = relengapi.blueprints.base:bp',
            'auth = relengapi.blueprints.auth:bp',
            'tokenauth = relengapi.blueprints.tokenauth:bp',
            'docs = relengapi.blueprints.docs:bp',
            'badpenny = relengapi.blueprints.badpenny:bp',
        ],
        "relengapi.auth.mechanisms": [
            'browserid = relengapi.lib.auth.browserid:init_app',
            'external = relengapi.lib.auth.external:init_app',
        ],
        "relengapi.perms.mechanisms": [
            'static = relengapi.lib.auth.static_authz:init_app',
            'ldap-groups = relengapi.lib.auth.ldap_group_authz:init_app',
        ],
        "console_scripts": [
            'relengapi = relengapi.lib.subcommands:main',
        ],
    },
    license='MPL2',
)
<commit_msg>Require Celery >= 3.1.16 to avoid bug<commit_after># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import os
from setuptools import setup, find_packages

data_patterns = [
    'templates/**.html',
    'static/**.jpg',
    'static/**.css',
    'static/**.js',
    'static/**.txt',
]

setup(
    name='relengapi',
    version='0.3',
    description='The code behind https://api.pub.build.mozilla.org',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://api.pub.build.mozilla.org',
    install_requires=[
        "Flask",
        "Flask-Login>=0.2.10",
        "Flask-Browserid",
        "Sphinx",
        "SQLAlchemy>=0.9.4",
        "Celery>=3.1.16",  # see https://github.com/mozilla/build-relengapi/issues/145
        "argparse",
        "requests",
        "wrapt",
        "blinker",  # required to use flask signals
        #  Tests break with newer pytz,
        #  see https://bugs.launchpad.net/pytz/+bug/1324158
        "pytz==2014.1",
        "wsme",
        "croniter",
        "python-dateutil",
        "simplejson",
    ],
    extras_require={
        'test': [
            'nose',
            'mock',
            'coverage',
            'pep8',
            'mockldap',
            'pyflakes',
        ],
        # extras required only for LDAP authorization support
        'ldap': [
            'python-ldap',
        ],
    },
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    namespace_packages=['relengapi', 'relengapi.blueprints'],
    # copy ./docs to %(sys.prefix)s/relengapi-docs, recursively
    data_files=[
        ('relengapi-' + dirpath, [os.path.join(dirpath, f) for f in files])
        for dirpath, _, files in os.walk('docs')
    ],
    package_data={  # NOTE: these files must *also* be specified in MANIFEST.in
        'relengapi.blueprints.base': data_patterns,
        'relengapi.blueprints.auth': data_patterns,
        'relengapi.blueprints.tokenauth': data_patterns,
        'relengapi.blueprints.docs': data_patterns + [
            'base/**.rst',
            'base/_static/**',
            'base/conf.py',
        ],
    },
    entry_points={
        "relengapi.blueprints": [
            'base = relengapi.blueprints.base:bp',
            'auth = relengapi.blueprints.auth:bp',
            'tokenauth = relengapi.blueprints.tokenauth:bp',
            'docs = relengapi.blueprints.docs:bp',
            'badpenny = relengapi.blueprints.badpenny:bp',
        ],
        "relengapi.auth.mechanisms": [
            'browserid = relengapi.lib.auth.browserid:init_app',
            'external = relengapi.lib.auth.external:init_app',
        ],
        "relengapi.perms.mechanisms": [
            'static = relengapi.lib.auth.static_authz:init_app',
            'ldap-groups = relengapi.lib.auth.ldap_group_authz:init_app',
        ],
        "console_scripts": [
            'relengapi = relengapi.lib.subcommands:main',
        ],
    },
    license='MPL2',
)

{'fraction_non_alphanumeric': 0.14681304276585286, 'fraction_numerical': 0.010650499754219236, 'mean_word_length': 2.0969051243023844, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2506987', 'n_tokens_mistral': 2042, 'n_tokens_neox': 1999, 'n_words': 355}