-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
92 lines (85 loc) · 2.21 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# Setup and manage Python virtual environments that allow users to develop and
# test the surmise Python package.
#
[tox]
requires = tox>=4
env_list =
[testenv]
description = Run the surmise full test suite
passenv = COVERAGE_FILE
setenv =
COV_FILE = {env:COVERAGE_FILE:.coverage}
DOC_ROOT = docs
deps =
Cython
pytest
coverage:
pytest-cov
scikit-learn
usedevelop =
coverage: true
nocoverage: false
commands =
nocoverage: python -m pytest
coverage: python -m pytest --cov
[testenv:oldest]
# IMPORTANT
# Please make sure that all changes made here are consistent with the
# dependence/version information provided in pyproject.toml.
#
# Use the oldest Python version allowed by package so that the package offers
# the most flexibility to users. Note that we are, therefore, not ensuring that
# the oldest packages are compatible with the newest Python version supported by
# the package.
description = Install all dependencies at oldest allowable version & test
basepython = py39
deps =
# Build system
setuptools==68.2.2
setuptools_scm[toml]==6.0
numpy==1.22.0
cython==3.0.10
wheel
# Execution
dill==0.3.8
scipy==1.9.0
# Testing
pytest
# Optional
scikit-learn==1.2.0
usedevelop = true
commands = python -m pytest
[testenv:report]
description = Generate coverage report as HTML
depends = coverage
deps = coverage
skip_install = true
commands =
coverage html --data-file={env:COV_FILE}
[testenv:check]
# This should only *report* issues. It should *not* alter any files.
description = Run code quality checks
deps =
flake8
commands =
flake8 --config={toxinidir}/.flake8
[testenv:html]
description = Generate surmise's documentation as HTML
deps =
sphinx
sphinxcontrib-bibtex
sphinx_rtd_theme
commands =
sphinx-build --version
sphinx-build -E --fail-on-warning -b html {env:DOC_ROOT} {env:DOC_ROOT}/build_html
[testenv:pdf]
description = Generate surmise's documentation as PDF file
deps =
sphinx
sphinxcontrib-bibtex
allowlist_externals = make
commands =
sphinx-build --version
sphinx-build -E --fail-on-warning -b latex {env:DOC_ROOT} {env:DOC_ROOT}/build_pdf
make -C {env:DOC_ROOT}/build_pdf