<commit_before>"""package setup"""

__version__ = "0.0.0"

import sys, os

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    """Our test runner."""

    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ["tests/unit"]

    def finalize_options(self):
        # pylint: disable=W0201
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)


def read(*paths):
    """Build a file path from *paths* and return the contents."""
    with open(os.path.join(*paths), 'r') as f:
        return f.read()


setup(
    name="Debellator",
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/diefans/debellator",
    description='Remote execution via stdin/stdout messaging.',
    long_description=read('README.rst'),
    version=__version__,
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Topic :: Database',
    ],
    license='Apache License Version 2.0',

    keywords="asyncio ssh RPC Remote execution dependency injection stdin stdout messaging",

    package_dir={'': 'src'},
    namespace_packages=['debellator'],
    packages=find_packages(
        'src',
        exclude=["tests*"]
    ),
    entry_points={
        'console_scripts': [
            'debellator=debellator.scripts:cli'
        ],
        # register modules with rpc classes
        'debellator.plugins': [
            '_=debellator.core',
            'core=debellator.plugins.core'
        ],
        # register yaml constructors
        'debellator.registry': [
            'setup=debellator.evolve:setup',
        ],
        # register spec packages
        'debellator.specs': [
            'default=debellator.specs',
        ],
        'debellator.test.specs': [
            'default=debellator.test_specs.default',
            'duplicate=debellator.test_specs.duplicate'
        ],
        'debellator.assets': [
            'default=debellator.assets'
        ],
    },

    install_requires=[
        'click',
        'pyyaml',
        'msgpack-python',
        'zope.component'
    ],

    tests_require=['tox'],
    cmdclass = {'test': Tox},
    # tests_require=[
    #     # tests
    #     'pytest',<commit_msg>code style<commit_after>"""package setup"""

import os
import sys

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

__version__ = "0.0.0"


class PyTest(TestCommand):
    """Our test runner."""

    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ["tests/unit"]

    def finalize_options(self):
        # pylint: disable=W0201
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None

    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno)


def read(*paths):
    """Build a file path from *paths* and return the contents."""
    with open(os.path.join(*paths), 'r') as f:
        return f.read()


setup(
    name="Debellator",
    author="<NAME>",
    author_email="<EMAIL>",
    url="https://github.com/diefans/debellator",
    description='Remote execution via stdin/stdout messaging.',
    long_description=read('README.rst'),
    version=__version__,
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Topic :: Database',
    ],
    license='Apache License Version 2.0',

    keywords="asyncio ssh RPC Remote execution dependency injection stdin stdout messaging",

    package_dir={'': 'src'},
    namespace_packages=['debellator'],
    packages=find_packages(
        'src',
        exclude=["tests*"]
    ),
    entry_points={
        'console_scripts': [
            'debellator=debellator.scripts:run'
        ],
        # register modules with rpc classes
        'debellator.plugins': [
            '_=debellator.core',
            'core=debellator.plugins.core'
        ],
        # register yaml constructors
        'debellator.registry': [
            'setup=debellator.evolve:setup',
        ],
        # register spec packages
        'debellator.specs': [
            'default=debellator.specs',
        ],
        'debellator.test.specs': [
            'default=debellator.test_specs.default',
            'duplicate=debellator.test_specs.duplicate'
        ],
        'debellator.assets': [
            'default=debellator.assets'
        ],
    },

    install_requires=[
        'click',
        'pyyaml',
        'msgpack-python',
        'zope.component'
    ],

    tests_require=['tox'],
    cmdclass={'test': Tox},
    # tests_require=[
    #     # tests
    #     'pytest',
{'fraction_non_alphanumeric': 0.1244882486732373, 'fraction_numerical': 0.0036391205458680817, 'mean_word_length': 2.370464997445069, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6280888', 'n_tokens_mistral': 2029, 'n_tokens_neox': 1966, 'n_words': 418}