forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.embedapi.ini
44 lines (43 loc) · 1.78 KB
/
tox.embedapi.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
[tox]
# NOTE: Sphinx 3.5 and 4.x < 4.2 fails with Python 3.10 because of a typing issue
#
# NOTE: Sphinx 1.8 and 2.0 are not tested anymore because of some
# incompatibilities with Python 3.10 and sphinxcontrib-bibtex
envlist = sphinx-{21,22,23,24,30,31,32,33,34,42,43,44,45,50,latest,24-docutils-016,34-docutils-017}
[testenv]
description = run test suite for the EmbedAPIv3
install_command =
# Install requirements in multiple steps because we don't want to install
# Sphinx from `requirements/pip.txt` but from the `deps=` field.
/bin/sh -c ' \
cat {toxinidir}/requirements/pip.txt | grep -v "Sphinx" > {toxinidir}/requirements/embedapi.txt; \
sed {toxinidir}/requirements/testing.txt -e "s|pip.txt|embedapi.txt|g" > {toxinidir}/requirements/testing.embedapi.txt; \
pip install -r {toxinidir}/requirements/testing.embedapi.txt; \
pip install $*;' -- {opts} {packages}
deps =
sphinx-21: Sphinx~=2.1.0
sphinx-22: Sphinx~=2.2.0
sphinx-23: Sphinx~=2.3.0
sphinx-24: Sphinx~=2.4.0
sphinx-30: Sphinx~=3.0.0
sphinx-31: Sphinx~=3.1.0
sphinx-32: Sphinx~=3.2.0
sphinx-33: Sphinx~=3.3.0
sphinx-34: Sphinx~=3.4.0
sphinx-42: Sphinx~=4.2.0
sphinx-43: Sphinx~=4.3.0
sphinx-44: Sphinx~=4.4.0
sphinx-45: Sphinx~=4.5.0
sphinx-50: Sphinx~=5.0.0
sphinx-latest: Sphinx
# Keep at least one Sphinx version with docutils 0.16 and 0.17 since the
# HTML generated changes a little between them
sphinx-24-docutils-016: Sphinx~=2.4.0 docutils==0.16
sphinx-34-docutils-017: Sphinx~=3.4.0 docutils==0.17
sphinxcontrib-bibtex~=2.3.0
jinja2<3.1.0
setenv =
DJANGO_SETTINGS_MODULE=readthedocs.settings.test
VIRTUALENV_SETUPTOOLS=58.3.0
changedir = {toxinidir}/readthedocs
commands = pytest -m embed_api {posargs}