diff options
author | Kubilay Kocak <koobs@FreeBSD.org> | 2019-12-20 10:35:43 +0000 |
---|---|---|
committer | Kubilay Kocak <koobs@FreeBSD.org> | 2019-12-20 10:35:43 +0000 |
commit | f5ee4db3b9bd3de38006199fcb6370a71ae942f0 (patch) | |
tree | 06db24073cb8434305535e870b12d3925503ec8c | |
parent | 838192f6f09f9be77596cbe60574535b0bb7cb77 (diff) | |
download | ports-f5ee4db3b9bd3de38006199fcb6370a71ae942f0.tar.gz ports-f5ee4db3b9bd3de38006199fcb6370a71ae942f0.zip |
MFH: r520357 www/py-httmock: Switch to USE_GITHUB, Remove BROKEN
While we prefer using CHEESESHOP when souces are provided there, in the
event it's missing valuable files such as tests, test data, LICENCE, it
is preferable and more robust to use an alternative source entirely, than a
combination of CHEESESHOP (or anything else) combined with another source
for specific files, which can cause issues [1]
This change switches to USE_GITHUB and removes unecessary and associated
Makefile entries accordingly.
[1] ports r516897
See Also:
https://github.com/patrys/httmock/pull/59
PR: 242694
Submitted by: Derek Schrock <dereks lifeofadishwasher com>
Approved by: ports-secteam (blanket: fetch/build fix)
Notes
Notes:
svn path=/branches/2019Q4/; revision=520498
-rw-r--r-- | www/py-httmock/Makefile | 15 | ||||
-rw-r--r-- | www/py-httmock/distinfo | 8 |
2 files changed, 6 insertions, 17 deletions
diff --git a/www/py-httmock/Makefile b/www/py-httmock/Makefile index 257109e160ac..f550e348fafa 100644 --- a/www/py-httmock/Makefile +++ b/www/py-httmock/Makefile @@ -3,13 +3,7 @@ PORTNAME= httmock PORTVERSION= 1.3.0 CATEGORIES= www python -MASTER_SITES= CHEESESHOP \ - https://raw.githubusercontent.com/patrys/${PORTNAME}/${PORTVERSION}/:tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - tests.py:tests -DIST_SUBDIR= py-${PORTNAME} -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= dereks@lifeofadishwasher.com COMMENT= Mocking library for requests @@ -20,15 +14,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests@${PY_FLAVOR} USES= python +USE_GITHUB= yes # tests missing from PyPI sdist USE_PYTHON= distutils autoplist -NO_ARCH= yes +GH_ACCOUNT= patrys -# Description: tests.py is missing from the pypi package -# Issue ID: https://github.com/patrys/httmock/issues/55 -# TODO: Remove extra MASTER_SITES, DISTFILES/SUBDIR, EXTRACT_ONLY, post-extract -post-extract: - @${CP} ${DISTDIR}/${DIST_SUBDIR}/tests.py ${WRKSRC} +NO_ARCH= yes do-test: cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test diff --git a/www/py-httmock/distinfo b/www/py-httmock/distinfo index 3326adaa5f4c..9104d85146fd 100644 --- a/www/py-httmock/distinfo +++ b/www/py-httmock/distinfo @@ -1,5 +1,3 @@ -TIMESTAMP = 1548775891 -SHA256 (py-httmock/httmock-1.3.0.tar.gz) = e0bbaced224426bcd994a5f1c64ab60e0c923ea615825c53e6c0190b2a7341fe -SIZE (py-httmock/httmock-1.3.0.tar.gz) = 4428 -SHA256 (py-httmock/tests.py) = 544bcd2a837b7493df8062b16611de4e53fc2761ffa25e9553a2ffdbc0972d2c -SIZE (py-httmock/tests.py) = 11680 +TIMESTAMP = 1576633617 +SHA256 (patrys-httmock-1.3.0_GH0.tar.gz) = 4716729f0d07f3f6043dde43545a5381c4c6031a62e9dc9eed21e73c63d86722 +SIZE (patrys-httmock-1.3.0_GH0.tar.gz) = 6186 |