From nobody Wed Mar 22 11:06:39 2023 X-Original-To: dev-commits-ports-all@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 4PhQdr0njQz40S72; Wed, 22 Mar 2023 11:06:40 +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 4PhQdr0JpMz4MbT; Wed, 22 Mar 2023 11:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679483200; 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=QV6SmYCvGZm54aak1PF0V5zAmX9j5dXvF/Q0INJiW94=; b=FB7p1isO01o72UYJGv2U6V6lsX4CpRAkTQCqJcQxJ94iJaTlgspu31xZ18t+z3fofkLYEJ 3NTF+6nlpGMjQXhMKjytg5lNt51s/1nEwwE+gk3RervCo4gFazeSAp0RBfslj6c9eaK8tv XzSYqmWNSBL15+MTiLD6uZ+UOVV3pBbR4CBQ3vOQ/MOgzlwvC6rObYPUC8kwwevWAKWSXA FG7HCB7A1do+Q/q769nFIF6NVBW/fHkmyaZlXuqHQ5HL5H3zbp+F8vYHzYFMVfHXUjE4pO l9q3kmEwte/RNKZWLYnvpenZAyTsojg5qLrP5dYsQYdla2c7STJfeXAgi2A7Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679483200; 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=QV6SmYCvGZm54aak1PF0V5zAmX9j5dXvF/Q0INJiW94=; b=ALhbuMEXxZwsUU/fbjo/fqaJG3bDqUuK2IUgkoeUzJPdFinYvQB1hPZwrSzWTWWe3nJHoD Blpoznc/J1jsuwCMGMwok249cd7Wso+a+tAYi7S7ZLyWIBENsURjtdu3ICATklNubMf2yX UJ8GZyFORuW2Jpg7mGKyHVyIr/C1TK1RNKOKZ80WGuxaKnD1pM5Bxc/ESbU0sx734OfD1P St3twAqwnV1EBNrpHIa+In4Za0H+PTBK+/LEjV0bBP7dhADEHVFOBWTAlNkqRRX/2/msr+ NmsveBJCWPEGGfU9vfhefEKbx8dJLvngDZF3/TNYO+L2wWJ8mVNJflBIDCt35A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679483200; a=rsa-sha256; cv=none; b=czIRzgywpXLCuv9f4agFEuok84/ogYaA6SM9KK9VxiQYM7hijsCmVJDs1utzwm06k9q8Fb Uf4EH1Z9i278yBB2NxKTwWSUhgwRr4qBKzqi91p49hmQXfZ3bIjqpjYh22tdKm28G6DY5J K3U2/UfYggQ+pU0JrALJ9cSGEc3Jbfh4HdeofNw6p5E13dKOmHMaIvpBqTUOjG2NCLht4Q o5MdSe+61fYtw1tByBTaw7zV63wno4Ak4Mp2ktzsehHucb9xNJRw8H1Y9cE+Vbqo89/SDl QbtMUZilQByayj1Il9f1MiGbtAiuwsFeGzdRcbCmxGLEFwZ4hpcyEd8Hnqus3g== 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 4PhQdq6JkZzqk6; Wed, 22 Mar 2023 11:06:39 +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 32MB6d25082791; Wed, 22 Mar 2023 11:06:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MB6dN5082790; Wed, 22 Mar 2023 11:06:39 GMT (envelope-from git) Date: Wed, 22 Mar 2023 11:06:39 GMT Message-Id: <202303221106.32MB6dN5082790@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthew Seaman Subject: git: a5a598dbb11b - main - devel/py-cerberus: fix license, tests List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: matthew X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5a598dbb11b98d77f8a8a3fce9ed439b174ce01 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by matthew: URL: https://cgit.FreeBSD.org/ports/commit/?id=a5a598dbb11b98d77f8a8a3fce9ed439b174ce01 commit a5a598dbb11b98d77f8a8a3fce9ed439b174ce01 Author: Matthew Seaman AuthorDate: 2023-03-22 11:01:10 +0000 Commit: Matthew Seaman CommitDate: 2023-03-22 11:06:31 +0000 devel/py-cerberus: fix license, tests Use correct license -- this is ISCL rather than MIT licensed. Switch to PEP517 build Fix pytest and switch to USE_PYTHON=pytest. Disable benchmark tests by removing them -- the PYPI distribution is missing modules imported from those tests and results in no tests being runnable at all. --- devel/py-cerberus/Makefile | 17 +++++++++++------ devel/py-cerberus/distinfo | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/devel/py-cerberus/Makefile b/devel/py-cerberus/Makefile index eca1457c57b4..efad329a4801 100644 --- a/devel/py-cerberus/Makefile +++ b/devel/py-cerberus/Makefile @@ -1,5 +1,6 @@ PORTNAME= Cerberus PORTVERSION= 1.3.4 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -8,19 +9,23 @@ MAINTAINER= matthew@FreeBSD.org COMMENT= Lightweight, extensible validation tool for Python dictionaries WWW= https://github.com/pyeve/cerberus -LICENSE= MIT +LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} NO_ARCH= yes USES= python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 pytest + +# benchmark tests are missing files not included in PYPI tarballs and +# break running pytest at all + +post-patch: + ${RM} ${WRKSRC}/cerberus/benchmarks/test_overall_performance_1.py + ${RM} ${WRKSRC}/cerberus/benchmarks/test_overall_performance_2.py # Not to be confused with devel/py-pycerberus which fulfils a quite # different function. -do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test - .include diff --git a/devel/py-cerberus/distinfo b/devel/py-cerberus/distinfo index 182ebd7192a5..ab03f0c07171 100644 --- a/devel/py-cerberus/distinfo +++ b/devel/py-cerberus/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1620481313 +TIMESTAMP = 1679481062 SHA256 (Cerberus-1.3.4.tar.gz) = d1b21b3954b2498d9a79edf16b3170a3ac1021df88d197dc2ce5928ba519237c SIZE (Cerberus-1.3.4.tar.gz) = 63835