<commit_before>[tox]
envlist = py35,py36,kinto-master,upload-download-scripts,flake8
skip_missing_interpreters = True

[testenv]
commands =
    python --version
    py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment {posargs}
deps = -rdev-requirements.txt
install_command = pip install --pre {opts} {packages}

[testenv:kinto-master]
commands =
    python --version
    py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment {posargs}
deps = -rdev-requirements.txt
       https://github.com/Kinto/kinto/tarball/master
install_command = pip install --pre {opts} {packages}

[testenv:upload-download-scripts]
commands =
    python --version
    /usr/bin/openssl rand 3000 -base64 -out kinto1
    /usr/bin/openssl rand 3000 -base64 -out kinto2
    /usr/bin/openssl rand 3000 -base64 -out kinto3
    python scripts/upload.py --server=http://localhost:8888/v1 --bucket=services --collection=logs --auth=token:my-secret kinto1 kinto2 kinto3
    python scripts/download.py --server=http://localhost:8888/v1 --bucket=services --collection=logs --auth=token:my-secret -f /tmp
    python scripts/upload.py --server=http://localhost:8888/v1 --keep-filenames --bucket=services --collection=app --auth=token:my-secret kinto1 kinto2 kinto3
    python scripts/download.py --server=http://localhost:8888/v1 --bucket=services --collection=app --auth=token:my-secret -f /tmp/kintoapp
    /bin/rm kinto1 kinto2 kinto3
    /bin/rm -rf /tmp/kinto*
deps = kinto-http

[testenv:flake8]
commands = flake8 kinto_attachment
deps =
    flake8

[flake8]
max-line-length = 99<commit_msg>Fix openssl command calls with recent versions<commit_after>[tox]
envlist = py35,py36,kinto-master,upload-download-scripts,flake8
skip_missing_interpreters = True

[testenv]
commands =
    python --version
    py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment {posargs}
deps = -rdev-requirements.txt
install_command = pip install --pre {opts} {packages}

[testenv:kinto-master]
commands =
    python --version
    py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment {posargs}
deps = -rdev-requirements.txt
       https://github.com/Kinto/kinto/tarball/master
install_command = pip install --pre {opts} {packages}

[testenv:upload-download-scripts]
commands =
    python --version
    /usr/bin/openssl rand -base64 -out kinto1 3000
    /usr/bin/openssl rand -base64 -out kinto2 3000
    /usr/bin/openssl rand -base64 -out kinto3 3000
    python scripts/upload.py --server=http://localhost:8888/v1 --bucket=services --collection=logs --auth=token:my-secret kinto1 kinto2 kinto3
    python scripts/download.py --server=http://localhost:8888/v1 --bucket=services --collection=logs --auth=token:my-secret -f /tmp
    python scripts/upload.py --server=http://localhost:8888/v1 --keep-filenames --bucket=services --collection=app --auth=token:my-secret kinto1 kinto2 kinto3
    python scripts/download.py --server=http://localhost:8888/v1 --bucket=services --collection=app --auth=token:my-secret -f /tmp/kintoapp
    /bin/rm kinto1 kinto2 kinto3
    /bin/rm -rf /tmp/kinto*
deps = kinto-http

[testenv:flake8]
commands = flake8 kinto_attachment
deps =
    flake8

[flake8]
max-line-length = 99
{'fraction_non_alphanumeric': 0.13109847351092488, 'fraction_numerical': 0.04010775217000898, 'mean_word_length': 3.7404255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4161662', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1115, 'n_words': 251}