Skip to content

Commit fa805fd

Browse files
committed
Move dev dependencies into a PEP 735 dependency group
Replaces requirements_dev.txt with a [dependency-groups] dev table in pyproject.toml, and updates CI to install via `pip install --group dev`.
1 parent 66e31cb commit fa805fd

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.github/workflows/python.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install dependencies
4242
run: |
4343
python -m pip install --upgrade pip
44-
pip install -r requirements_dev.txt dist/*.whl
44+
pip install --group dev dist/*.whl
4545
- name: Test with pytest
4646
run: |
4747
pytest tests

‎pyproject.toml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ Bug-Tracker = "https://github.com/DiamondLightSource/python-workflows/issues"
3939
[project.optional-dependencies]
4040
prometheus = ["prometheus-client"]
4141

42+
[dependency-groups]
43+
dev = [
44+
"prometheus-client",
45+
"pytest",
46+
"pytest-cov",
47+
"pytest-mock",
48+
"pytest-timeout",
49+
"websocket-client",
50+
]
51+
4252
[project.entry-points."libtbx.dispatcher.script"]
4353
"workflows.validate_recipe" = "workflows.validate_recipe"
4454

‎requirements_dev.txt‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)