Skip to content
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

Update odmantic requirement from <0.10.0,>=0.9.0 to >=0.9.0,<1.1.0 #456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2024

Updates the requirements on odmantic to permit the latest version.

Release notes

Sourced from odmantic's releases.

v1.0.0

I'm excited to announce ODMantic v1.0.0, with Pydantic v2 support! 🎉

This release brings a range of changes that are aligned with the new Pydantic architecture. Keeping a maintainable and healthy codebase was especially important. Thus from now on, ODMantic will not support Python 3.7, Pydantic V1, and Motor 2.x anymore.

Overall, integrating with Pydantic v2 brings around 30% performance improvements on common operations. ⚡️⚡️⚡️

We have a lot of room to improve the performance further now that we only support Pydantic v2. There is also a 300% 👀 improvement on the bulk saves crafted by @​tiangolo that will be merged soon! 🚀

Special thanks to @​tiangolo for his help on this release and for saving me a lot of time figuring out a particularly annoying bug!

Check out the migration guide to upgrade your codebase and enjoy this new release!

Breaking changes

  • Support for Python 3.7, Pydantic v1 and Motor 2.x has been dropped

  • Optional[T] doesn't have a None implicit default value anymore

  • Model.copy doesn't support the exclude and include kwargs anymore

  • odmantic.Field doesn't accept extra kwargs anymore since it's slated to be removed in Pydantic

  • The Config class is no longer supported and the model_config dict should be used instead

  • DocumentParsingError is no longer a subclass of ValidationError

  • The __bson__ class method is no longer supported to define BSON encoders on custom types. The new method to customize BSON encoding is to use the WithBSONSerializer annotation.

  • Decimals (decimal.Decimal and bson.Decimal128) are now serialized as strings in JSON documents

  • Custom JSON encoders(defined with the json_encoders config option) are no longer effective on odmantic.bson types. Annotated types with pydantic.PlainSerializer should be used instead.

Removals

  • AIOEngineDependency has been removed since it was deprecated in v0.2.0 in favor of a global engine object

  • Defining the collection with __collection__ has been removed since it was deprecated in v0.3.0 in favor of the collection config option

Deprecations

... (truncated)

Changelog

Sourced from odmantic's changelog.

[1.0.0] - 2023-12-13

I'm excited to announce ODMantic v1.0.0, with Pydantic v2 support! 🎉

This release brings a range of changes that are aligned with the new Pydantic architecture. Keeping a maintainable and healthy codebase was especially important. Thus from now on, ODMantic will not support Python 3.7, Pydantic V1, and Motor 2.x anymore.

Overall, integrating with Pydantic v2 brings around 30% performance improvements on common operations. ⚡️⚡️⚡️

We have a lot of room to improve the performance further now that we only support Pydantic v2. There is also a 300% 👀 improvement on the bulk saves crafted by @​tiangolo that will be merged soon! 🚀

Special thanks to @​tiangolo for his help on this release and for saving me a lot of time figuring out a particularly annoying bug!

Check out the migration guide to upgrade your codebase and enjoy this new release!

Breaking changes

  • Support for Python 3.7, Pydantic v1 and Motor 2.x has been dropped

  • Optional[T] doesn't have a None implicit default value anymore

  • Model.copy doesn't support the exclude and include kwargs anymore

  • odmantic.Field doesn't accept extra kwargs anymore since it's slated to be removed in Pydantic

  • The Config class is no longer supported and the model_config dict should be used instead

  • DocumentParsingError is no longer a subclass of ValidationError

  • The __bson__ class method is no longer supported to define BSON encoders on custom types. The new method to customize BSON encoding is to use the WithBSONSerializer annotation.

  • Decimals (decimal.Decimal and bson.Decimal128) are now serialized as strings in JSON documents

  • Custom JSON encoders(defined with the json_encoders config option) are no longer effective on odmantic.bson types. Annotated types with pydantic.PlainSerializer should be used instead.

Removals

  • AIOEngineDependency has been removed since it was deprecated in v0.2.0 in favor of a global engine object

  • Defining the collection with __collection__ has been removed since it was deprecated in v0.3.0 in favor of the collection config option

Deprecations

... (truncated)

Commits
  • b26eaeb Release 1.0.0 🚀
  • 0046ca8 docs: write the migration guide and prepare the release notes
  • d5af0bd 📝 Update release notes
  • ee68a88 chore(ci): bump action versions
  • 3d62804 fix: remove unused branches to improve coverage
  • 256dcde fix: bench using deprecated utcnow
  • 6b15ad2 feat: test deprecation warnings
  • 165780f feat: deprecate parse_doc in favor of model_validate_doc
  • 8e29920 feat: deprecate update in favor of model_update
  • f25935a feat: deprecate doc in favor of model_dump_doc
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 1, 2024
Copy link

codecov bot commented Jan 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f124fec) 100.00% compared to head (7729622) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #456   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines         5812      5812           
=========================================
  Hits          5812      5812           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Updates the requirements on [odmantic](https://github.com/art049/odmantic) to permit the latest version.
- [Release notes](https://github.com/art049/odmantic/releases)
- [Changelog](https://github.com/art049/odmantic/blob/master/CHANGELOG.md)
- [Commits](art049/odmantic@v0.9.0...v1.0.0)

---
updated-dependencies:
- dependency-name: odmantic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/odmantic-gte-0.9.0-and-lt-1.1.0 branch from 6630d3b to 7729622 Compare January 16, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants