<commit_before>from setuptools import setup
import tinyfasta

# Importing the "multiprocessing" module is required for the "nose.collector".
# See also: http://bugs.python.org/issue15881#msg170215
try:
    import multiprocessing
except ImportError:
    pass

# Define the test runner.
# See also:
# http://fgimian.github.io/blog/2014/04/27/running-nose-tests-with-plugins-using-the-python-setuptools-test-command/
from setuptools.command.test import test as TestCommand
class NoseTestCommand(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        # Run nose ensuring that argv simulates running nosetests directly.
        import nose
        nose.run_exit(argv=['nosetests'])


setup(name="tinyfasta",
      version=tinyfasta.__version__,
      packages=["tinyfasta"],
      cmdclass={"test": NoseTestCommand},
      tests_require=["nose", "coverage"],
)<commit_msg>Extended setup.py for uploading package to pypi.<commit_after>from setuptools import setup
import tinyfasta

# Importing the "multiprocessing" module is required for the "nose.collector".
# See also: http://bugs.python.org/issue15881#msg170215
try:
    import multiprocessing
except ImportError:
    pass

# Define the test runner.
# See also:
# http://fgimian.github.io/blog/2014/04/27/running-nose-tests-with-plugins-using-the-python-setuptools-test-command/
from setuptools.command.test import test as TestCommand
class NoseTestCommand(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        # Run nose ensuring that argv simulates running nosetests directly.
        import nose
        nose.run_exit(argv=['nosetests'])


setup(name="tinyfasta",
      packages=["tinyfasta"],
      version=tinyfasta.__version__,
      description="Tiny FASTA package, without dependencies, for processing biological sequence files.",
      author="<NAME>",
      author_email="<EMAIL>",
      url="https://github.com/tjelvar-olsson/tinyfasta",
      download_url="https://github.com/tjelvar-olsson/tinyfasta/{}".format(tinyfasta.__version__),
      keywords=["fasta", "bioinformatics"],
      cmdclass={"test": NoseTestCommand},
      tests_require=["nose", "coverage"],
)
{'fraction_non_alphanumeric': 0.11559478772593526, 'fraction_numerical': 0.015973097940311057, 'mean_word_length': 3.927536231884058, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4903332', 'n_tokens_mistral': 757, 'n_tokens_neox': 717, 'n_words': 154}