Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt dist/*.whl
pip install --group dev dist/*.whl
- name: Test with pytest
run: |
pytest tests
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
license = { text = "BSD-3-Clause" }
requires-python = ">=3.10"
requires-python = ">=3.12"
dependencies = [
"bidict",
"pika",
Expand All @@ -39,6 +39,16 @@ Bug-Tracker = "https://github.com/DiamondLightSource/python-workflows/issues"
[project.optional-dependencies]
prometheus = ["prometheus-client"]

[dependency-groups]
dev = [
"prometheus-client",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-timeout",
"websocket-client",
]

[project.entry-points."libtbx.dispatcher.script"]
"workflows.validate_recipe" = "workflows.validate_recipe"

Expand Down
9 changes: 0 additions & 9 deletions requirements_dev.txt

This file was deleted.

6 changes: 6 additions & 0 deletions src/workflows/frontend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

basestring = (str, bytes)

# Pin the fork start method: service instances carry pipes and transport
# state that aren't pickleable, so spawn/forkserver (the 3.14+ default on
# Linux) can't serialize them. fork is deprecated upstream and will
# eventually need a real refactor.
multiprocessing.set_start_method("fork", force=True)


class Frontend:
"""The frontend class encapsulates the actual service. It controls the
Expand Down
Loading