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

Bump pypdf2 from 1.28.2 to 2.0.0 #504

Merged
merged 1 commit into from
Jun 4, 2022
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 1, 2022

Bumps pypdf2 from 1.28.2 to 2.0.0.

Release notes

Sourced from pypdf2's releases.

Version 2.0.0, 2022-06-01

What's Changed

The 2.0.0 release of PyPDF2 includes three core changes:

  1. Dropping support for Python 3.5 and older.
  2. Introducing type annotations.
  3. Interface changes, mostly to have PEP8-compliant names

We introduced a deprecation process that hopefully helps users to avoid unexpected breaking changes.

Breaking Changes (DEP)

  • PyPDF2 2.0 requires Python 3.6+. Python 2.7 and 3.5 support were dropped.
  • PdfFileReader: The "warndest" parameter was removed
  • PdfFileReader and PdfFileMerger no longer have the overwriteWarnings parameter. The new behavior is overwriteWarnings=False.
  • merger: OutlinesObject was removed without replacement.
  • merger.py ➔ _merger.py: You must import PdfFileMerger from PyPDF2 directly.
  • utils:
    • ConvertFunctionsToVirtualList was removed
    • formatWarning was removed
    • isInt(obj): Use instance(obj, int) instead
    • u_(s): Use s directly
    • chr_(c): Use chr(c) instead
    • barray(b): Use bytearray(b) instead
    • isBytes(b): Use instance(b, type(bytes())) instead
    • xrange_fn: Use range instead
    • string_type: Use str instead
    • isString(s): Use instance(s, str) instead
    • _basestring: Use str instead
    • All Exceptions are now in PyPDF2.errors:
      • PageSizeNotDefinedError
      • PdfReadError
      • PdfReadWarning
      • PyPdfError
  • PyPDF2.pdf (the pdf module) no longer exists. The contents were moved with the library. You should most likely import directly from PyPDF2 instead. The RectangleObject is in PyPDF2.generic.
  • The Resources, Scripts, and Tests will no longer be part of the distribution files on PyPI. This should have little to no impact on most people. The Tests are renamed to tests, the Resources are renamed to resources. Both are still in the git repository. The Scripts are now in https://github.com/py-pdf/cpdf. Sample_Code was moved to the docs.

For a full list of deprecated functions, please see the changelog of version 1.28.0.

New Features (ENH)

  • Improve space setting for text extraction (#922)
  • Allow setting the decryption password in PdfReader.init (#920)

... (truncated)

Changelog

Sourced from pypdf2's changelog.

Version 2.0.0, 2022-06-01

The 2.0.0 release of PyPDF2 includes three core changes:

  1. Dropping support for Python 3.5 and older.
  2. Introducing type annotations.
  3. Interface changes, mostly to have PEP8-compliant names

We introduced a deprecation process that hopefully helps users to avoid unexpected breaking changes.

Breaking Changes(DEP):

  • PyPDF2 2.0 requires Python 3.6+. Python 2.7 and 3.5 support were dropped.
  • PdfFileReader: The "warndest" parameter was removed
  • PdfFileReader and PdfFileMerger no longer have the overwriteWarnings parameter. The new behavior is overwriteWarnings=False.
  • merger: OutlinesObject was removed without replacement.
  • merger.py ➔ _merger.py: You must import PdfFileMerger from PyPDF2 directly.
  • utils:
    • ConvertFunctionsToVirtualList was removed
    • formatWarning was removed
    • isInt(obj): Use instance(obj, int) instead
    • u_(s): Use s directly
    • chr_(c): Use chr(c) instead
    • barray(b): Use bytearray(b) instead
    • isBytes(b): Use instance(b, type(bytes())) instead
    • xrange_fn: Use range instead
    • string_type: Use str instead
    • isString(s): Use instance(s, str) instead
    • _basestring: Use str instead
    • All Exceptions are now in PyPDF2.errors:
      • PageSizeNotDefinedError
      • PdfReadError
      • PdfReadWarning
      • PyPdfError
  • PyPDF2.pdf (the pdf module) no longer exists. The contents were moved with the library. You should most likely import directly from PyPDF2 instead. The RectangleObject is in PyPDF2.generic.
  • The Resources, Scripts, and Tests will no longer be part of the distribution files on PyPI. This should have little to no impact on most people. The Tests are renamed to tests, the Resources are renamed to resources. Both are still in the git repository. The Scripts are now in https://github.com/py-pdf/cpdf. Sample_Code was moved to the docs.

For a full list of deprecated functions, please see the changelog of version 1.28.0.

New Features (ENH):

  • Improve space setting for text extraction (#922)

... (truncated)

Commits
  • f261bad REL: 2.0.0
  • 5730198 MAINT: Add wrapper function for PendingDeprecationWarnings (#928)
  • 1d14a86 DOC: Fix style of 1.25 and 1.27 patch notes (#927)
  • 552767e DOC: CHANGELOG of 1.28.4 (#926)
  • 42d4659 TST: Regression test for xmp_metadata converter (#923)
  • c008b0f ENH: Improve space setting for text extraction (#922)
  • c59224a ENH: Allow setting the decryption password in PdfReader.init (#920)
  • 7647ab5 DOC: Adjust deprecation messages (#919)
  • bbfd46c DEV: Create flake8 config file (#916)
  • 07bb859 DEP: rotate_clockwise ➔ rotate for PageObject (#913)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pypdf2](https://github.com/py-pdf/PyPDF2) from 1.28.2 to 2.0.0.
- [Release notes](https://github.com/py-pdf/PyPDF2/releases)
- [Changelog](https://github.com/py-pdf/PyPDF2/blob/main/CHANGELOG)
- [Commits](py-pdf/pypdf@1.28.2...2.0.0)

---
updated-dependencies:
- dependency-name: pypdf2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 1, 2022
@soxoj soxoj merged commit e2d623f into main Jun 4, 2022
@soxoj soxoj deleted the dependabot/pip/pypdf2-2.0.0 branch June 4, 2022 21:38
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.

1 participant