Date: Tue, 14 May 2019 11:07:12 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r501646 - in head/security/py-tuf: . files Message-ID: <201905141107.x4EB7CQm075625@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Tue May 14 11:07:12 2019 New Revision: 501646 URL: https://svnweb.freebsd.org/changeset/ports/501646 Log: security/py-tuf: Update to 0.11.1 - Remove setup.py patch, we'll invoke tests directly for now Changelog: https://github.com/theupdateframework/tuf/releases/tag/v0.11.1 Added: head/security/py-tuf/files/patch-tests_test__download.py (contents, props changed) Deleted: head/security/py-tuf/files/patch-setup.py Modified: head/security/py-tuf/Makefile head/security/py-tuf/distinfo Modified: head/security/py-tuf/Makefile ============================================================================== --- head/security/py-tuf/Makefile Tue May 14 10:58:47 2019 (r501645) +++ head/security/py-tuf/Makefile Tue May 14 11:07:12 2019 (r501646) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= tuf -PORTVERSION= 0.10.0 -PORTREVISION= 1 +PORTVERSION= 0.11.1 CATEGORIES= security devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,19 +10,28 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org COMMENT= Framework for securing software update systems -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}iso8601>0:devel/py-iso8601@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pynacl>0:security/py-pynacl@${PY_FLAVOR} +LICENSE= MIT APACHE20 +LICENSE_COMB= dual +#LICENSE_FILE= Not packaged in PyPI sdist +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.12:devel/py-iso8601@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}securesystemslib>=0.11.2:security/py-securesystemslib@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + # Actually 2.6-3.5 USES= python USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes +# https://github.com/theupdateframework/tuf/pull/781#discussion_r221880421 +post-patch: + ${REINPLACE_CMD} -e \ + "s|'python',|sys.executable,|g" \ + ${WRKSRC}/tests/*.py + do-test: - @cd ${WRKSRC}/tests && ${PYTHON_CMD} -m pytest -rsv + @cd ${WRKSRC}/tests && ${PYTHON_CMD} -m pytest -v -rs .include <bsd.port.mk> Modified: head/security/py-tuf/distinfo ============================================================================== --- head/security/py-tuf/distinfo Tue May 14 10:58:47 2019 (r501645) +++ head/security/py-tuf/distinfo Tue May 14 11:07:12 2019 (r501646) @@ -1,3 +1,3 @@ -TIMESTAMP = 1470662351 -SHA256 (tuf-0.10.0.tar.gz) = 34042699053ded003c7029c4c450f7ba464cb3a154c4947002432471b392f73e -SIZE (tuf-0.10.0.tar.gz) = 1719235 +TIMESTAMP = 1533611892 +SHA256 (tuf-0.11.1.tar.gz) = 65d5f87a41830494bf585f8a5082618ab26015d156a67f23e37552419e427cf1 +SIZE (tuf-0.11.1.tar.gz) = 2726141 Added: head/security/py-tuf/files/patch-tests_test__download.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-tuf/files/patch-tests_test__download.py Tue May 14 11:07:12 2019 (r501646) @@ -0,0 +1,13 @@ +# https://github.com/theupdateframework/tuf/pull/781#discussion_r221880421 +# Need to import sys to use it + +--- tests/test_download.py.orig 2019-05-14 10:30:26 UTC ++++ tests/test_download.py +@@ -36,6 +36,7 @@ import logging + import os + import random + import subprocess ++import sys + import time + import unittest +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905141107.x4EB7CQm075625>