-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove markupsafe pin #5507
Remove markupsafe pin #5507
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
core/setup.py
Outdated
@@ -49,7 +49,7 @@ | |||
}, | |||
install_requires=[ | |||
"Jinja2==3.1.2", | |||
"MarkupSafe>=0.23,<2.1", | |||
"MarkupSafe>=2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any sense in just removing it entirely?
Reasoning:
- It's a second-order dependency of Jinja
- We didn't have it here until we needed to add the upper boundary earlier this year (Pin
MarkupSafe==2.0.1
#4746) - We should move in the direction of minimal dependency specification in
setup.py
, full dependency specification (exact versions tested + guaranteed to work) inrequirements.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This missed the 1.2.1 dbt-core cutoff. Would be so nice if it could land in a near-term 1.2.2. |
@MichaelTiemannOSC unfortunately we will not be able to remove this pin for dbt versions previous to 1.3.0. In dbt-core 1.3.0 we were able to upgrade Jinja2 to version 3 which is what allowed the removal of the Markupsafe pin. You can see more information on the dependency conflicts between markupsafe and Jinja2 in the related issue. |
* update markupsafe pin * add changelog * completely remove markupsafe pin
resolves #5506
Description
Remove pin of MarkUpSafe after Jinja2 upgrade.
Checklist
changie new
to create a changelog entry