Index: head/security/py-tuf/Makefile =================================================================== --- head/security/py-tuf/Makefile (revision 501645) +++ head/security/py-tuf/Makefile (revision 501646) @@ -1,29 +1,37 @@ # Created by: Kubilay Kocak # $FreeBSD$ PORTNAME= tuf -PORTVERSION= 0.10.0 -PORTREVISION= 1 +PORTVERSION= 0.11.1 CATEGORIES= security devel python MASTER_SITES= CHEESESHOP 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 Index: head/security/py-tuf/distinfo =================================================================== --- head/security/py-tuf/distinfo (revision 501645) +++ head/security/py-tuf/distinfo (revision 501646) @@ -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 Index: head/security/py-tuf/files/patch-setup.py =================================================================== --- head/security/py-tuf/files/patch-setup.py (revision 501645) +++ head/security/py-tuf/files/patch-setup.py (nonexistent) @@ -1,10 +0,0 @@ ---- setup.py.orig 2016-08-08 13:44:46 UTC -+++ setup.py -@@ -111,6 +111,7 @@ setup( - install_requires = ['iso8601', 'six'], - packages = find_packages(exclude=['tests']), - extras_require = extras, -+ test_suite='tests', - scripts = [ - 'tuf/client/basic_client.py' - ] Property changes on: head/security/py-tuf/files/patch-setup.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/py-tuf/files/patch-tests_test__download.py =================================================================== --- head/security/py-tuf/files/patch-tests_test__download.py (nonexistent) +++ head/security/py-tuf/files/patch-tests_test__download.py (revision 501646) @@ -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 + Property changes on: head/security/py-tuf/files/patch-tests_test__download.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property