* [PR PATCH] img2pdf: update to 0.4.4.
@ 2022-04-09 14:08 oynqr
2022-04-09 14:21 ` [PR PATCH] [Updated] " oynqr
2022-04-25 9:10 ` [PR PATCH] [Merged]: " paper42
0 siblings, 2 replies; 3+ messages in thread
From: oynqr @ 2022-04-09 14:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]
There is a new pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages img2pdf
https://github.com/void-linux/void-packages/pull/36601
img2pdf: update to 0.4.4.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
I enabled tests again and patched the remaining failing ones.
A patch file from https://github.com/void-linux/void-packages/pull/36601.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-img2pdf-36601.patch --]
[-- Type: text/x-diff, Size: 2896 bytes --]
From 6c17fa34c7cd24abf98caa225bc6f60d2bf4abd9 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 9 Apr 2022 14:10:43 +0200
Subject: [PATCH] img2pdf: update to 0.4.4.
---
.../img2pdf/patches/1_fix_broken_tests.patch | 23 +++++++++++++++++++
srcpkgs/img2pdf/template | 7 +++---
2 files changed, 27 insertions(+), 3 deletions(-)
create mode 100644 srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
diff --git a/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch b/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
new file mode 100644
index 000000000000..7f873ce2f830
--- /dev/null
+++ b/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
@@ -0,0 +1,23 @@
+--- a/src/img2pdf_test.py
++++ b/src/img2pdf_test.py
+@@ -2542,10 +2542,7 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
+ assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
+ identify
+ ) # FIXME: should be LSB
+- if identify[0].get("version", "0") < "1.0":
+- assert identify[0]["image"].get("depth") == 12, str(identify)
+- else:
+- assert identify[0]["image"].get("depth") == 16, str(identify)
++ assert identify[0]["image"].get("depth") == 12, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 12, str(identify)
+ assert identify[0]["image"].get("pageGeometry") == {
+ "width": 60,
+@@ -2602,7 +2599,7 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
+ assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
+ identify
+ ) # FIXME: should be LSB
+- assert identify[0]["image"].get("depth") == 16, str(identify)
++ assert identify[0]["image"].get("depth") == 14, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 14, str(identify)
+ assert identify[0]["image"].get("pageGeometry") == {
+ "width": 60,
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index a24ea1f1b610..266bd3ab63e8 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -1,14 +1,15 @@
# Template file for 'img2pdf'
pkgname=img2pdf
-version=0.4.3
+version=0.4.4
revision=1
build_style=python3-module
hostmakedepends="python3-pikepdf python3-setuptools"
depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter"
+checkdepends="exiftool ghostscript ImageMagick mupdf-tools netpbm poppler
+ python3-numpy python3-pytest python3-scipy $depends"
short_desc="Lossless conversion of raster images to PDF"
maintainer="Philipp David <pd@3b.pm>"
license="GPL-3.0-or-later"
homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
-checksum=8e51c5043efa95d751481b516071a006f87c2a4059961a9ac43ec238915de09f
-make_check=no # need to patch out some bitdepth checks
+checksum=8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Updated] img2pdf: update to 0.4.4.
2022-04-09 14:08 [PR PATCH] img2pdf: update to 0.4.4 oynqr
@ 2022-04-09 14:21 ` oynqr
2022-04-25 9:10 ` [PR PATCH] [Merged]: " paper42
1 sibling, 0 replies; 3+ messages in thread
From: oynqr @ 2022-04-09 14:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages img2pdf
https://github.com/void-linux/void-packages/pull/36601
img2pdf: update to 0.4.4.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
I enabled tests again and patched the remaining failing ones.
A patch file from https://github.com/void-linux/void-packages/pull/36601.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-img2pdf-36601.patch --]
[-- Type: text/x-diff, Size: 1037 bytes --]
From 66851af8e904884507acc019421bc8588ab90218 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 9 Apr 2022 14:10:43 +0200
Subject: [PATCH] img2pdf: update to 0.4.4.
---
srcpkgs/img2pdf/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index a24ea1f1b610..d3b30d5af5da 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -1,6 +1,6 @@
# Template file for 'img2pdf'
pkgname=img2pdf
-version=0.4.3
+version=0.4.4
revision=1
build_style=python3-module
hostmakedepends="python3-pikepdf python3-setuptools"
@@ -10,5 +10,5 @@ maintainer="Philipp David <pd@3b.pm>"
license="GPL-3.0-or-later"
homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
-checksum=8e51c5043efa95d751481b516071a006f87c2a4059961a9ac43ec238915de09f
+checksum=8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c
make_check=no # need to patch out some bitdepth checks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Merged]: img2pdf: update to 0.4.4.
2022-04-09 14:08 [PR PATCH] img2pdf: update to 0.4.4 oynqr
2022-04-09 14:21 ` [PR PATCH] [Updated] " oynqr
@ 2022-04-25 9:10 ` paper42
1 sibling, 0 replies; 3+ messages in thread
From: paper42 @ 2022-04-25 9:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
There's a merged pull request on the void-packages repository
img2pdf: update to 0.4.4.
https://github.com/void-linux/void-packages/pull/36601
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
I enabled tests again and patched the remaining failing ones.
EDIT:
Oh well, scratch that about the tests. They still fail on anything but x86_64.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-25 9:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 14:08 [PR PATCH] img2pdf: update to 0.4.4 oynqr
2022-04-09 14:21 ` [PR PATCH] [Updated] " oynqr
2022-04-25 9:10 ` [PR PATCH] [Merged]: " paper42
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).