Skip to content
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

fix: relax marshmallow-sqlalchemy version constraint to fix compatibility with marshmallow>=3.24 #2298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sloria
Copy link
Contributor

@sloria sloria commented Jan 8, 2025

Description

Relax the upper marshmallow-sqlalchemy version constraint. This is necessary for compatibility with newer versions of marshmallow (>=3.24.0).

This would resolve this issue in Airflow: apache/airflow#45442 (comment)

This also upgrades a few dependencies needed for a working development environment (used pip-compile --upgrade-package ...).

ADDITIONAL INFORMATION

@sloria sloria changed the title fix: relax marshmallow-sqlalchemy requirement to fix compatibility with marshmallow>=3.24 fix: relax marshmallow-sqlalchemy version constraint to fix compatibility with marshmallow>=3.24 Jan 8, 2025
@sloria
Copy link
Contributor Author

sloria commented Jan 8, 2025

given that marshmallow 4.0 will be released soon, i also think the version constraint for marshmallow should also be relaxed to marshmallow>=3.18.0, <5. upon quick review, i didn't see any usages within the code that would be broken by the changes in 4.0.

but this can happen as a follow-up

@potiuk
Copy link
Contributor

potiuk commented Jan 8, 2025

Nice one - would be great to get it in :)

@@ -58,7 +58,7 @@ def desc():
"Flask-JWT-Extended>=4.0.0, <5.0.0",
"jsonschema>=3, <5",
"marshmallow>=3.18.0, <4",
"marshmallow-sqlalchemy>=0.22.0, <0.29.0",
"marshmallow-sqlalchemy>=0.22.0, <2.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should remove the upper bound altogether

Suggested change
"marshmallow-sqlalchemy>=0.22.0, <2.0.0",
"marshmallow-sqlalchemy>=0.22.0",

to avoid issues like the one that Airflow ran into. since FAB is a library, its shouldn't impose such strict upper constraints on its dependencies and allow users to pin their own dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants