From 86e76885a1d9f5cfcac96d386bf917df87fced28 Mon Sep 17 00:00:00 2001 From: icp Date: Thu, 16 Feb 2023 19:39:39 +0530 Subject: [PATCH 1/2] python3-colorama: update to 0.4.6. --- srcpkgs/python3-colorama/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-colorama/template b/srcpkgs/python3-colorama/template index 36a3dda2081c..ec542c2b3b4a 100644 --- a/srcpkgs/python3-colorama/template +++ b/srcpkgs/python3-colorama/template @@ -1,18 +1,20 @@ # Template file for 'python3-colorama' pkgname=python3-colorama -version=0.4.5 -revision=2 -build_style=python3-module -hostmakedepends="unzip python3-setuptools" +version=0.4.6 +revision=1 +build_style=python3-pep517 +hostmakedepends="hatchling" depends="python3" +checkdepends="python3-pytest" short_desc="Cross-platform colored terminal text (Python3)" maintainer="Orphaned " license="BSD-3-Clause" homepage="https://github.com/tartley/colorama" changelog="https://github.com/tartley/colorama/raw/master/CHANGELOG.rst" distfiles="${PYPI_SITE}/c/colorama/colorama-${version}.tar.gz" -checksum=e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4 +checksum=08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 post_install() { vlicense LICENSE.txt + rm -r ${DESTDIR}/${py3_sitelib}/colorama/tests } From a16895d6ab20851274ce01c3d662f32b09055322 Mon Sep 17 00:00:00 2001 From: icp Date: Fri, 26 May 2023 00:43:08 +0530 Subject: [PATCH 2/2] common/build-style/python3-pep517.sh: ignore tests in temp destdir --- common/build-style/python3-pep517.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/build-style/python3-pep517.sh b/common/build-style/python3-pep517.sh index ffe52fccf3db..b524495c0b25 100644 --- a/common/build-style/python3-pep517.sh +++ b/common/build-style/python3-pep517.sh @@ -19,7 +19,8 @@ do_check() { testjobs="-n $XBPS_MAKEJOBS" fi - local testdir="${wrksrc}/tmp/$(date +%s)" + local testdir="${wrksrc}/.xbps-testdir/$(date +%s)" + python3 -m installer --destdir "${testdir}" \ ${make_install_args} ${make_install_target:-dist/*.whl}