Skip to content

Commit

Permalink
remove reportlab
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 17, 2024
1 parent 1f5fd88 commit e410f7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
21 changes: 11 additions & 10 deletions python_file_hack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ REPLACE="\ try:\n with timezone.override(self.tz.resolve(conte
if grep -qF "$SEARCH" "$FILE"; then
sed -i "/$SEARCH/,+2 c $REPLACE" "$FILE"
else
echo "Unable to find the text $SEARCH in $FILE, update or remove fix_tz_hack.sh"
echo "Unable to find the text $SEARCH in $FILE, update or remove python_file_hack.sh"
exit 1
fi

# Reportlab causes certain label settings to throw an error
# https://github.com/virantha/pypdfocr/issues/80
FILE="/usr/local/lib/python3.11/site-packages/reportlab/platypus/paragraph.py"
SEARCH=" if availWidth<_FUZZ:"
REPLACE="\ # removed\n"
# this one has been 'fixed' by moving to weasyprint
# FILE="/usr/local/lib/python3.11/site-packages/reportlab/platypus/paragraph.py"
# SEARCH=" if availWidth<_FUZZ:"
# REPLACE="\ # removed\n"

if grep -qF "$SEARCH" "$FILE"; then
sed -i "/$SEARCH/,+2 c $REPLACE" "$FILE"
else
echo "Unable to find the text $SEARCH in $FILE, update or remove fix_tz_hack.sh"
exit 1
fi
# if grep -qF "$SEARCH" "$FILE"; then
# sed -i "/$SEARCH/,+2 c $REPLACE" "$FILE"
# else
# echo "Unable to find the text $SEARCH in $FILE, update or remove fix_tz_hack.sh"
# exit 1
# fi
1 change: 0 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ urllib3
webencodings
zope.interface
crispy-bootstrap5
reportlab
channels_redis
pyyaml
ua-parser
Expand Down

0 comments on commit e410f7a

Please sign in to comment.