Skip to content

Commit

Permalink
📝 readmydocs updated config (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki authored Jul 7, 2023
2 parents 0124b3c + 94ce41e commit 00a5254
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 31 deletions.
22 changes: 0 additions & 22 deletions .github/.readthedocs.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.11"
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs

sphinx:
configuration: docs/conf.py
31 changes: 22 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.poetry]
name = "iamlistening"
version = "0.2.7"
Expand All @@ -23,13 +28,30 @@ telethon= "^1.28.5"
py-cord= "^2.4.1"
simplematrixbotlib= "^2.9.0"


[tool.poetry.dev-dependencies]
python-semantic-release = "^7.34.3"


[tool.poetry.group.test.dependencies]
pytest = "^7.0"
pytest-cov = "^4.1"
pytest-asyncio = "^0.21.0"
pytest-mock = "^3.11.1"


[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
sphinx = "^6.0.0"
sphinx_bootstrap_theme = "^0.8.1"
sphinx-autoapi = "^2.1.1"
sphinx-copybutton= "^0.5.2"
myst-parser = "^2.0.0"
sphinx-notfound-page = "*"


[tool.pytest.ini_options]
pythonpath = "."
testpaths = "tests"
Expand All @@ -45,15 +67,6 @@ omit = [
"*/config.py"
]

[tool.poetry.group.docs.dependencies]
sphinx = "^7.0.1"
sphinx-autoapi = "^2.1.0"
furo = "^2023.5.20"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
version_variable = ["pyproject.toml:version","iamlistening/__init__.py:__version__"]
branch = "main"
Expand Down

0 comments on commit 00a5254

Please sign in to comment.