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 48ff617
Show file tree
Hide file tree
Showing 5 changed files with 462 additions and 66 deletions.
15 changes: 14 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ 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
# Export dependencies to a requirements.txt file in the docs/ directory
- poetry export -f requirements.txt --output docs/requirements.txt --with test,dev,ci,docs
# post_install:
# # Install dependencies
# - poetry install --with test,dev,ci,docs

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
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: 0 additions & 2 deletions docs/requirements.txt → docs/requirements.bak
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ sphinx_celery>=2.0.0
Sphinx==5.3.0
sphinx-testing~=1.0.1
sphinx-click==4.4.0
pylibmc==1.6.3
memcached==1.59
Loading

0 comments on commit 48ff617

Please sign in to comment.