Merge pull request #228 from Dresdn/Dresdn/issue-93

Update Read the Docs build
This commit is contained in:
Mike 2022-08-12 18:06:15 -07:00 committed by GitHub
commit 1a9e442567
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 194 additions and 353 deletions

24
.readthedocs.yml Normal file
View file

@ -0,0 +1,24 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: '3.9'
jobs:
# See https://github.com/readthedocs/readthedocs.org/issues/4912
pre_create_environment:
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
- poetry config virtualenvs.create false
post_install:
- poetry install -E docs --no-dev
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
fail_on_warning: true

502
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -56,11 +56,16 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.7"
django = ">=2.2, <4.1"
django-jsonfield-backport = "^1.0.4"
[tool.poetry.dev-dependencies]
django = "^3.2"
# Docs extra:
sphinx = { version = "^5.0", optional = true }
sphinx-autodoc-typehints = { version = "^1.12", optional = true }
m2r2 = { version = "^0.3", optional = true }
tomlkit = { version = "^0.11", optional = true }
[tool.poetry.dev-dependencies]
mypy = "^0.971"
wemake-python-styleguide = "^0.16"
@ -73,12 +78,16 @@ pytest = "^6.2"
pytest-cov = "^3.0"
pytest-randomly = "^3.12"
sphinx = "^5.1"
sphinx-autodoc-typehints = "^1.19"
doc8 = "^1.0"
m2r2 = "^0.3"
tomlkit = "^0.11"
pytest-pythonpath = "^0.7.4"
pytest-django = "^4.5.2"
black = "^22.6"
hypothesis = "^6.54.2"
[tool.poetry.extras]
docs = [
"sphinx",
"sphinx-autodoc-typehints",
"m2r2",
"tomlkit",
]