forked from sunpy/drms
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
67 lines (64 loc) · 2.04 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
[tox]
min_version = 4.0
envlist =
py{39,310,311}{,-online,-sunpy,-oldestdeps}
build_docs
codestyle
requires =
tox-pypi-filter
[testenv]
pypi_filter = https://raw.githubusercontent.com/sunpy/sunpy/main/.test_package_pins.txt
# Run the tests in a temporary directory to make sure that we don't import drms from the source tree
changedir = .tmp/{envname}
description =
run tests
online: that require remote data
sunpy: run the sunpy jsoc tests to ensure we dont break them
setenv =
MPLBACKEND = agg
COLUMNS = 180
PYTEST_COMMAND = pytest -vvv -s -ra --pyargs drms --cov-report=xml --cov=drms --cov-config={toxinidir}/setup.cfg {toxinidir}/docs
build_docs,online: HOME = {envtmpdir}
JSOC_EMAIL = [email protected]
passenv =
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
CIRCLECI
deps =
pytest-xdist
pytest-timeout
# Oldest deps we pin against
oldestdeps: pandas<2.0
# These are specific extras we use to run the sunpy tests.
sunpy: git+https://github.com/sunpy/sunpy
sunpy: beautifulsoup4
sunpy: pytest-mock
sunpy: python-dateutil
sunpy: scipy
sunpy: tqdm
sunpy: zeep
extras =
dev
commands =
pip freeze --all --no-input
sunpy: pytest -vvv -s -ra --pyargs sunpy.net.jsoc --timeout=120 --remote-data=any {posargs}
!online: {env:PYTEST_COMMAND} {posargs}
online: {env:PYTEST_COMMAND} --timeout=120 --remote-data=any {posargs}
[testenv:build_docs]
changedir = docs
description = Invoke sphinx-build to build the HTML docs
extras = dev
commands =
pip freeze --all --no-input
sphinx-build -j 1 --color -W --keep-going -b html -d _build/.doctrees . _build/html {posargs}
python -c 'import pathlib; print("Documentation available under file://\{0\}".format(pathlib.Path(r"{toxinidir}") / "docs" / "_build" / "html"/ "index.html"))'
[testenv:codestyle]
pypi_filter =
skip_install = true
description = Run all style and file checks with pre-commit
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run --verbose --all-files --show-diff-on-failure