Skip to content

Conversation

@padraic-shafer
Copy link
Collaborator

@padraic-shafer padraic-shafer commented Dec 13, 2025

Dependencies were upgraded using the uv commands in the project README.

Breaking changes were introduced by Beanie 2.0. Beanie no longer uses motor, it has been replaced by pymongo's async client. Function signatures have been updated accordingly.

Following the PyMongo migration guide, the motor client was replaced by pymongo's async client

# Removed
# from motor.motor_asyncio import AsyncIOMotorClient

from pymongo import AsyncMongoClient

Because AsyncMongoClient must be created on and run on the application's primary ioloop, all conflicting ioloops have been removed. Fixture using session scope create their own ioloop, which renders them unusable with AsyncMongoClient. These fixtures and tests have been updated to use function scope. I've left these as explicitly marked, as a warning against changing them to session scope.

@padraic-shafer padraic-shafer changed the title Deps 2025 12 Update dependencies + beanie 2.0 changes Dec 13, 2025
@padraic-shafer
Copy link
Collaborator Author

Integration testing has NOT yet been performed against these updates.

@padraic-shafer padraic-shafer added the dependencies Pull requests that update a dependency file label Dec 13, 2025
@padraic-shafer padraic-shafer mentioned this pull request Dec 13, 2025
@padraic-shafer padraic-shafer marked this pull request as draft December 13, 2025 14:55
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants