python3-distlib: update to 0.3.9.

This commit is contained in:
Gonzalo Tornaría 2025-02-06 18:04:35 -03:00 committed by classabbyamp
parent cc9bc3b218
commit 0b42c4cacc
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -1,7 +1,7 @@
# Template file for 'python3-distlib' # Template file for 'python3-distlib'
pkgname=python3-distlib pkgname=python3-distlib
version=0.3.6 version=0.3.9
revision=3 revision=1
build_style=python3-pep517 build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel" hostmakedepends="python3-setuptools python3-wheel"
depends="python3" depends="python3"
@ -12,12 +12,18 @@ license="Python-2.0"
homepage="https://distlib.readthedocs.io/" homepage="https://distlib.readthedocs.io/"
changelog="https://raw.githubusercontent.com/pypa/distlib/master/CHANGES.rst" changelog="https://raw.githubusercontent.com/pypa/distlib/master/CHANGES.rst"
distfiles="${PYPI_SITE}/d/distlib/distlib-${version}.tar.gz" distfiles="${PYPI_SITE}/d/distlib/distlib-${version}.tar.gz"
checksum=14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46 checksum=a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403
# see: https://github.com/pypa/distlib/issues/161#issuecomment-1119511558
make_check_pre="env PYTHONHASHSEED=0"
# this uses https://docs.python.org/3/library/test.html (not installed)
# see https://github.com/pypa/distlib/issues/214#issuecomment-1945563204
make_check_args="
--deselect tests/test_scripts.py::ScriptTestCase::test_script_run"
pre_check() { pre_check() {
# this is testing `is_writable('/etc')`, which for us is `True`
vsed -i -e "/self.assertFalse(self.fileop.is_writable/s/False/True/" tests/test_util.py vsed -i -e "/self.assertFalse(self.fileop.is_writable/s/False/True/" tests/test_util.py
vsed -i -e '/def test_sequencer_basic/s/test//' tests/test_util.py
vsed -i -e '/def test_dependency_finder/s/test//' tests/test_locators.py
} }
post_install() { post_install() {