<commit_before>import sys
from pip.req import parse_requirements
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from odin.static import __version__

# from http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool
# FIXME add path discovery or at least an hint because it breaks from tox
#install_reqs = parse_requirements('requirements.txt', session=False)
#requirements = [str(ir.req) for ir in install_reqs]

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

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

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


setup(
	name='odin',
    version=__version__,
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),
    entry_points = {
        'console_scripts': ['odin=odin.scripts:main'],
    },
    install_requires=["Flask == 0.10.1 ;python_version >= '3.4'",
        "dnspython3 == 1.12.0 ;python_version >= '3.4'",
        "pynamodb == 1.5.2 ;python_version >= '3.4'",
        "moto == 0.4.25 ;python_version >= '3.4'",
        "arrow == 0.8.0 ;python_version >= '3.4'"],
    tests_require=['pytest'],
    cmdclass = {'test': PyTest},
)

<commit_msg>* removed install_requires from setup.py (seems to break in travis-ci), need to check better, i could not reproduce with local tox<commit_after>import sys
from pip.req import parse_requirements
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from odin.static import __version__

# from http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool
# FIXME add path discovery or at least an hint because it breaks from tox
#install_reqs = parse_requirements('requirements.txt', session=False)
#requirements = [str(ir.req) for ir in install_reqs]

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

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

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


setup(
	name='odin',
    version=__version__,
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),
    entry_points = {
        'console_scripts': ['odin=odin.scripts:main'],
    },
    tests_require=['pytest'],
    cmdclass = {'test': PyTest},
)


{'fraction_non_alphanumeric': 0.12656866260308355, 'fraction_numerical': 0.01613481534600215, 'mean_word_length': 3.8947368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '6084867', 'n_tokens_mistral': 915, 'n_tokens_neox': 891, 'n_words': 216}