Skip to content

Commit 32e1361

Browse files
committed
pyproject: Remove project.optional-depencencies
Instead we handle with a post-install in the readthedocs.yaml
1 parent 357bfed commit 32e1361

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

.readthedocs.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
# Required
66
version: 2
77
build:
8-
os: ubuntu-22.04
8+
os: ubuntu-lts-latest
99
tools:
10-
python: "3.11"
10+
python: "3.12"
11+
jobs:
12+
post-install:
13+
- python -m pip --version
14+
- python -m pip install -e --group docs
1115

1216
# Build documentation in the docs/ directory with Sphinx
1317
sphinx:
@@ -16,11 +20,3 @@ sphinx:
1620
# If using Sphinx, optionally build your docs in additional formats such as PDF
1721
# formats:
1822
# - pdf
19-
20-
# Optionally declare the Python requirements required to build your docs
21-
python:
22-
install:
23-
- method: pip
24-
path: .
25-
extra_requirements:
26-
- docs

pyproject.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dev = [
5353
"validate-pyproject[all]",
5454
]
5555
# Local ReadTheDocs building
56-
# NOTE: duplicated in project.optional-dependencies
5756
docs = [
5857
"myst-nb",
5958
"sphinx",
@@ -74,17 +73,6 @@ notebooks = [
7473
"scikit-image",
7574
]
7675

77-
# Remote ReadTheDocs building
78-
# NOTE: duplicated in dependency-groups
79-
[project.optional-dependencies]
80-
docs = [
81-
"myst-nb",
82-
"sphinx",
83-
"sphinx-copybutton",
84-
"sphinx_rtd_theme",
85-
"readthedocs-sphinx-search",
86-
]
87-
8876
[project.scripts]
8977
imagej = "imagej:imagej_main"
9078

0 commit comments

Comments
 (0)