python3-rencode: update to 1.0.8.

This commit is contained in:
Andrew J. Hesford 2025-07-28 11:15:55 -04:00
parent cfdc2cc058
commit c317044738
2 changed files with 30 additions and 5 deletions

View file

@ -0,0 +1,13 @@
Cf. https://github.com/aresch/rencode/commit/e7ec8ea718e73a8fee7dbc007c262e1584f7f94b
--- a/build.py
+++ b/build.py
@@ -11,7 +11,7 @@
from setuptools.command.build_ext import build_ext
-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"]
+COMPILE_ARGS = []
LINK_ARGS: list[str] = []
INCLUDE_DIRS: list[str] = []
LIBRARIES: list[str] = []

View file

@ -1,9 +1,9 @@
# Template file for 'python3-rencode'
pkgname=python3-rencode
version=1.0.6
revision=11
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython python3-wheel"
version=1.0.8
revision=1
build_style=python3-pep517
hostmakedepends="python3-poetry-core python3-setuptools python3-Cython"
makedepends="python3-devel"
depends="python3"
short_desc="Python3 module for fast (basic) object serialization"
@ -11,4 +11,16 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/aresch/rencode"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=0ed61111f053ea37511da86ca7aed2a3cfda6bdaa1f54a237c4b86eea52f0733
checksum=480aab74948a7f339b749b5c39bdb4caf15429f4b49a998c770d5f371098d351
do_build() {
pyproject-build --no-isolation --wheel .
}
do_check() {
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
python3 -m installer --destdir "${testdir}" dist/*.whl
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
python3 tests/test_rencode.py
}