-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Upgrade moto library to version 3.0
#22005
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
Conversation
moto library to version 3.0moto library to version 3.0
983a088 to
727eedc
Compare
|
This is fine - but it requires constraints to get regenerated. The failure there indicates that. I will need to manually update constraints and merge it at about the same time to accomodate ! |
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
|
Is it impossible to support both 2.x and 3.0+? |
|
Good question @uranusjr. I think it's not possible. |
I think it does not really matter, moto is really a devel-only dependency - only used in tests, so it is just used for tests only. Once it works and constraints are updated - it will work. But I agree with @uranusjr, it might be a bit easier for us to just remove the limit (and it will get upgraded automatically). According to our newly agreed rules it should not be upper-bound (and this is even more so as this is test dependency only) I will slightly modify it and see if it will pass (and use moto > 3) - it should. |
|
UPDATE. Ah I see that we shoudl anyway have > 3.0.3 so I will just remove the ~ (and update the constraints as planned) |
|
I had many problems with the "latest version" in my projects If we are not fixing the version of |
This is what our constraint mechanism provides. All "regular" PRs if they do not change setup.py/setup.cfg use the constraints to run the PR - i.e. latest "good" version of dependencies. Only in This way:
So - getting a failure in If want to see more - my talk about it from November: https://youtu.be/_SjMdQLP30s?t=2519 |
|
And here is our (agreed in the community after recent discussion) approach on how we treat dependencies: https://github.com/apache/airflow#approach-to-dependencies-of-airflow |
|
I rebuilt the constraints and merged :). All Good! |
|
Thanks for the information. |
|
Ah yeah. With 580 deps we have ~ 20 new released dep versions every week :). Hard to keep up without the automation :) |
Some of the RDS functionality was added to
motorecently.Therefore, there are needed to upgrade version of the library