Skip to content

Commit b52b8ab

Browse files
committed
Move doc, test requirements out of pyproject.toml
PyPI will not allow optional dependency groups containing direct references (i.e. github links) We should be able to - get sphinx_parsed_codeblock onto PyPI to solve the docs issue - get pychop (and mantid) out of the main test suite to solve test issue but neither is a priority for first rough PyPI release, so let's use the hack-y requirements option for now.
1 parent a90af5e commit b52b8ab

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.github/workflows/build_docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
shell: bash -l {0}
3636
run: |
3737
python -m pip install --upgrade pip
38-
python -m pip install .[docs]
38+
python -m pip install .
39+
python -m pip install -r docs/requirements.txt
3940
4041
- name: Build docs HTML
4142
working-directory: ./docs

docs/requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
inline_reference
2+
numpydoc >= 1.8.0
3+
packaging
4+
sphinx >= 8.1.3
5+
sphinx_parsed_codeblock @ git+https://github.com/RastislavTuranyi/sphinx_parsed_codeblock.git
6+
sphinx_rtd_theme >= 3.0.2

pyproject.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ dev = [
4545
"Pint >= 0.24.3",
4646
"jaxtyping >= 0.2.34"
4747
]
48-
test = [
49-
"pytest >= 8.3.2",
50-
"mantid >= 6.14.0",
51-
"pychop @ git+https://github.com/mducle/pychop.git",
52-
"more_itertools >= 10.5.0",
53-
"pytest-mock >= 3.14.0",
54-
]
55-
docs = [
56-
"sphinx >= 8.1.3",
57-
"numpydoc >= 1.8.0",
58-
"packaging",
59-
"inline_reference",
60-
"sphinx_parsed_codeblock @ git+https://github.com/RastislavTuranyi/sphinx_parsed_codeblock.git",
61-
"sphinx_rtd_theme >= 3.0.2",
62-
]
6348

6449
[project.urls]
6550
Repository = "https://github.com/pace-neutrons/resins"

tests/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mantid >= 6.14.0
2+
more_itertools >= 10.5.0
3+
pytest >= 8.3.2
4+
pychop @ git+https://github.com/mducle/pychop.git
5+
pytest-mock >= 3.14.0

0 commit comments

Comments
 (0)