<commit_before>import sys
import os
import codecs

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

import pypuppetdb.package


if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()


class Tox(TestCommand):

    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
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)

with codecs.open('README.rst', encoding='utf-8') as f:
    README = f.read()

with codecs.open('CHANGELOG.rst', encoding='utf-8') as f:
    CHANGELOG = f.read()

with codecs.open('LICENSE', encoding='utf-8') as f:
    LICENSE = f.read()

setup(
    name=pypuppetdb.package.__title__,
    version=pypuppetdb.package.__version__,
    author=pypuppetdb.package.__author__,
    author_email='<EMAIL>',<commit_msg>setup: *sigh* import causes request requirement.<commit_after>import sys
import os
import codecs

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


if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()


class Tox(TestCommand):

    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
        errno = tox.cmdline(self.test_args)
        sys.exit(errno)

with codecs.open('README.rst', encoding='utf-8') as f:
    README = f.read()

with codecs.open('CHANGELOG.rst', encoding='utf-8') as f:
    CHANGELOG = f.read()

with codecs.open('LICENSE', encoding='utf-8') as f:
    LICENSE = f.read()

setup(
    name='pypuppetdb',
    version='dev',
    author='<NAME>',
    author_email='<EMAIL>',
{'fraction_non_alphanumeric': 0.12411347517730496, 'fraction_numerical': 0.004052684903748734, 'mean_word_length': 3.398663697104677, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, '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': '1281961', 'n_tokens_mistral': 663, 'n_tokens_neox': 649, 'n_words': 154}