Skip to content

Commit f338975

Browse files
authored
Remove Django pinning in doc requirements. (#1050)
* Remove Django pinning in doc requirements. This will fix RTD installing conflicting Django versions. * Update Python version. * Install as an editable. * Use up-to-date format for readthedocs config file.
1 parent 2909e55 commit f338975

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.readthedocs.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1-
# .readthedocs.yml
1+
# .readthedocs.yaml
22
# Read the Docs configuration file
33
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
44

55
# Required
66
version: 2
77

8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.9"
13+
# You can also specify other tool versions:
14+
# nodejs: "16"
15+
# rust: "1.55"
16+
# golang: "1.17"
17+
818
# Build documentation in the docs/ directory with Sphinx
919
sphinx:
10-
configuration: docs/conf.py
20+
configuration: docs/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
# formats:
24+
# - pdf
1125

26+
# Optionally declare the Python requirements required to build your docs
1227
python:
13-
version: 3.7
14-
install:
15-
- requirements: docs/requirements.txt
28+
install:
29+
- requirements: docs/requirements.txt

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Django>=3.0,<3.1
1+
Django
22
oauthlib>=3.1.0
33
m2r>=0.2.1
44
mistune<2
5-
.
5+
-e .

0 commit comments

Comments
 (0)