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

MAINT: Split pdf module #836

Merged
merged 2 commits into from
Apr 28, 2022
Merged

MAINT: Split pdf module #836

merged 2 commits into from
Apr 28, 2022

Conversation

MartinThoma
Copy link
Member

@MartinThoma MartinThoma commented Apr 28, 2022

This PR makes it easier to see which class(es) were adjusted in a PR.

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #836 (b4f43a8) into main (c1dfdaa) will increase coverage by 0.33%.
The diff coverage is 83.68%.

@@            Coverage Diff             @@
##             main     #836      +/-   ##
==========================================
+ Coverage   81.23%   81.56%   +0.33%     
==========================================
  Files          12       16       +4     
  Lines        3629     3694      +65     
  Branches      797      801       +4     
==========================================
+ Hits         2948     3013      +65     
  Misses        504      504              
  Partials      177      177              
Impacted Files Coverage Δ
PyPDF2/pdf.py 100.00% <ø> (+16.68%) ⬆️
PyPDF2/_page.py 79.12% <79.12%> (ø)
PyPDF2/_reader.py 80.44% <80.44%> (ø)
PyPDF2/generic.py 85.00% <85.71%> (+0.09%) ⬆️
PyPDF2/_writer.py 88.72% <88.72%> (ø)
PyPDF2/_security.py 96.49% <96.49%> (ø)
PyPDF2/__init__.py 100.00% <100.00%> (ø)
PyPDF2/merger.py 68.18% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1dfdaa...b4f43a8. Read the comment docs.

@MartinThoma MartinThoma merged commit e1408f7 into main Apr 28, 2022
@MartinThoma MartinThoma deleted the splitting-modules branch April 28, 2022 12:40
@MasterOdin
Copy link
Member

Why mark these new modules as private with the leading underscore? Unless the plan was to have potential multiple readers depending on computer architecture or if using C extension or whatever, I cannot see why it would be "bad" for a user to import from say pypdf2.reader.

MartinThoma added a commit that referenced this pull request Apr 28, 2022
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this pull request Apr 29, 2022
MartinThoma added a commit that referenced this pull request May 1, 2022
Robustness (ROB):
-  Handle missing destinations in reader (#840)
-  warn-only in readStringFromStream (#837)
-  Fix corruption in startxref or xref table (#788 and #830)

Documentation (DOC):
-  Project Governance (#799)
-  History of PyPDF2
-  PDF feature/version support (#816)
-  More details on text parsing issues (#815)

Developer Experience (DEV):
-  Add benchmark command to Makefile
-  Ignore IronPython parts for code coverage (#826)

Maintenance (MAINT):
-  Split pdf module (#836)
-  Separated CCITTFax param parsing/decoding (#841)
-  Update requirements files

Testing (TST):
-  Use external repository for larger/more PDFs for testing (#820)
-  Swap incorrect test names (#838)
-  Add test for PdfFileReader and page properties (#835)
-  Add tests for PyPDF2.generic (#831)
-  Add tests for utils, form fields, PageRange (#827)
-  Add test for ASCII85Decode (#825)
-  Add test for FlateDecode (#823)
-  Add test for filters.ASCIIHexDecode (#822)

Code Style (STY):
-  Apply pre-commit (black, isort) + use snake_case variables (#832)
-  Remove debug code (#828)
-  Documentation, Variable names (#839)

Full Changelog: 1.27.9...1.27.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants