* Re: [PR REVIEW] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
@ 2022-04-07 13:58 ` ahesford
2022-04-07 13:58 ` ahesford
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ahesford @ 2022-04-07 13:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 233 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#discussion_r845166047
Comment:
Replace with `python3-setuptools_scm` to make sure the `egg-info` version is correct.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR REVIEW] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
2022-04-07 13:58 ` [PR REVIEW] " ahesford
@ 2022-04-07 13:58 ` ahesford
2022-04-08 1:18 ` TinfoilSubmarine
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ahesford @ 2022-04-07 13:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#discussion_r845169247
Comment:
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
Can this be moved to `python3-pytest`?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR REVIEW] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
2022-04-07 13:58 ` [PR REVIEW] " ahesford
2022-04-07 13:58 ` ahesford
@ 2022-04-08 1:18 ` TinfoilSubmarine
2022-04-08 1:35 ` TinfoilSubmarine
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-08 1:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3401 bytes --]
New review comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#discussion_r845666968
Comment:
For this one, running with pytest gave an unhelpful error while running with setup.py works fine...
```
=> python3-pyzstd-0.15.2_1: running do_check ...
============================= test session starts ==============================
platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /builddir/pyzstd-0.15.2
collected 130 items
tests/test_zstd.py ..................................................... [ 40%]
........................................................................ [ 96%]
....F [100%]
=================================== FAILURES ===================================
__________________________________ test_main ___________________________________
def test_main():
> unittest.main()
tests/test_zstd.py:3220:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.10/unittest/main.py:101: in __init__
self.runTests()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <unittest.main.TestProgram object at 0x7f3b4a802560>
def runTests(self):
if self.catchbreak:
installHandler()
if self.testRunner is None:
self.testRunner = runner.TextTestRunner
if isinstance(self.testRunner, type):
try:
try:
testRunner = self.testRunner(verbosity=self.verbosity,
failfast=self.failfast,
buffer=self.buffer,
warnings=self.warnings,
tb_locals=self.tb_locals)
except TypeError:
# didn't accept the tb_locals argument
testRunner = self.testRunner(verbosity=self.verbosity,
failfast=self.failfast,
buffer=self.buffer,
warnings=self.warnings)
except TypeError:
# didn't accept the verbosity, buffer or failfast arguments
testRunner = self.testRunner()
else:
# it is assumed to be a TestRunner instance
testRunner = self.testRunner
self.result = testRunner.run(self.test)
if self.exit:
> sys.exit(not self.result.wasSuccessful())
E SystemExit: False
/usr/lib/python3.10/unittest/main.py:273: SystemExit
----------------------------- Captured stderr call -----------------------------
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
=========================== short test summary info ============================
FAILED tests/test_zstd.py::test_main - SystemExit: False
======================== 1 failed, 129 passed in 2.57s =========================
=> ERROR: python3-pyzstd-0.15.2_1: do_check: 'PYTHONPATH="$(cd build/lib* && pwd)" pytest3' exited with 1
=> ERROR: in do_check() at srcpkgs/python3-pyzstd/template:20
```
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (2 preceding siblings ...)
2022-04-08 1:18 ` TinfoilSubmarine
@ 2022-04-08 1:35 ` TinfoilSubmarine
2022-04-08 1:37 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-08 1:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#issuecomment-1092354951
Comment:
> Both `python3-pybcj` and `python3-zipfile-deflate64` warn that testing via `setup.py` is deprecated and don't actually run tests. Can these be moved to `python3-pytest`? If not, just disable checks in those templates.
Running with pytest enables some tests for pybcj, but zipfile-deflate64 is...different. The tests aren't included in the source distribution from PyPi, so I tried switching to the GitHub source. Unfortunately, the package uses a zlib submodule and uses an internal zlib header file (zutil.h) not available in zlib-devel. So I think for now I will just skip tests on this one.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (3 preceding siblings ...)
2022-04-08 1:35 ` TinfoilSubmarine
@ 2022-04-08 1:37 ` TinfoilSubmarine
2022-04-08 1:39 ` [PR REVIEW] " TinfoilSubmarine
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-08 1:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages py7zr
https://github.com/void-linux/void-packages/pull/36538
python3-py7zr: update to 0.18.3.
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/36538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py7zr-36538.patch --]
[-- Type: text/x-diff, Size: 7092 bytes --]
From 6b9d14dfa5a1d47da1d573037a610c4f630cba74 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
+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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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
+}
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR REVIEW] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (4 preceding siblings ...)
2022-04-08 1:37 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-04-08 1:39 ` TinfoilSubmarine
2022-04-08 1:40 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-08 1:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1804 bytes --]
New review comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#discussion_r845673954
Comment:
Switching throws an error:
```
Traceback (most recent call last):
File "/builddir/zipfile-deflate64-0.2.0/setup.py", line 9, in <module>
setup(
File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 109, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 458, in __init__
_Distribution.__init__(
File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
self.finalize_options()
File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 851, in finalize_options
ep(self)
File "/usr/lib/python3.10/site-packages/setuptools_scm/integration.py", line 104, in infer_version
_assign_version(dist, config)
File "/usr/lib/python3.10/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
_version_missing(config)
File "/usr/lib/python3.10/site-packages/setuptools_scm/__init__.py", line 106, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /builddir/zipfile-deflate64-0.2.0.
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
```
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (5 preceding siblings ...)
2022-04-08 1:39 ` [PR REVIEW] " TinfoilSubmarine
@ 2022-04-08 1:40 ` TinfoilSubmarine
2022-04-11 15:03 ` TinfoilSubmarine
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-08 1:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages py7zr
https://github.com/void-linux/void-packages/pull/36538
python3-py7zr: update to 0.18.3.
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/36538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py7zr-36538.patch --]
[-- Type: text/x-diff, Size: 7088 bytes --]
From 6b9d14dfa5a1d47da1d573037a610c4f630cba74 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 20c39a5047ee7b82fcc885ae2a4433f7bf783130 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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..61b3233e7984
--- /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"
+makedepends="python3-devel"
+depends="python3"
+short_desc="Extract Deflate64 ZIP archives with Python's zipfile API"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+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 17c2318df7048fb62e697eb5513331c77f6e5433 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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
+}
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (6 preceding siblings ...)
2022-04-08 1:40 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-04-11 15:03 ` TinfoilSubmarine
2022-04-12 11:25 ` TinfoilSubmarine
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-11 15:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages py7zr
https://github.com/void-linux/void-packages/pull/36538
python3-py7zr: update to 0.18.3.
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/36538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py7zr-36538.patch --]
[-- Type: text/x-diff, Size: 7023 bytes --]
From 5eb6b20d30dd00b8915aff4e54f69c52a4c49fec Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/python3-pyppmd/template b/srcpkgs/python3-pyppmd/template
index 4034cde05478..1cd1974d8a3b 100644
--- a/srcpkgs/python3-pyppmd/template
+++ b/srcpkgs/python3-pyppmd/template
@@ -1,18 +1,19 @@
# 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="--noconftest \
+ --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 <joel@beckmeyer.us>"
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
From 1bac1ec30d3f340c0336226cda1f6b1d37334508 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 51c092f775e994f5225a2ad89cf944e3c658b22e Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 cd1fdd9711d7f84183745621d3828a9b37e6f555 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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..61b3233e7984
--- /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"
+makedepends="python3-devel"
+depends="python3"
+short_desc="Extract Deflate64 ZIP archives with Python's zipfile API"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+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 98f12c433ec9802fde3ed9d7f6ef39aae47898ac Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/python3-py7zr/template b/srcpkgs/python3-py7zr/template
index 7dcdc642f601..0113cb1dec27 100644
--- a/srcpkgs/python3-py7zr/template
+++ b/srcpkgs/python3-py7zr/template
@@ -1,20 +1,19 @@
# 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 --noconftest"
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 <joel@beckmeyer.us>"
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (7 preceding siblings ...)
2022-04-11 15:03 ` TinfoilSubmarine
@ 2022-04-12 11:25 ` TinfoilSubmarine
2022-04-12 11:36 ` TinfoilSubmarine
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-12 11:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages py7zr
https://github.com/void-linux/void-packages/pull/36538
python3-py7zr: update to 0.18.3.
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/36538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py7zr-36538.patch --]
[-- Type: text/x-diff, Size: 8705 bytes --]
From 1b328448dc12822f4bc4a08e04ba2309a2af5f59 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/python3-pyppmd/template b/srcpkgs/python3-pyppmd/template
index 4034cde05478..1cd1974d8a3b 100644
--- a/srcpkgs/python3-pyppmd/template
+++ b/srcpkgs/python3-pyppmd/template
@@ -1,18 +1,19 @@
# 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="--noconftest \
+ --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 <joel@beckmeyer.us>"
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
From 130af080a198ee846781416af8ef8884e217540f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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
---
.../patches/support_pytest.patch | 30 +++++++++++++++++++
srcpkgs/python3-pyzstd/template | 8 ++---
2 files changed, 34 insertions(+), 4 deletions(-)
create mode 100644 srcpkgs/python3-pyzstd/patches/support_pytest.patch
diff --git a/srcpkgs/python3-pyzstd/patches/support_pytest.patch b/srcpkgs/python3-pyzstd/patches/support_pytest.patch
new file mode 100644
index 000000000000..05ffa75fab5b
--- /dev/null
+++ b/srcpkgs/python3-pyzstd/patches/support_pytest.patch
@@ -0,0 +1,30 @@
+From b7ff78fc31ea054339693d6bf835134b8b9fbaa3 Mon Sep 17 00:00:00 2001
+From: Ma Lin <malincns@163.com>
+Date: Tue, 12 Apr 2022 13:00:30 +0800
+Subject: [PATCH] unittests supports pytest
+
+<more-tests>
+---
+ tests/test_zstd.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/tests/test_zstd.py b/tests/test_zstd.py
+index 263a753..0d254b9 100644
+--- a/tests/test_zstd.py
++++ b/tests/test_zstd.py
+@@ -3231,9 +3231,6 @@ def cb(a,b,c,d):
+ compress_stream(io.BytesIO(b''), io.BytesIO(), callback=cb)
+ decompress_stream(io.BytesIO(b''), io.BytesIO(), callback=cb)
+
+-def test_main():
+- unittest.main()
+-
+ # uncompressed size 130KB, more than a zstd block.
+ # with a frame epilogue, 4 bytes checksum.
+ TEST_DAT_130KB = (b'(\xb5/\xfd\xa4\x00\x08\x02\x00\xcc\x87\x03:\xaaYN4pf\xc8\xae\x06b\x02'
+@@ -4419,4 +4416,4 @@ def test_main():
+ b'\xb7\x99\x1b\xce\xc9\t*\x98\x97\xb43z\x01h\x9fu\xf1')
+
+ if __name__ == "__main__":
+- test_main()
++ unittest.main()
diff --git a/srcpkgs/python3-pyzstd/template b/srcpkgs/python3-pyzstd/template
index 708b8a193d9b..c097aeb44a09 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
@@ -8,14 +8,14 @@ make_build_args="--dynamic-link-zstd"
hostmakedepends="python3-setuptools"
makedepends="python3-devel libzstd-devel"
depends="python3"
+checkdepends="python3-pytest"
short_desc="Python bindings to zstd, API is similar to bz2/lzma/zlib module"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="BSD-3-Clause"
homepage="https://github.com/animalize/pyzstd"
+changelog="https://raw.githubusercontent.com/animalize/pyzstd/dev/README.rst"
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
post_install() {
vlicense LICENSE
From 9bbd5e223495b15fcc2ee98f6d30b440fc344d01 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 a25189a7d7266ad0ce811e38aac91fd378a11b01 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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..61b3233e7984
--- /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"
+makedepends="python3-devel"
+depends="python3"
+short_desc="Extract Deflate64 ZIP archives with Python's zipfile API"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+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 d702974acadd2028df6679c8fcadc67d565c5d4f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/python3-py7zr/template b/srcpkgs/python3-py7zr/template
index 7dcdc642f601..0113cb1dec27 100644
--- a/srcpkgs/python3-py7zr/template
+++ b/srcpkgs/python3-py7zr/template
@@ -1,20 +1,19 @@
# 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 --noconftest"
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 <joel@beckmeyer.us>"
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (8 preceding siblings ...)
2022-04-12 11:25 ` TinfoilSubmarine
@ 2022-04-12 11:36 ` TinfoilSubmarine
2022-04-12 11:36 ` [PR REVIEW] " TinfoilSubmarine
2022-04-14 16:02 ` [PR PATCH] [Closed]: " ahesford
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-12 11:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages py7zr
https://github.com/void-linux/void-packages/pull/36538
python3-py7zr: update to 0.18.3.
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/36538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py7zr-36538.patch --]
[-- Type: text/x-diff, Size: 8709 bytes --]
From 1b328448dc12822f4bc4a08e04ba2309a2af5f59 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/python3-pyppmd/template b/srcpkgs/python3-pyppmd/template
index 4034cde05478..1cd1974d8a3b 100644
--- a/srcpkgs/python3-pyppmd/template
+++ b/srcpkgs/python3-pyppmd/template
@@ -1,18 +1,19 @@
# 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="--noconftest \
+ --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 <joel@beckmeyer.us>"
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
From 130af080a198ee846781416af8ef8884e217540f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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
---
.../patches/support_pytest.patch | 30 +++++++++++++++++++
srcpkgs/python3-pyzstd/template | 8 ++---
2 files changed, 34 insertions(+), 4 deletions(-)
create mode 100644 srcpkgs/python3-pyzstd/patches/support_pytest.patch
diff --git a/srcpkgs/python3-pyzstd/patches/support_pytest.patch b/srcpkgs/python3-pyzstd/patches/support_pytest.patch
new file mode 100644
index 000000000000..05ffa75fab5b
--- /dev/null
+++ b/srcpkgs/python3-pyzstd/patches/support_pytest.patch
@@ -0,0 +1,30 @@
+From b7ff78fc31ea054339693d6bf835134b8b9fbaa3 Mon Sep 17 00:00:00 2001
+From: Ma Lin <malincns@163.com>
+Date: Tue, 12 Apr 2022 13:00:30 +0800
+Subject: [PATCH] unittests supports pytest
+
+<more-tests>
+---
+ tests/test_zstd.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/tests/test_zstd.py b/tests/test_zstd.py
+index 263a753..0d254b9 100644
+--- a/tests/test_zstd.py
++++ b/tests/test_zstd.py
+@@ -3231,9 +3231,6 @@ def cb(a,b,c,d):
+ compress_stream(io.BytesIO(b''), io.BytesIO(), callback=cb)
+ decompress_stream(io.BytesIO(b''), io.BytesIO(), callback=cb)
+
+-def test_main():
+- unittest.main()
+-
+ # uncompressed size 130KB, more than a zstd block.
+ # with a frame epilogue, 4 bytes checksum.
+ TEST_DAT_130KB = (b'(\xb5/\xfd\xa4\x00\x08\x02\x00\xcc\x87\x03:\xaaYN4pf\xc8\xae\x06b\x02'
+@@ -4419,4 +4416,4 @@ def test_main():
+ b'\xb7\x99\x1b\xce\xc9\t*\x98\x97\xb43z\x01h\x9fu\xf1')
+
+ if __name__ == "__main__":
+- test_main()
++ unittest.main()
diff --git a/srcpkgs/python3-pyzstd/template b/srcpkgs/python3-pyzstd/template
index 708b8a193d9b..c097aeb44a09 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
@@ -8,14 +8,14 @@ make_build_args="--dynamic-link-zstd"
hostmakedepends="python3-setuptools"
makedepends="python3-devel libzstd-devel"
depends="python3"
+checkdepends="python3-pytest"
short_desc="Python bindings to zstd, API is similar to bz2/lzma/zlib module"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="BSD-3-Clause"
homepage="https://github.com/animalize/pyzstd"
+changelog="https://raw.githubusercontent.com/animalize/pyzstd/dev/README.rst"
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
post_install() {
vlicense LICENSE
From 9bbd5e223495b15fcc2ee98f6d30b440fc344d01 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
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 81a4fe26ac8e01ee7235723422021b9b76dc9bdb Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 <joel@beckmeyer.us>"
+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 0f3f901de59d72f30c5f9ebf4bc464d5e507f2ae Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/python3-py7zr/template b/srcpkgs/python3-py7zr/template
index 7dcdc642f601..0113cb1dec27 100644
--- a/srcpkgs/python3-py7zr/template
+++ b/srcpkgs/python3-py7zr/template
@@ -1,20 +1,19 @@
# 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 --noconftest"
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 <joel@beckmeyer.us>"
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR REVIEW] python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (9 preceding siblings ...)
2022-04-12 11:36 ` TinfoilSubmarine
@ 2022-04-12 11:36 ` TinfoilSubmarine
2022-04-14 16:02 ` [PR PATCH] [Closed]: " ahesford
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-04-12 11:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
New review comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/36538#discussion_r848333177
Comment:
Nevermind, not having this issue anymore, not sure what I changed...
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Closed]: python3-py7zr: update to 0.18.3.
2022-04-05 18:11 [PR PATCH] python3-py7zr: update to 0.18.3 TinfoilSubmarine
` (10 preceding siblings ...)
2022-04-12 11:36 ` [PR REVIEW] " TinfoilSubmarine
@ 2022-04-14 16:02 ` ahesford
11 siblings, 0 replies; 13+ messages in thread
From: ahesford @ 2022-04-14 16:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
There's a closed pull request on the void-packages repository
python3-py7zr: update to 0.18.3.
https://github.com/void-linux/void-packages/pull/36538
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
-->
^ permalink raw reply [flat|nested] 13+ messages in thread