From f9b151e11634b16e6a42d5445da23735415872e0 Mon Sep 17 00:00:00 2001 From: Leopold Talirz Date: Mon, 29 Jan 2024 09:40:39 +0100 Subject: [PATCH] fix readthedocs build (#43) new configuration format requirements --- .readthedocs.yml | 6 +++++- docs/source/conf.py | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 65c3996..eaf0672 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,7 +1,11 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.12" + python: - version: "3.10" install: - method: pip path: . diff --git a/docs/source/conf.py b/docs/source/conf.py index f0a5672..28e15a2 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,13 +15,15 @@ import time from aiida import load_profile +from aiida.storage.sqlite_temp import SqliteTempBackend import aiida_diff # -- AiiDA-related setup -------------------------------------------------- # Load AiiDA profile -load_profile() +temp_profile = SqliteTempBackend.create_profile("temp-profile") +load_profile(temp_profile, allow_switch=True) # -- General configuration ------------------------------------------------