File tree Expand file tree Collapse file tree 6 files changed +26
-17
lines changed
Expand file tree Collapse file tree 6 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ python:
2323 - method : pip
2424 path : .
2525 extra_requirements :
26- - dev
26+ - docs
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ dir=$(dirname "$0")
44cd " $dir /.."
55
66exitCode=0
7- uv run ruff check --fix
7+ uv run --group dev ruff check --fix
88code=$? ; test $code -eq 0 || exitCode=$code
9- uv run ruff format
9+ uv run --group dev ruff format
1010code=$? ; test $code -eq 0 || exitCode=$code
11- uv run validate-pyproject pyproject.toml
11+ uv run --group dev validate-pyproject pyproject.toml
1212code=$? ; test $code -eq 0 || exitCode=$code
1313exit $exitCode
Original file line number Diff line number Diff line change 4747 echo " -------------------------------------"
4848 if [ $# -gt 0 ]
4949 then
50- uv run python -m pytest -p no:faulthandler $flag --java $java $@
50+ uv run --group dev python -m pytest -p no:faulthandler $flag --java $java $@
5151 else
52- uv run python -m pytest -p no:faulthandler $flag --java $java tests
52+ uv run --group dev python -m pytest -p no:faulthandler $flag --java $java tests
5353 fi
5454 code=$?
5555 if [ $code -eq 0 ]
Original file line number Diff line number Diff line change @@ -29,13 +29,7 @@ If you are testing a project that *uses* `pyimagej` and need to see how changes
2929
3030PyImageJ documentation is built as a [ Sphinx] ( https://www.sphinx-doc.org/en/master/ ) -built [ ReadTheDocs] ( https://about.readthedocs.com/ ) site.
3131
32- To build the documentation, ** you must create a ` uv ` virtual environment** with the additional development dependencies:
33-
34- ``` bash
35- uv pip install -e " .[dev]"
36- ```
37-
38- Then, you can either use the documentation's own ` Makefile ` in the ` /docs ` directory:
32+ You can either use the documentation's own ` Makefile ` in the ` /docs ` directory:
3933
4034``` bash
4135make html
Original file line number Diff line number Diff line change 44# You can set these variables from the command line, and also
55# from the environment for the first two.
66SPHINXOPTS ?=
7- SPHINXBUILD ?= uv run sphinx-build
7+ SPHINXBUILD ?= uv run --group docs sphinx-build
88SOURCEDIR = .
99BUILDDIR = _build
1010
Original file line number Diff line number Diff line change @@ -43,19 +43,23 @@ dependencies = [
4343 " xarray" ,
4444]
4545
46- [project . optional-dependencies ]
46+ [dependency-groups ]
4747# Development tools
4848dev = [
4949 " build" ,
50- " myst-nb" ,
5150 " pre-commit" ,
5251 " pytest" ,
5352 " ruff" ,
53+ " validate-pyproject[all]" ,
54+ ]
55+ # Local ReadTheDocs building
56+ # NOTE: duplicated in project.optional-dependencies
57+ docs = [
58+ " myst-nb" ,
5459 " sphinx" ,
5560 " sphinx-copybutton" ,
5661 " sphinx_rtd_theme" ,
5762 " readthedocs-sphinx-search" ,
58- " validate-pyproject[all]" ,
5963]
6064# Matplotlib display backend
6165matplotlib = [
@@ -70,6 +74,17 @@ notebooks = [
7074 " scikit-image" ,
7175]
7276
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+
7388[project .scripts ]
7489imagej = " imagej:imagej_main"
7590
You can’t perform that action at this time.
0 commit comments