Date: Tue, 31 Oct 2023 12:33:45 GMT From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 608775544e67 - main - graphics/py-img2pdf: Update to 0.5.0 Message-ID: <202310311233.39VCXj4Y096586@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=608775544e67d0e623c9e7cdc149f309624ca654 commit 608775544e67d0e623c9e7cdc149f309624ca654 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2023-10-31 12:27:52 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-10-31 12:33:15 +0000 graphics/py-img2pdf: Update to 0.5.0 Changelog: https://github.com/josch/img2pdf/blob/0.5.0/CHANGES.rst --- graphics/py-img2pdf/Makefile | 5 ++-- graphics/py-img2pdf/distinfo | 6 ++--- .../py-img2pdf/files/patch-src_img2pdf__test.py | 30 ---------------------- 3 files changed, 5 insertions(+), 36 deletions(-) diff --git a/graphics/py-img2pdf/Makefile b/graphics/py-img2pdf/Makefile index 54253b5cba37..b965cb6248a9 100644 --- a/graphics/py-img2pdf/Makefile +++ b/graphics/py-img2pdf/Makefile @@ -1,6 +1,5 @@ PORTNAME= img2pdf -DISTVERSION= 0.4.4 -PORTREVISION= 3 +DISTVERSION= 0.5.0 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -25,7 +24,7 @@ USES= python shebangfix magick:6,test USE_PYTHON= autoplist concurrent distutils pytest # Some tests fail, see following link for more info: # https://gitlab.mister-muffin.de/josch/img2pdf/issues/152 -PYTEST_BROKEN_TESTS= jpg_cmyk tiff_cmyk8 +PYTEST_BROKEN_TESTS= jpg_cmyk miff_cmyk8 test_date tiff_cmyk8 SHEBANG_FILES= src/img2pdf.py TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} diff --git a/graphics/py-img2pdf/distinfo b/graphics/py-img2pdf/distinfo index fab177241c64..ade359f34858 100644 --- a/graphics/py-img2pdf/distinfo +++ b/graphics/py-img2pdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1680120812 -SHA256 (img2pdf-0.4.4.tar.gz) = 8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c -SIZE (img2pdf-0.4.4.tar.gz) = 97796 +TIMESTAMP = 1698568095 +SHA256 (img2pdf-0.5.0.tar.gz) = ae6c19731bde2551356c178bf356ca118ac32a232c737a14b423f8039df3c24b +SIZE (img2pdf-0.5.0.tar.gz) = 103853 diff --git a/graphics/py-img2pdf/files/patch-src_img2pdf__test.py b/graphics/py-img2pdf/files/patch-src_img2pdf__test.py deleted file mode 100644 index 40e9379b63fd..000000000000 --- a/graphics/py-img2pdf/files/patch-src_img2pdf__test.py +++ /dev/null @@ -1,30 +0,0 @@ -Fix value errors for some tests: - -> psnr = float(psnr.strip(b"0")) -E ValueError: could not convert string to float: b'61.5441 (0.615441)' -src/img2pdf_test.py:347: ValueError - -Obtained from: - -https://gitlab.mister-muffin.de/josch/img2pdf/issues/152 - ---- src/img2pdf_test.py.orig 2023-03-30 18:01:47 UTC -+++ src/img2pdf_test.py -@@ -345,7 +345,7 @@ def compare(im1, im2, exact, icc, cmyk): - stderr=subprocess.PIPE, - ).stderr - assert psnr != b"0" -- psnr = float(psnr.strip(b"0")) -+ psnr = float(psnr.split()[0]) - assert psnr != 0 # or otherwise we would use the exact variant - assert psnr > 50 - -@@ -501,7 +501,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True - stderr=subprocess.PIPE, - ).stderr - assert psnr != b"0" -- psnr = float(psnr.strip(b"0")) -+ psnr = float(psnr.split()[0]) - assert psnr != 0 # or otherwise we would use the exact variant - assert psnr > 50 - (tmpdir / "images-000.png").unlink()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310311233.39VCXj4Y096586>