From b7e256bb493342bbe1418784c044e5d1cf027b54 Mon Sep 17 00:00:00 2001 From: ramajoballester Date: Tue, 19 Mar 2024 16:14:42 +0100 Subject: [PATCH] Separate RTD dependencies from package dependencies --- .readthedocs.yaml | 11 ++++++----- pyproject.toml | 11 +++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b7c8e4a..c2195bf 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -13,13 +13,14 @@ python: install: - method: pip path: . - # extra_requirements: - # - docs + extra_requirements: + - rtd + - docs # Install with no dependencies - no_deps: true + # no_deps: true - install: - - requirements: docs/requirements.txt + # install: + # - requirements: docs/requirements.txt sphinx: configuration: docs/source/conf.py diff --git a/pyproject.toml b/pyproject.toml index 8032f79..7203d24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,14 +39,17 @@ keywords = [ dependencies = [ 'openai-whisper', 'montreal-forced-aligner', - 'ipykernel', # 'PyQt5', - 'pyqt' + # 'pyqt' ] [project.optional-dependencies] dev = [ - + 'ipykernel', + 'pyqt' +] +rtd = [ + 'PyQt5', ] docs = [ 'sphinx==7.1.2', @@ -57,7 +60,7 @@ docs = [ 'numpydoc==1.5.0', 'myst-parser==2.0.0', ] -full = ['pyaligner[docs]'] +full = ['pyaligner[dev,docs]'] [tool.setuptools.packages] find = {namespaces = false, exclude = ['docs']}