From nobody Thu Jul 07 12:37:29 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 432CD10FFB71; Thu, 7 Jul 2022 12:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ldwsk0t5Lz3k9p; Thu, 7 Jul 2022 12:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657197450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AJ/z3mdbrLMoc/eafCUvwpSmtRUE5p8LGPeML6sF8lU=; b=EvMxlRxAGFJ75AbgJmrdX8F1j3cFAhCHeDzPHShOiUd2qLn1wb/Jr93rgbGG2Gqp6Wigog t7p1jkm6oZFrnMDo+880jgDJMTIaqbm/UcilcLyXcAoo0Mf/9vdtqhlfdCdoFR+QSJmdFR n5OzsW6rGTOC2tj2fBFw3YxlUf+FXN8QVmJJIE2o4rC7Gi5xn4aDZa/0J+j1MfKTs6DdIQ 4dgCVbY91drA3EflwAJ3cIMR64KDt7vHItzP8wLWjAjUhE93WvBW806EOiHwo1Xe8lUXd0 +3Vlp5xQIcog0pWXg8yrrMpu53HOGiTY8ETnwNBufxClmgMar4ZALd3UNcjlSA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ldwsj6qzCzk1X; Thu, 7 Jul 2022 12:37:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 267CbTRM074525; Thu, 7 Jul 2022 12:37:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 267CbT5E074524; Thu, 7 Jul 2022 12:37:29 GMT (envelope-from git) Date: Thu, 7 Jul 2022 12:37:29 GMT Message-Id: <202207071237.267CbT5E074524@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 5389ede7571f - main - devel/py-unittest2: Relax USES=python List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5389ede7571f23a7482356c8ce4f8c637f695e97 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657197450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AJ/z3mdbrLMoc/eafCUvwpSmtRUE5p8LGPeML6sF8lU=; b=Z2Zr6x0IrQSEMdUOZz4BTT2F5I+BJGnwx2WJ3iFV8CAyk325eh5WI9Rn5pBgDRVE1ZtvKy z4oUhOyxQYfs+AQevIBABZ562ZCkVrgjT9r2HBXDaFPry/1sVNnPJiykVsq8KwmVL9qbb1 xkvM+VCoHBBELTKkOYwtrJB+D/PXFAO1rmGScZtuTX4rn34nBvfbqHvYLBbPNz0jeTdwvS /papT3+vLEv7e/Kz4yb5gzSNs0RyHpXkW0N9d5RiTlINnm+UH/pLpHuE387nkAX4ZtPrzu 9/awHmsSCYbiNDDK4RO1U9vueT6iSXXD/tdRhRZ413ZrF8FUPGUKa0ElfVZe3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657197450; a=rsa-sha256; cv=none; b=lF7bMV3kNyyqGsohmCmE0VewI0BLDQxHfduFAZFfOVhSCfl4hWJqtxtPXWEtfuql6XBPZt wJHzr2M0hIplZaTYckdX4BzxqcBTashAVcSwy+vxtID0vQH4cnRwd8pJn1EZ10+PrqdqZo zNNQsXhkeEA8ICtLz1JMVscewJ3H0nfH1LN8sixgfIEOtzSspRFeZWOyQqwSWsbemBnYwW ThgDEbvF2qP84JvQTvyZvGjBV6r4TQ6FrUIgFiDRDqkhBz1bwxe192CCqScKFe226fJ7GX CKAYxtfMo67S1ol8uI8tpiszVTY0ZvXWuPejhV461T3Ehg97Er2mjoTcOlvziQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5389ede7571f23a7482356c8ce4f8c637f695e97 commit 5389ede7571f23a7482356c8ce4f8c637f695e97 Author: Po-Chuan Hsieh AuthorDate: 2022-07-07 12:22:24 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-07-07 12:36:16 +0000 devel/py-unittest2: Relax USES=python - Allow build with Python 3.10+ --- devel/py-unittest2/Makefile | 10 ++++++++-- devel/py-unittest2/files/extra-patch-python310 | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/devel/py-unittest2/Makefile b/devel/py-unittest2/Makefile index 58594eba2fe2..ac6af83a614a 100644 --- a/devel/py-unittest2/Makefile +++ b/devel/py-unittest2/Makefile @@ -15,12 +15,18 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six@${PY_FLAVOR} \ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traceback2>=0:devel/py-traceback2@${PY_FLAVOR} -USES= python:3.7-3.9 +USES= python:3.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes +.include + +.if ${PYTHON_REL} >= 31000 +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-python310 +.endif + do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m unittest2 -v -.include +.include diff --git a/devel/py-unittest2/files/extra-patch-python310 b/devel/py-unittest2/files/extra-patch-python310 new file mode 100644 index 000000000000..cb6342052da1 --- /dev/null +++ b/devel/py-unittest2/files/extra-patch-python310 @@ -0,0 +1,11 @@ +--- unittest2/compatibility.py.orig 2014-10-29 10:51:58 UTC ++++ unittest2/compatibility.py +@@ -140,7 +140,7 @@ except ImportError: + ### ChainMap (helper for configparser and string.Template) + ######################################################################## + +-class ChainMap(collections.MutableMapping): ++class ChainMap(collections.abc.MutableMapping): + ''' A ChainMap groups multiple dicts (or other mappings) together + to create a single, updateable view. +