James R. Barlow
a63a21a7fc
helpers: remove shim for unsupported old version of pikepdf
2021-10-28 02:46:34 -07:00
James R. Barlow
1c4d5d79f7
Improve some error messages
2021-10-28 01:16:22 -07:00
James R. Barlow
644581ed3c
v12.7.1 release notes
v12.7.1
2021-10-27 01:20:06 -07:00
James R. Barlow
77f7621bbc
batch.py: tidy
2021-10-15 15:03:40 -07:00
James R. Barlow
42713b77d7
v12.7.0 release notes
v12.7.0
2021-10-12 13:39:49 -07:00
James R. Barlow
690f88119d
Fix test failures on pikepdf 3.2.0 + pybind11 2.8.0
...
When compiled without pybind11 2.8.0, pikepdf supplies a shim to implement
pikepdf._ObjectMapping.values() which has subtly different semantics
from a true dict-like objects; in particular it supports
next(objectmap.values())
where a standard dict requires
next(iter(objectmap.values()).
pybind11 2.8.0 now implements .values() properly, meaning some misuses of
protocol in ocrmypdf fail.
If pybind11 < 2.8.0, pikepdf will
continue to offer its shim. If pybind11 >= 2.8.0, pikepdf does not add its shim.
Consequently no changes were needed in pikepdf.
Closes #843
2021-10-12 13:38:52 -07:00
James R. Barlow
78f391536b
Offer hint to user to use --max-image-mpixels after decompression bob error
...
Closes #801
2021-10-06 00:19:11 -07:00
mara004
7bdd1828a9
[ci skip] docs/conf.py: add intersphinx mapping to make external links work ( #838 )
2021-10-04 00:34:59 -07:00
mara004
a8f513eeeb
[ci skip] Update api.rst ( #839 )
2021-10-04 00:34:39 -07:00
fedeliallalinea
af18bc0684
fixs importlib.{metadata,resource} for new python version ( #840 )
...
Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com>
2021-10-03 23:30:11 -07:00
James R. Barlow
b621df6947
v12.6.0 release notes
v12.6.0
2021-10-02 01:02:17 -07:00
James R. Barlow
313c9e7dc1
docs: add missing sphinx extensions
2021-09-26 23:41:25 -07:00
James R. Barlow
9d04795f7f
docs: fix package version error
2021-09-26 23:41:17 -07:00
James R. Barlow
9a08e71e7f
docs: show logo
2021-09-26 23:40:54 -07:00
James R. Barlow
790d3022f6
Implement --output-type=none to skip producing the PDF and use only the sidecar
...
Closes #787
2021-09-26 01:07:34 -07:00
James R. Barlow
ec311af796
typing: subprocess
2021-09-22 17:18:59 -07:00
James R. Barlow
c725bf79da
flake8 delinting
2021-09-21 16:37:03 -07:00
James R. Barlow
9559f76fae
optimize: fix typo in debug msg
2021-09-19 16:31:00 -07:00
James R. Barlow
45736b7c2b
cli: clarify text to more accurately describe behavior of --jbig2-lossy
2021-09-16 16:03:39 -07:00
James R. Barlow
5629e960b9
v12.5.0 release notes update
v12.5.0
2021-09-15 00:27:32 -07:00
James R. Barlow
79fd8d01a5
info: fix incorrect handling of inline images and other typing fixes
2021-09-15 00:26:15 -07:00
James R. Barlow
79fe7a0a85
graft: remove separate implementation of unparse_content_stream
2021-09-15 00:25:06 -07:00
James R. Barlow
b4b32a35b5
optimize: fix typing consistency
2021-09-15 00:09:08 -07:00
James R. Barlow
4634b3db55
v12.5.0 release notes
2021-09-14 17:26:07 -07:00
James R. Barlow
f5053158d4
hocrtransform: fix regression causing hocr text to be not rendered
...
Fixes #828
2021-09-14 17:23:09 -07:00
James R. Barlow
dfa4ce1612
pyproject: configure mypy
2021-09-14 17:22:41 -07:00
James R. Barlow
585595a98e
pre-commit: autoupdate
2021-09-14 17:22:29 -07:00
James R. Barlow
f6396fbaac
pre-commit: drop isort mirror
2021-09-14 17:20:43 -07:00
James R. Barlow
3859bae85e
Merge branch 'feature/drop-pkg-resources'
2021-09-14 00:31:36 -07:00
James R. Barlow
ee1a7baae7
requirements: drop setuptools
...
With importlib_* we no longer setuptools's pkg_resources.
2021-09-14 00:28:42 -07:00
James R. Barlow
a4da05b66b
docs: various fixes
...
As suggested by @Chealer
Closes #829 , #830 , #831 , #832
2021-09-14 00:24:18 -07:00
James R. Barlow
4d67812d51
importlib helpers don't provide importlib.thing, but importlib_thing
...
Fix everywhere.
2021-09-14 00:15:07 -07:00
James R. Barlow
3534742ef9
ci: Enable build of feature branches
2021-09-13 01:35:14 -07:00
James R. Barlow
8bfd46c80d
docs: update copyright
2021-09-13 01:10:49 -07:00
James R. Barlow
cc6e9cecc0
Replace pkg_resources version lookup with importlib.metadata
2021-09-13 01:10:49 -07:00
James R. Barlow
208657f840
pdfa: replace pkg_resources with importlib.resources
2021-09-13 01:10:49 -07:00
James R. Barlow
f3de980447
Introduce importlib-resources,metadata backports for Python < 3.9
2021-09-13 01:10:43 -07:00
James R. Barlow
eb8992e58b
Update release notes
2021-09-09 15:53:08 -07:00
James R. Barlow
72ad618ae6
Merge branch 'master' of github.com:jbarlow83/OCRmyPDF
2021-09-09 15:25:54 -07:00
James R. Barlow
f07d0c39bb
Require pikepdf<3 on PyPy 3.6
...
Because cibuildwheel does not build wheels for PyPy 3.6 anymore,
so pikepdf does not offer one.
2021-09-09 15:25:38 -07:00
James R. Barlow
9c5c7d9be0
release notes: mention Py3.6 EOL
2021-09-08 00:04:21 -07:00
dependabot[bot]
0b19b084e2
build(deps): bump pillow from 8.2.0 to 8.3.2 in /requirements/main.txt ( #825 )
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 8.2.0 to 8.3.2.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/8.2.0...8.3.2 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 00:03:35 -07:00
James R. Barlow
9b4516af7a
ci : add packages for PyPy build
v12.4.0
2021-08-31 02:44:07 -07:00
James R. Barlow
1eb45de5c9
v12.4.0 release notes
2021-08-31 02:35:39 -07:00
James R. Barlow
390b9924f5
ci: Add PyPy to matrix
2021-08-31 02:34:12 -07:00
James R. Barlow
c28858a099
leptonica: fix a PyPy-specific error
...
Error is:
TypeError: from_buffer() got a 'memoryview' object, which supports the buffer interface but cannot be rendered as a plain raw address on PyPy
PyPy is happy to access a bytes() copy of the memoryview.
2021-08-31 02:31:58 -07:00
James R. Barlow
f00b3c00cd
Merge remote-tracking branch 'origin/master'
2021-08-31 02:19:09 -07:00
James R. Barlow
4e4f0bfa1f
graft: use faster unparse_content_stream if available
2021-08-31 02:16:25 -07:00
Elliott Sales de Andrade
0a31acf888
Allow pluggy v1. ( #822 )
...
There are breaking changes, but I could not find any reference to them
in the code.
2021-08-31 02:15:43 -07:00
James R. Barlow
b91096c615
hoctransform: fix deprecation warning
2021-08-28 02:11:33 -07:00