Skip to content

Commit

Permalink
Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Oct 19, 2023
1 parent 687fa28 commit 87ebbde
Show file tree
Hide file tree
Showing 5 changed files with 466 additions and 70 deletions.
23 changes: 17 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.12"
python: "3.11"
jobs:
post_create_environment:
# Install poetry
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies
- poetry install --with docs

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand All @@ -25,8 +36,8 @@ sphinx:
# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt
# python:
# install:
# - method: pip
# path: .
# - requirements: docs/requirements.txt
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from sphinx_celery import conf
import os
import sys

# Add the src directory to the PYTHONPATH
sys.path.insert(0, os.path.abspath("../src"))

from sphinx_celery import conf # noqa

globals().update(
conf.build_config(
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Sphinx==5.3.0
sphinx-testing~=1.0.1
sphinx-click==4.4.0
pylibmc==1.6.3
memcached==1.59
memcached==1.59
Loading

0 comments on commit 87ebbde

Please sign in to comment.