Skip to content

Commit

Permalink
fix: fix lxml constraint issue (#34652)
Browse files Browse the repository at this point in the history
* fix: pin lxml<5.0 version
* fix: update lxml constraint comment
---------
Co-authored-by: UsamaSadiq <[email protected]>
  • Loading branch information
UsamaSadiq authored Apr 30, 2024
1 parent 9b25c54 commit 188e486
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ openai<=0.28.1
# https://github.com/openedx/edx-platform/issues/34103
optimizely-sdk<5.0

# lxml>=5.0 introduced breaking changes related to system dependencies
# lxml==5.2.1 introduced new extra so we'll nee to rename lxml --> lxml[html-clean]
# This constraint can be removed once we upgrade to Python 3.11
lxml<5.0

# xmlsec==1.3.14 breaking tests for all builds, can be removed once a fix is available
xmlsec<1.3.14

Expand Down
3 changes: 2 additions & 1 deletion requirements/edx-sandbox/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ joblib==1.3.2
# via nltk
kiwisolver==1.4.5
# via matplotlib
lxml==5.2.1
lxml==4.9.4
# via
# -c requirements/edx-sandbox/../constraints.txt
# -r requirements/edx-sandbox/base.in
# openedx-calc
markupsafe==2.1.5
Expand Down
1 change: 1 addition & 0 deletions requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ lti-consumer-xblock==9.10.0
# via -r requirements/edx/kernel.in
lxml==4.9.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/kernel.in
# edx-i18n-tools
# edxval
Expand Down
1 change: 1 addition & 0 deletions requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ lti-consumer-xblock==9.10.0
# -r requirements/edx/testing.txt
lxml==4.9.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
# edx-i18n-tools
Expand Down
1 change: 1 addition & 0 deletions requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ lti-consumer-xblock==9.10.0
# via -r requirements/edx/base.txt
lxml==4.9.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
# edx-i18n-tools
# edxval
Expand Down
1 change: 1 addition & 0 deletions requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ lti-consumer-xblock==9.10.0
# via -r requirements/edx/base.txt
lxml==4.9.4
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
# edx-i18n-tools
# edxval
Expand Down
4 changes: 3 additions & 1 deletion scripts/user_retirement/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jmespath==1.0.1
# boto3
# botocore
lxml==4.9.3
# via zeep
# via
# -c scripts/user_retirement/requirements/../../../requirements/constraints.txt
# zeep
more-itertools==10.2.0
# via simple-salesforce
newrelic==9.5.0
Expand Down

0 comments on commit 188e486

Please sign in to comment.