Skip to content

Commit

Permalink
Avoid installing Django 4.0 on Read The Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmcnulty committed Mar 16, 2022
1 parent 781e3f8 commit d549766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# django-tables2 setup.py pulls in Django>=1.11
# Ensure we don't install too new of a version when building docs.
Django<4.0
celery>=5.2.1
mock==1.0.1
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ deps = Django>=3.2,<4.0
setenv = {[testenv]setenv}
commands = django-admin makemigrations --dry-run --check

# Try to mimick Read The Docs' environment (Python 3.7, no explicit Django version)
[testenv:docs]
basepython = python3.10
deps = Sphinx>=1.7,<1.8
Django>=3.2,<4.0
basepython = python3.7
deps = Sphinx>=1.8,<1.9
{[default]deps}
commands =
{envbindir}/sphinx-build -a -n -W -b html -d docs/_build/doctrees docs docs/_build/html
Expand Down

0 comments on commit d549766

Please sign in to comment.