1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

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
This commit is contained in:
Kubilay Kocak 2019-05-14 11:07:12 +00:00
parent a0b56eba74
commit 76de21d7aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501646
4 changed files with 32 additions and 21 deletions

View File

@ -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,11 +10,14 @@ 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
@ -23,7 +25,13 @@ 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>

View File

@ -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

View File

@ -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'
]

View File

@ -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