<commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand

readme = open('README.rst').read()
history = open('HISTORY.rst').read()


def parse_requirements():
    with open('requirements.txt') as req:
        return req.readlines()


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

setup(name='flotsam',
      version='0.1.0',
      description='Miscellaneous utilities',
      long_description=readme + '\n\n' + history,
      author='Bernhard (Bernd) Biskup',
      author_email='<EMAIL>',
      url='biskup-software.de',
      package_dir={'flotsam': 'flotsam'},
      packages=['flotsam'],
      zip_safe=False,
      include_package_data=True,
      install_requires=parse_requirements(),
      classifiers={
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Intended Audience :: Developers',
          # Topic :: Software Development :: Libraries :: Python Modules',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.4',
      },
      license='The MIT License (MIT)',
      keywords='flotsam utilities',
      tests_require=['tox'],
      cmdclass={'test': Tox}
      )<commit_msg>Supply Trove classifiers as list, not set, because PyPI registration gives error with set (trying to index)<commit_after>import sys
# from setuptools import setup
from distutils.core import setup
from setuptools.command.test import test as TestCommand

readme = open('README.rst').read()
history = open('HISTORY.rst').read()


def parse_requirements():
    with open('requirements.txt') as req:
        return req.readlines()


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

setup(name='flotsam',
      version='0.1.0',
      description='Miscellaneous utilities',
      long_description=readme + '\n\n' + history,
      author='Bernhard (Bernd) Biskup',
      author_email='<EMAIL>',
      url='biskup-software.de',
      package_dir={'flotsam': 'flotsam'},
      packages=['flotsam'],
      zip_safe=False,
      include_package_data=True,
      install_requires=parse_requirements(),
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Intended Audience :: Developers',
          # Topic :: Software Development :: Libraries :: Python Modules',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.4',
      ],
      license='The MIT License (MIT)',
      keywords='flotsam utilities',
      tests_require=['tox'],
      cmdclass={'test': Tox}
      )
{'fraction_non_alphanumeric': 0.12618104236513258, 'fraction_numerical': 0.0048765620237732395, 'mean_word_length': 2.8657243816254416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2687839', 'n_tokens_mistral': 991, 'n_tokens_neox': 949, 'n_words': 226}