Skip to content

Commit

Permalink
Merge pull request #669 from opensafely-core/revert-635-pydantic-v2
Browse files Browse the repository at this point in the history
Revert "Bump pipeline to v2023.08.21.134839 (pydantic v2)"
  • Loading branch information
bloodearnest authored Nov 1, 2023
2 parents 54e1d51 + d4ca77e commit cb5c012
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 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.model_dump(exclude_unset=True),
outputs=action_spec.outputs.dict(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].21.134839",
"opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].09.102223",
"ruyaml",
"requests",
"opentelemetry-exporter-otlp-proto-http",
Expand Down
10 changes: 2 additions & 8 deletions requirements.prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# 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 @@ -20,7 +18,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].21.134839
opensafely-pipeline @ git+https://github.com/opensafely-core/[email protected].09.102223
# via opensafely-jobrunner (pyproject.toml)
opentelemetry-api==1.12.0
# via
Expand All @@ -38,10 +36,8 @@ protobuf==3.20.2
# via
# googleapis-common-protos
# opentelemetry-proto
pydantic==2.2.1
pydantic==1.10.12
# via opensafely-pipeline
pydantic-core==2.6.1
# via pydantic
requests==2.25.0
# via
# opensafely-jobrunner (pyproject.toml)
Expand All @@ -52,10 +48,8 @@ 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, deadline=500)
@settings(max_examples=500)
class LRUDictValidation(RuleBasedStateMachine):
capacity = 5
keys = st.integers(min_value=1)
Expand Down

0 comments on commit cb5c012

Please sign in to comment.