From 6b9d14dfa5a1d47da1d573037a610c4f630cba74 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 5 Apr 2022 11:59:21 -0400 Subject: [PATCH 1/5] python3-pyppmd: update to 0.18.2. enable tests by ignoring/disabling pytest-benchmark --- srcpkgs/python3-pyppmd/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-pyppmd/template b/srcpkgs/python3-pyppmd/template index 4034cde05478..99e5a944d390 100644 --- a/srcpkgs/python3-pyppmd/template +++ b/srcpkgs/python3-pyppmd/template @@ -1,18 +1,22 @@ # Template file for 'python3-pyppmd' pkgname=python3-pyppmd -version=0.17.3 +version=0.18.2 revision=1 wrksrc="pyppmd-${version}" build_style=python3-module +make_check_args="--ignore=tests/test_benchmark.py" # requires pytest-benchmark hostmakedepends="python3-setuptools_scm" makedepends="python3-devel" depends="python3" +checkdepends="python3-pytest python3-py-cpuinfo python3-hypothesis" short_desc="Python interface for PPM variation H and I.2" maintainer="Joel Beckmeyer " license="LGPL-2.0-or-later" homepage="https://github.com/miurahr/pyppmd" changelog="https://raw.githubusercontent.com/miurahr/pyppmd/main/Changelog.rst" distfiles="${PYPI_SITE}/p/pyppmd/pyppmd-${version}.tar.gz" -checksum=05a4765833623d5cc1c9afc27d9b05fb64f0319711beffe0b44d9695eb1beb0a -# testing requires unpackaged plugin pytest-benchmark -make_check=no +checksum=732b28ea25afa41a282c986178b29e60ea5ec2e2b67f66997af943f73d4673e0 + +pre_check() { + rm tests/conftest.py +} From 1004c315874b89c17ab405c7981d2b7bed53f1c3 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 5 Apr 2022 11:59:34 -0400 Subject: [PATCH 2/5] python3-pyzstd: update to 0.15.2. fix tests with custom do_check --- srcpkgs/python3-pyzstd/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-pyzstd/template b/srcpkgs/python3-pyzstd/template index 708b8a193d9b..1385d8201c70 100644 --- a/srcpkgs/python3-pyzstd/template +++ b/srcpkgs/python3-pyzstd/template @@ -1,6 +1,6 @@ # Template file for 'python3-pyzstd' pkgname=python3-pyzstd -version=0.15.0 +version=0.15.2 revision=1 wrksrc="pyzstd-${version}" build_style=python3-module @@ -13,9 +13,11 @@ maintainer="Joel Beckmeyer " license="BSD-3-Clause" homepage="https://github.com/animalize/pyzstd" distfiles="${PYPI_SITE}/p/pyzstd/pyzstd-${version}.tar.gz" -checksum=bf15a39cb3c9b662775e22ffa8c4da09fdde6a15ece5e0ed710b6d3b4329cf36 -# test is broken and can't be run by setup.py or pytest -make_check=no +checksum=eda9d2874a8f3823eea882125f304620f592693b3af0101c484bfc75726c8c59 + +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" python3 setup.py test +} post_install() { vlicense LICENSE From eec28b65d7c502a92a54dca7c131d6ddee440329 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 5 Apr 2022 12:00:01 -0400 Subject: [PATCH 3/5] python3-pybcj: update to 0.5.1. enable tests with pytest --- srcpkgs/python3-pybcj/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3-pybcj/template b/srcpkgs/python3-pybcj/template index 9e0e806f9583..a0776b796627 100644 --- a/srcpkgs/python3-pybcj/template +++ b/srcpkgs/python3-pybcj/template @@ -1,15 +1,16 @@ # Template file for 'python3-pybcj' pkgname=python3-pybcj -version=0.5.0 +version=0.5.1 revision=1 wrksrc="pybcj-${version}" build_style=python3-module hostmakedepends="python3-setuptools_scm" makedepends="python3-devel" depends="python3" +checkdepends="python3-pytest python3-hypothesis" short_desc="BCJ(Branch-Call-Jump) filter for python" maintainer="Joel Beckmeyer " license="LGPL-2.1-or-later" homepage="https://github.com/miurahr/pybcj" distfiles="${PYPI_SITE}/p/pybcj/pybcj-${version}.tar.gz" -checksum=8de74f338874c698e405a72181eb0ea2e011ed5a6567e0feca524275f113bb0f +checksum=376d039200639a52cba47fb04ffda39aad39715d9e988405fee0e5d60080d111 From 07083958b6b154ea2f18e0c84d47853033a64114 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 5 Apr 2022 13:39:53 -0400 Subject: [PATCH 4/5] New package: python3-zipfile-deflate64-0.2.0 --- srcpkgs/python3-zipfile-deflate64/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-zipfile-deflate64/template diff --git a/srcpkgs/python3-zipfile-deflate64/template b/srcpkgs/python3-zipfile-deflate64/template new file mode 100644 index 000000000000..5f2c506b3e15 --- /dev/null +++ b/srcpkgs/python3-zipfile-deflate64/template @@ -0,0 +1,16 @@ +# Template file for 'python3-zipfile-deflate64' +pkgname=python3-zipfile-deflate64 +version=0.2.0 +revision=1 +wrksrc="zipfile-deflate64-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +makedepends="python3-devel" +depends="python3" +short_desc="Extract Deflate64 ZIP archives with Python's zipfile API" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://github.com/brianhelba/zipfile-deflate64" +distfiles="${PYPI_SITE}/z/zipfile-deflate64/zipfile-deflate64-${version}.tar.gz" +checksum=875a3299de102edf1c17f8cafcc528b1ca80b62dc4814b9cb56867ec59fbfd18 +make_check=no # no tests included From 00be073a20ceb8f8d04d8555aed17c64edce5fb7 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 5 Apr 2022 12:00:36 -0400 Subject: [PATCH 5/5] python3-py7zr: update to 0.18.3. enable tests by ignoring/disabling pytest-benchmark --- srcpkgs/python3-py7zr/template | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-py7zr/template b/srcpkgs/python3-py7zr/template index 7dcdc642f601..7b34be9cb9f6 100644 --- a/srcpkgs/python3-py7zr/template +++ b/srcpkgs/python3-py7zr/template @@ -1,20 +1,23 @@ # Template file for 'python3-py7zr' pkgname=python3-py7zr -version=0.16.4 -revision=2 +version=0.18.3 +revision=1 wrksrc="py7zr-${version}" build_style=python3-module +make_check_args="--ignore=tests/test_benchmark.py" hostmakedepends="python3-setuptools_scm" depends="python3-texttable python3-pycryptodomex python3-Brotli python3-pyzstd python3-pyppmd python3-pybcj - python3-multivolumefile" + python3-multivolumefile python3-zipfile-deflate64" +checkdepends="python3-pytest python3-pytest-timeout python3-py-cpuinfo $depends" short_desc="7zip in python3 with various compressions, and AES encryption" maintainer="Joel Beckmeyer " license="LGPL-2.1-or-later" homepage="https://github.com/miurahr/py7zr" changelog="https://raw.githubusercontent.com/miurahr/py7zr/master/Changelog.rst" distfiles="${PYPI_SITE}/p/py7zr/py7zr-${version}.tar.gz" -checksum=9b584dcd71b0e8c385cc66ae8e370bdbc29d1f07139d5cee770dc221fa338cf9 -# testing requires unpackaged modules: -# pyannotate_runtime, pytest-benchmark, pytest-remotedata, pytest-profiling -make_check=no +checksum=d5bdc81536316f209a3ca4e1ce6e2ef11d8a519d613be47bcdd084bf655f400f + +pre_check() { + rm tests/conftest.py +}