Skip to content

Commit

Permalink
test: Update PyPDF2 for PDF tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Apr 22, 2022
1 parent 8bc8353 commit c9e4872
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 "pycairo<1.20" PyPDF2 "weasyprint<53"
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 "pycairo<1.20" "PyPDF2<1.28.0" "weasyprint<53"
- name: Generate Valid Tests
run: |
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 "pycairo<1.20" PyPDF2 "weasyprint<53"
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 "pycairo<1.20" "PyPDF2<1.28.0" "weasyprint<53"
- name: Generate Valid Tests
run: |
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
# echo "Installing pip + wheel..."
# python -m pip install --upgrade pip wheel
# echo "Installing requirements.txt + test dependencies..."
# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 pycairo PyPDF2 "weasyprint<53"
# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml==1.6 pycairo "PyPDF2<1.28.0" "weasyprint<53"

# - name: Generate Valid Tests
# run: |
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ deps =
decorator
dict2xml==1.6
pycairo<1.20
pypdf2
pypdf2<1.28.0
weasyprint<53
4 changes: 2 additions & 2 deletions xml2rfc/walkpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def walk(obj, seen):
dobj[k] = d
iobj += i
if hasattr(obj, 'extractText'):
dobj['text'] = obj.extractText()
dobj['text'] = obj.extractText(TJ_sep='')
elif isinstance(obj, pypdf2.generic.ArrayObject):
dobj = []
for o in obj:
Expand Down Expand Up @@ -110,4 +110,4 @@ def main():
print('Wrote: %s' % x.name)

if __name__ == "__main__":
main()
main()

0 comments on commit c9e4872

Please sign in to comment.