py-pspdfutils: update to 3.3.2.

3.3.2

This release improves the documentation of pagespecs, and adds an
example

The error message for invalid pagespecs previously had a small
mistake in the syntax it displayed; this has been fixed. Thanks,
@jgclark!

3.3.1

This release fixes a bug in the pstops(1) man page example for
duplex book printing. Many apologies to users who wondered what
they were doing wrong when following it!

3.3.0

This release improves psnup and updates to a later version of pypdf
that fixes a crash.

In psnup, improve how we guess the page size. Since we can now
guess the size of PostScript files accurately in many cases, use
the input size first, then the output size, and only then fall back
to paper’s value.

Also, fix a bug where the output paper size was incorrectly changed
during processing.

We now require pypdf >= 3.16, which fixes a bug that could cause
a crash on PDF documents containing links that pointed to each
other.

Finally, the test suite has been improved to fall back to visual
comparison of PDF outputs when they are not byte-identical. This
should ease pypdf upgrades in future, and in particular avoid either
having to hard-wire a particular pypdf version (as we did with
PSUtils version 3.2.0), or risk test failures with newer versions
of pypdf than the minimum required version (as we did previously).
This commit is contained in:
wiz 2023-11-05 09:57:35 +00:00
parent 890f216847
commit 8686f9398b
2 changed files with 8 additions and 15 deletions

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.12 2023/10/28 19:57:14 wiz Exp $
# $NetBSD: Makefile,v 1.13 2023/11/05 09:57:35 wiz Exp $
DISTNAME= pspdfutils-3.2.0
DISTNAME= pspdfutils-3.3.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= print python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pspdfutils/}
@ -17,10 +16,10 @@ TOOL_DEPENDS+= ${PYPKGPREFIX}-argparse-manpage-[0-9]*:../../devel/py-argparse-ma
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-puremagic-[0-9]*:../../sysutils/py-puremagic
DEPENDS+= ${PYPKGPREFIX}-pdf>=3.1.0:../../textproc/py-pdf
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
DEPENDS+= ${PYPKGPREFIX}-pdf>=3.16.0:../../textproc/py-pdf
TEST_DEPENDS+= ${PYPKGPREFIX}-test-datafiles>=0:../../devel/py-test-datafiles
TEST_DEPENDS+= ${PYPKGPREFIX}-testpath>=0:../../devel/py-testpath
TEST_DEPENDS+= ${PYPKGPREFIX}-wand>=0:../../graphics/py-wand
INSTALLATION_DIRS+= ${PKGMANDIR}
@ -32,12 +31,6 @@ post-install:
cd ${DESTDIR}${PREFIX}/share/man && ${MV} * ${DESTDIR}${PREFIX}/${PKGMANDIR}
.endif
# still needs 'make install'
# most tests don't pass, should be investigated
TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../print/libpaper/buildlink3.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.6 2023/09/09 21:32:34 wiz Exp $
$NetBSD: distinfo,v 1.7 2023/11/05 09:57:35 wiz Exp $
BLAKE2s (pspdfutils-3.2.0.tar.gz) = 1a7905c32fcd5ff97b4546893d3d435996c0f9b199fb960f432afca899e8460a
SHA512 (pspdfutils-3.2.0.tar.gz) = 06a89241e32817dd7ec3910c2d508ee22306210620aabeccea86c1325b5b06a7adb7c5de9fee36eea02342f29f339673637bde60318c661fce57c5b126b0d5b9
Size (pspdfutils-3.2.0.tar.gz) = 1112727 bytes
BLAKE2s (pspdfutils-3.3.2.tar.gz) = c7a057259be4e18273c0a863da7af39bad18a62ef7d19d04c386d1cedab75c62
SHA512 (pspdfutils-3.3.2.tar.gz) = 0f47edb87e6cef9bbcbf1c23eff0b1bf46331191fd63c246d3102ca5c926a335603123c22402a142b8e6236c7f44bf392a3dc286092c93707fcd4c1af192cb6c
Size (pspdfutils-3.3.2.tar.gz) = 1243303 bytes