File: tox.ini

package info (click to toggle)
reproject 0.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,024 kB
  • sloc: python: 4,749; ansic: 1,022; makefile: 114
file content (80 lines) | stat: -rw-r--r-- 2,685 bytes parent folder | download
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
[tox]
envlist =
    py{310,311,312}-{test}{,-oldestdeps,-numpy121}
    build_docs
    codestyle
isolated_build = True

[testenv]
whitelist_externals =
    geos-config
passenv =
    SSL_CERT_FILE
setenv =
    HOME = {envtmpdir}
    MPLBACKEND = Agg
    PYTEST_COMMAND = pytest --arraydiff --arraydiff-default-format=fits --pyargs reproject --cov reproject --cov-config={toxinidir}/pyproject.toml {toxinidir}/docs --remote-data
    devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
changedir =
    .tmp/{envname}
deps =
    numpy121: numpy==1.21.*

    oldestdeps: numpy==1.23.*
    oldestdeps: astropy==5.0.*
    oldestdeps: astropy-healpix==1.0.*
    oldestdeps: scipy==1.9.*
    oldestdeps: dask==2021.8.*

    devdeps: numpy>=0.0.dev0
    devdeps: pyerfa>=0.0.dev0
    devdeps: scipy>=0.0.dev0
    devdeps: astropy>=0.0.dev0
    devdeps: astropy-healpix>=0.0.dev0
    # For now we don't test with asdf dev due to this issue: https://github.com/asdf-format/asdf/issues/1811
    #devdeps: asdf @ git+https://github.com/asdf-format/asdf.git
    #devdeps: asdf-astropy @ git+https://github.com/astropy/asdf-astropy.git
    devdeps: gwcs @ git+https://github.com/spacetelescope/gwcs.git
    devdeps: sunpy[map] @ git+https://github.com/sunpy/sunpy.git
    devdeps: zarr<3

extras =
    test
    # Don't run the more complex tests on oldestdeps because it pulls in a nest
    # web of dependencies much newer than our mins
    !oldestdeps-!devdeps: testall
install_command =
    !devdeps: python -I -m pip install {opts} {packages}
    devdeps: python -I -m pip install {opts} {packages} --pre
commands =
    pip freeze
    !oldestdeps: {env:PYTEST_COMMAND} {posargs}
    oldestdeps: {env:PYTEST_COMMAND} -W ignore::RuntimeWarning {posargs}
    # Clear the download cache from the .tox directory - this is done to
    # avoid issues in the continuous integration when uploading results
    python -c 'from astropy.utils.data import clear_download_cache; clear_download_cache()'

[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
    pip freeze
    sphinx-build -W -b html . _build/html

[testenv:linkcheck]
changedir = docs
description = check the links in the HTML docs
extras = docs
commands =
    pip freeze
    sphinx-build -W -b linkcheck . _build/html

[testenv:codestyle]
skip_install = true
description = Run all style and file checks with pre-commit
deps =
    pre-commit
commands =
    pre-commit install-hooks
    pre-commit run --color always --all-files --show-diff-on-failure