<commit_before>[tox]
envlist = py{27,34,35},pylint,docs
skip_missing_interpreters = True


# NOTE: Don't use 'deps = .[test,docs]' tox option since we want Tox to install
# the package from sdist first

[testenv]
commands =
# install testing requirements
    pip install .[test]
# confirm that items checked into git are in sdist
    check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
    python setup.py check --metadata --restructuredtext --strict
# run tests
    python resolwe_api/tests/test_resolwe.py

[testenv:pylint]
basepython=python
commands=
# install testing requirements
    pip install .[test]
# run pylint
    pylint --rcfile=.pylintrc resolwe_api

[testenv:docs]
basepython=python
commands=
# install documentation requirements
    pip install .[docs]
# build documentation
    python setup.py build_sphinx<commit_msg>Put packaging tests in separate testenv<commit_after>[tox]
envlist = py{27,34,35},pylint,docs,packaging
skip_missing_interpreters = True


# NOTE: Don't use 'deps = .[test,docs]' tox option since we want Tox to install
# the package from sdist first

[testenv]
commands =
# install testing requirements
    pip install .[test]
# run tests
    python resolwe_api/tests/test_resolwe.py

[testenv:pylint]
basepython=python
commands=
# install testing requirements
    pip install .[test]
# run pylint
    pylint --rcfile=.pylintrc resolwe_api

[testenv:docs]
basepython=python
commands=
# install documentation requirements
    pip install .[docs]
# build documentation
    python setup.py build_sphinx

[testenv:packaging]
commands =
# install testing requirements
    pip install .[test]
# confirm that items checked into git are in sdist
    check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
    python setup.py check --metadata --restructuredtext --strict
{'fraction_non_alphanumeric': 0.07943187795896896, 'fraction_numerical': 0.00631246712256707, 'mean_word_length': 4.52906976744186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6022354', 'n_tokens_mistral': 587, 'n_tokens_neox': 562, 'n_words': 194}