-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency pydantic to v2 #5
Conversation
0ab330b
to
f62798a
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
fdb32cb
to
5d94e84
Compare
pydantic v2 introduced breaking change, I will have to look and update the code @DerekRoberts |
@franTarkenton or @conbrad do you have some time to help us and move from pydantic from v1 to v2? |
@mishraomp I can try to carve out some time tomorrow. We've updated this here: bcgov/wps#3028
|
sry... been sick! Just saw this now |
5d94e84
to
d3cc947
Compare
Hey I just had a quick peek at this, it looks like it's failing on trying to build You might need to update your |
Looks like your base image is using poetry 1.2.2: https://github.com/bcgov/quickstart-openshift-backends/actions/runs/6431005121/job/17463035443?pr=5#step:2:724 But your package.lock file states 1.6.1: https://github.com/bcgov/quickstart-openshift-backends/pull/5/files#diff-e5d200106efd0de814d4a9b81892ab2980573c45dd5ff0bfa201c58d9378fc7fL1 |
d3cc947
to
8bb7615
Compare
8bb7615
to
e07c662
Compare
e07c662
to
d1c053e
Compare
This PR contains the following updates:
^1.10.9
->^2.0.0
Release Notes
pydantic/pydantic (pydantic)
v2.4.2
Compare Source
GitHub release
What's Changed
Fixes
models_json_schema
for generic models by @adriangb in #7654New Contributors
v2.4.1
Compare Source
GitHub release
What's Changed
Packaging
Fixes
Any
by @adriangb in #7606v2.4.0
Compare Source
GitHub release
What's Changed
Packaging
New Features
Base64Url
types by @dmontagu in #7286number
tostr
coercion by @lig in #7508field_name
anddata
in all validators if there is data and a field name by @samuelcolvin in #7542BaseModel.model_validate_strings
andTypeAdapter.validate_strings
by @hramezani in #7552plugins
experimental implementation by @lig @samuelcolvin and @Kludex in #6820Changes
model_post_init
in subclass with private attrs by @Viicos in #7302Extra
as deprecated by @disrupted in #7299EncodedStr
a dataclass by @Kludex in #7396annotated_handlers
to be public by @samuelcolvin in #7569Performance
CoreSchema
by @adriangb in #7523CoreSchema
walking by @adriangb in #7528dict.get
anddict.setdefault
with more verbose versions inCoreSchema
building hot paths by @adriangb in #7536CoreSchema
discovery by @adriangb in #7535CoreSchema
validation for faster startup times by @adriangb in #7565Fixes
TypedDict
from grandparent classes by @dmontagu in #7272strict
config overridable in field for Path by @hramezani in #7281ser_json_<timedelta|bytes>
on default inGenerateJsonSchema
by @Kludex in #7269SkipValidation
to referenced schemas by @adriangb in #7381__get_pydantic_core_schema__
signature by @hramezani in #7415TypeAdapter
) by @sydney-runkle in #7435TypeError
onmodel_validator
inwrap
mode by @pmmmwh in #7496repr
work for instances that failed initialization when handlingValidationError
s by @dmontagu in #7439UUID
values havingUUID.version=None
by @lig in #7566__iter__
returning privatecached_property
info by @sydney-runkle in #7570New Contributors
v2.3.0
Compare Source
GitHub release
Field(..., exclude: bool)
docs by @samuelcolvin in #7214Base64Str
andBase64Bytes
by @Kludex in #7192config.defer_build
for serialization first cases by @samuelcolvin in #7024validators.md
to correctvalidate_default
kwarg by @lmmx in #7229tzinfo.fromutc
method forTzInfo
inpydantic-core
by @lig in #7019__get_validators__
by @hramezani in #7197v2.2.1
Compare Source
GitHub release
xfail
ing test for root model extra stopxfail
ing by @dmontagu in #6937v2.2.0
Compare Source
GitHub release
Field.include
by @hramezani in #6852Path
fields by @samuelcolvin in #6903ForwardRef
wrapper for py 3.10.0 (shim until bpo-45166) by @randomir in #6919main
branch for badge links by @Viicos in #6925ser_json_bytes
regarding base64 encoding by @Viicos in #7052@validate_call
to work on async methods by @adriangb in #7046Settings
andSettingsConfigDict
by @JeanArhancet in #7002short_version
and use it in links by @hramezani in #7115RootModel
by @Kludex in #7113Field.exclude
by @Viicos in #7086validate_assignment
to useField.frozen
by @Viicos in #7103_core_utils
by @samuelcolvin in #7040round_trip
in Json type documentation by @jc-louis in #7137v2.1.1
Compare Source
GitHub release
v2.1.0
Compare Source
GitHub release
StringConstraints
for use as Annotated metadata by @adriangb in #6605help(BaseModelSubclass)
raises errors by @hramezani in #6758@model_validator(mode="after")
by @ljodal in #6753contentSchema
keyword for JSON schema by @dmontagu in #6715version_info()
by @samuelcolvin in #6785SkipJsonSchema
annotation by @Kludex in #6653GenericModel
toMOVED_IN_V2
by @adriangb in #6776docs/usage/types/custom.md
by @hramezani in #6803float
->Decimal
coercion precision loss by @adriangb in #6810annotated_types.MaxLen
validator for custom sequence types by @ImogenBits in #6809InstanceOf
by @dmontagu in #6829json_encoders
by @adriangb in #6811WeakValueDictionary
to fix generic memory leak by @dmontagu in #6681config.defer_build
to optionally make model building lazy by @samuelcolvin in #6823UUID
serialization to pydantic-core by @davidhewitt in #6850json_encoders
docs by @adriangb in #6848staticmethod
/classmethod
order with validate_call by @dmontagu in #6686Config
by @samuelcolvin in #6847Field.exclude
takes priority over call-timeinclude/exclude
by @hramezani in #6851GenerateSchema
public by @adriangb in #6737v2.0.3
Compare Source
GitHub release
Field.alias
behavior in Pydantic V2 by @hramezani in #6508alias_priority
by @tpdorsey in #6520pydantic-core
to v2.2.0 by @lig in #6589enum
error type docs by @lig in #6603max_length
for unicode strings by @lig in #6559pydantic.v1
by @tpdorsey in #6604$ref
as an alias by @dmontagu in #6568AnyUrl
etc by @davidhewitt in #6618json_schema_extra
onRootModel
usingField
by @lig in #6622transform
docstring by @StefanBRas in #6649v2.0.2
Compare Source
GitHub release
RootModel
would change the value of__dict__
, #6457 by @dmontaguconstr
documentation, renamed oldregex
to newpattern
, #6452 by @miiliGenerateJsonSchema.generate_definitions
signature, #6436 by @dmontaguSee the full changelog here
v2.0.1
Compare Source
GitHub release
First patch release of Pydantic V2
setattr
(i.e.m.some_extra_field = 'extra_value'
)are added to
.model_extra
ifmodel_config
extra='allowed'
. Fixed #6333, #6365 by @aaraneySee the full changelog here
v2.0
Compare Source
GitHub release
Field.include
by @hramezani in #6852Path
fields by @samuelcolvin in #6903ForwardRef
wrapper for py 3.10.0 (shim until bpo-45166) by @randomir in #6919main
branch for badge links by @Viicos in #6925ser_json_bytes
regarding base64 encoding by @Viicos in #7052@validate_call
to work on async methods by @adriangb in #7046Settings
andSettingsConfigDict
by @JeanArhancet in #7002short_version
and use it in links by @hramezani in #7115RootModel
by @Kludex in #7113Field.exclude
by @Viicos in #7086validate_assignment
to useField.frozen
by @Viicos in #7103_core_utils
by @samuelcolvin in #7040round_trip
in Json type documentation by @jc-louis in #7137Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are promoted to: