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

#117 PyPDF2 deprecation #136

Merged
merged 6 commits into from
Aug 8, 2023
Merged

#117 PyPDF2 deprecation #136

merged 6 commits into from
Aug 8, 2023

Conversation

babyjunior56
Copy link

@babyjunior56 babyjunior56 commented Aug 7, 2023

replaced references of pypdf2 with pypdf

Description

Removed all references of pypdf2 with pypdf and installs the latest version.

This also swaps:
from flask import Markup
for
from markupsafe import Markup
because the former was generating warnings that were generating warnings in the unit tests.

#117

Type of change

  • dependency update

How Has This Been Tested?

Ran all util test cases.

================ 1365 passed, 76 skipped, 41 xfailed in 20.81s =================

Checklist

  • Appropriate labels added to this pull request (i.e. "enhancement", "dependencies", etc.)
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Checked the indentation against the indentation of surrounding text
  • Checked for trailing newlines or spaces

replaced references of pypdf2 with pypdf
@babyjunior56 babyjunior56 self-assigned this Aug 7, 2023
@babyjunior56 babyjunior56 added dependencies Pull requests that update a dependency file Notify labels Aug 7, 2023
@babyjunior56 babyjunior56 marked this pull request as ready for review August 7, 2023 22:46
notifications_utils/field.py Show resolved Hide resolved
notifications_utils/formatters.py Show resolved Hide resolved
notifications_utils/pdf.py Outdated Show resolved Hide resolved
notifications_utils/template.py Show resolved Hide resolved
tests/test_formatters.py Show resolved Hide resolved
tests/test_pdf.py Outdated Show resolved Hide resolved
tests/test_template_types.py Show resolved Hide resolved
@cris-oddball
Copy link

Removed sprint and Notify label from this PR - these should not be added to PRs.

* restored the original code for:
from markupsafe import Markup
* fixed a code quality failure
* added dependency markupsafe to setup.py to address a warning we are getting that would prevent flask from being upgraded to >=2.4
setup.py Fixed Show fixed Hide fixed
@cris-oddball cris-oddball dismissed their stale review August 8, 2023 19:45

all previous concerns addressed

setup.py Outdated Show resolved Hide resolved
typo in setup.py
setup.py Outdated Show resolved Hide resolved
Copy link
Member

@kalbfled kalbfled left a comment

Choose a reason for hiding this comment

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

See comment in setup.py. This rest looks fine.

* unpinning the markup + alphabetic order
@babyjunior56 babyjunior56 merged commit 3738c8c into master Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants