Skip to content

Commit

Permalink
Merge pull request #635 from opensafely-core/pydantic-v2
Browse files Browse the repository at this point in the history
Bump pipeline to v2023.08.21.134839 (pydantic v2)
  • Loading branch information
bloodearnest authored Oct 31, 2023
2 parents 9241371 + efdf1ec commit 54e1d51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jobrunner/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_action_specification(config, action_id, using_dummy_data_backend=False):
return ActionSpecification(
run=run_command,
needs=action_spec.needs,
outputs=action_spec.outputs.dict(exclude_unset=True),
outputs=action_spec.outputs.model_dump(exclude_unset=True),
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].09.102223",
"opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].21.134839",
"ruyaml",
"requests",
"opentelemetry-exporter-otlp-proto-http",
Expand Down
10 changes: 8 additions & 2 deletions requirements.prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# pip-compile --allow-unsafe --output-file=requirements.prod.txt pyproject.toml
#
annotated-types==0.5.0
# via pydantic
backoff==2.1.2
# via opentelemetry-exporter-otlp-proto-http
certifi==2020.11.8
Expand All @@ -18,7 +20,7 @@ googleapis-common-protos==1.56.4
# via opentelemetry-exporter-otlp-proto-http
idna==2.10
# via requests
opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].09.102223
opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].21.134839
# via opensafely-jobrunner (pyproject.toml)
opentelemetry-api==1.12.0
# via
Expand All @@ -36,8 +38,10 @@ protobuf==3.20.2
# via
# googleapis-common-protos
# opentelemetry-proto
pydantic==1.10.12
pydantic==2.2.1
# via opensafely-pipeline
pydantic-core==2.6.1
# via pydantic
requests==2.25.0
# via
# opensafely-jobrunner (pyproject.toml)
Expand All @@ -48,8 +52,10 @@ ruyaml==0.91.0
# opensafely-pipeline
typing-extensions==4.7.1
# via
# annotated-types
# opentelemetry-sdk
# pydantic
# pydantic-core
urllib3==1.26.5
# via requests
wrapt==1.14.1
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/test_lru_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from jobrunner.lib.lru_dict import LRUDict


@settings(max_examples=500)
@settings(max_examples=500, deadline=500)
class LRUDictValidation(RuleBasedStateMachine):
capacity = 5
keys = st.integers(min_value=1)
Expand Down

0 comments on commit 54e1d51

Please sign in to comment.