-
-
Notifications
You must be signed in to change notification settings - Fork 688
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
⬆ Upgrade constrain for SQLAlchemy = ">=1.4.17,<=1.4.41" #371
Conversation
Since sqlmodel has been broken since, I guess, May (?) with this PR unmerged since May, should I assume sqlmodel is unmaintained? Not a gripe at all, just trying it out and wondering if the project still active. |
I think @tiangolo is just pretty busy right now. The rate of new issues and PRs is pretty high so it's easy to miss something like this, especially if you're relying on dependabot to test and flag these kind of issues. Changing the constraint from |
Aha, interesting, to be honest I was lazy and just searched for 1.4.35 and assumed that any issue where people said installing that version fixed the problem was related to this. This comment #255 (comment) mentioned that pinning the version to |
Thanks @RobertRosca! Good to know it's still active. |
+1 for this PR so that, as @RobertRosca observes, dependabot can more easily track this issue. |
Codecov Report
@@ Coverage Diff @@
## main #371 +/- ##
=======================================
Coverage 97.49% 97.49%
=======================================
Files 181 181
Lines 6038 6038
=======================================
Hits 5887 5887
Misses 151 151 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
📝 Docs preview for commit de4ccdb at: https://630a5ffdfbefa92996c70e2b--sqlmodel.netlify.app |
Awesome, thank you @RobertRosca! 🚀 I upgraded the max version to the current latest, as everything is passing with it. 🤓 And thanks everyone for the discussion. The underlying issue was solved in #322, and this version pin will prevent it from happening inadvertently. This will be available in the next version, in the next hours. SQLModel |
SQLAlchemy changes in versions greater than 1.4.35 break relationships and break even the examples in the docs, the latest working version seems to be 1.4.35.
This has been the cause of at least two issues (#255, #315) but probably more.
The breaking change wasn't picked up by dependabot because the current constraint of
<1.5.0
does not register any releases under 1.5.0 as 'new' since the version constraint does not have to be bumped up for it. By limiting it to <= dependabot will start bumping up the upper end of the constraints.PR #322 fixes this with a simple code change but hasn't been merged yet, the constraint range change should still be made so that dependabot will automatically create PRs and run tests on newer versions of SQLAlchemy.