-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Version 4.0.0 has insufficient constraints on dependencies #1823
Comments
In order to be able to install flask_appbuilder in the latest version, I need to have the following constraints in my
The constraint on werkzeug is needed due to the existing upper limit on the version of Flask-Login (>=0.3, <0.5). So it looks like the setup.py of Flask-AppBuilder should have the following included in
(Here: https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.0.0/setup.py#L69) (Ideally, the upper limits on versions could be removed altogether, in the longer run...) |
Version 2.1.0 Released 2022-03-28 -> https://werkzeug.palletsprojects.com/en/2.1.x/changes/#version-2-1-0 in this version - there has been removed 'werkzeug.security.safe_str_cmp' |
@azdolinski True, the latest version of werkzeug has breaking changes, and that's why werkzeug should be constrained to <2.1.0 in the setup.py of Flask-AppBuilder, as long as Flask-AppBuilder also constrains Flask-Login to <0.5 (because these older Flask-Login versions require the older werkzeug version, but do not state this requirement explicitly in their respective setup.py My wider point being that if you I guess it would generally be advisible to constrain the major version number of every entry in |
Hi, Best regards |
Hi @dpgaspar,
I also worked according to the suggestions given in the comment section. I added |
@dpgaspar Is there any update for the above issue? |
@chrihartl Thank you for the issue, Take a look at: #1838 |
just released 4.1.0, with a fix, feel free to reopen if any problem found |
@dpgaspar Thank you very much. I can confirm that with version 4.1.0. I can successfully run |
Thank you for reporting and taking time to help and test |
Environment
Flask-Appbuilder version: 4.0.0
pip freeze output:
Expected results
I would expect to be able to successfully run "import flask_appbuilder".
Actual results
An exception occurs:
Steps to reproduce
The text was updated successfully, but these errors were encountered: