-
Notifications
You must be signed in to change notification settings - Fork 274
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
Flask/Werkzeug 2.1 compatibility #1015
Flask/Werkzeug 2.1 compatibility #1015
Conversation
OK, this was tougher that I imagined. Werkzeug is not pinned in our setup.cfg. It seems that the minimal requirements don't pin it also, so 2.1 was brought into the "minimal" setup and broke tests. The choice is here:
I'm usually in favor of going forward and drop old versions. Raise your voice here to oppose! |
@zorun I tried to update vermin to set But I want to ensure that it is at least 3.7. |
Hmm, it's logical that vermin still says 3.6, because our code needs at least 3.6 (because of f-strings). In fact, I simply configured vermin wrongly. After playing with it, the right target would be |
About dropping support for python 3.6: as usual, I don't like it! Ubuntu 18.04 comes with python 3.6, and is still supported for many years to come. What I propose: let's pin the older version of werkzeug for now, and if in the future we need to break compatibility for another reason (which means increasing our major version number), we can drop python 3.6 at the same time. |
Hey, I'd vote in favor of dropping support for older python versions. While I agree with your reasoning @zorun when it comes to desktop applications, for a web application I think we can move faster without it being a problem for our end users. If people want to still use ubuntu 18.04, having an older IHM version is okay I believe. It's of course open to discussion :-) |
I see another option : we could make two branches in our code, and act differently depending on the version of python, and then remove this conditional once we want to remove support for python 3.6. That would work for me as well. I haven't checked what actual code was doing this on our side though. |
... until somebody discovers that the older IHM version has a security hole :p
From what I understood, it's Werkzeug that dropped support for python 3.6, so we can't make two branches in our own code. To rephrase my position:
|
I'll let you decide on this: every option seems acceptable to me and I don't have à strong opinion. If you need somebody else to make a choice let me know but otherwise, I'll be happy any way ! |
OK, so my current opinion on this is that we don't really need Werkzeug/Flask 2.1 for now. So let's stack this for the 6.0 release, and in the meantime, we'll pin these dependencies with <2.1 |
So for now, this won't be merged |
Since Werkzeug 2.1, some deprecated symbols were removed.
Do we really want to drop Python 3.6 now?