beanbag-docutils>=1.7
Sphinx>=1.8.5
sphinx-rtd-theme

# Needed until beanbag-docutils adds support for Django 3.0+.
Django>=1.6,<2.2.999

beanbag-docutils>=1.7
Sphinx>=1.8.5,<1.999; python_version <= '2.7'
Sphinx>=3.1.2; python_version >= '3.6'
sphinx-rtd-theme

# Needed until beanbag-docutils adds support for Django 3.0+.
Django>=1.6,<2.2.999

Select a newer version of Sphinx on Python 3, and cap the Python 2 version.
Select a newer version of Sphinx on Python 3, and cap the Python 2 version.

Modern Sphinx doesn't work on Python 2.x, and old Sphinx doesn't work
particularly well on Python 3. This updates the doc dependencies to
select a suitable minimum/maximum version for the current version of
Python.
