代码拉取完成,页面将自动刷新
[tox]
# Running plain tox will run the default environment (testenv) with the default
# python3 interpreter of the user.
envlist=testenv
[testenv]
deps=pytest
coverage
passenv=
PYTHON_ISAL_LINK_DYNAMIC
commands =
# Create HTML coverage report for humans and xml coverage report for external services.
coverage run --branch --source=isal -m py.test tests
# Ignore errors during report generation. Pypy does not generate proper coverage reports.
coverage html -i
coverage xml -i
[testenv:coverage]
# Separate test environment for cython coverage.
deps=coverage[toml]
cython
pytest
passenv=
PYTHON_ISAL_LINK_DYNAMIC
setenv=
CYTHON_COVERAGE=true
commands =
# Create HTML coverage report for humans and xml coverage report for external services.
coverage run --source=isal -m py.test tests
coverage html
coverage xml
[testenv:compliance]
deps=pytest
commands=
pytest -v tests/test_zlib_compliance.py tests/test_gzip_compliance.py
[testenv:compatibility]
deps=pytest
commands=
pytest tests/test_isal.py
[testenv:lint]
deps=flake8
flake8-import-order
mypy
pytest
skip_install=True
commands =
flake8 src tests setup.py benchmark.py
mypy src/ tests
[testenv:twine_check]
deps=wheel
setuptools
twine
cython
skip_install=True
commands =
python setup.py sdist bdist_wheel
twine check dist/*
# Documentation should build on python version 3
[testenv:docs]
deps=-r requirements-docs.txt
allowlist_externals=bash
mkdir
rm
commands=
python --version
# PLACEHOLDER: create _static folder, since we do not have static files in
# our project yet
mkdir -p docs/_static
# Remove docs/_build so all documentation has to be build again
# This is necessary when using --keep-going on sphinx-build
rm -rf docs/_build
# Test if documentation can be build without errors and warnings
# -a rebuilds everything. -W turns warnings into errors.
# --keep-going makes sure we see al the errors that are there in one go.
sphinx-build -a -W -n --keep-going docs docs/_build
# Test if version correctly shows up in documentation
bash -c 'set -eux; grep -r "$(python setup.py --version)" docs/_build/'
[testenv:benchmark-all]
deps=
commands=
python ./benchmark.py --all
[testenv:benchmark-functions]
deps=
commands=
python ./benchmark.py --functions
[testenv:benchmark-gzip]
deps=
commands=
python ./benchmark.py --gzip
[testenv:benchmark-checksums]
deps=
commands=
python ./benchmark.py --checksums
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。