From owner-svn-ports-head@freebsd.org Tue Apr 17 04:08:59 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DCCEFA292E; Tue, 17 Apr 2018 04:08:59 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3F8685EDC; Tue, 17 Apr 2018 04:08:58 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE82327200; Tue, 17 Apr 2018 04:08:58 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3H48wWl058516; Tue, 17 Apr 2018 04:08:58 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3H48wRt058512; Tue, 17 Apr 2018 04:08:58 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201804170408.w3H48wRt058512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Tue, 17 Apr 2018 04:08:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467557 - in head/www: . py-httmock X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/www: . py-httmock X-SVN-Commit-Revision: 467557 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 04:08:59 -0000 Author: swills Date: Tue Apr 17 04:08:58 2018 New Revision: 467557 URL: https://svnweb.freebsd.org/changeset/ports/467557 Log: www/py-httmock: create port A mocking library for requests for Python 2.7 and 3.4+. WWW: https://github.com/patrys/httmock PR: 227194 Submitted by: dereks@lifeofadishwasher.com Added: head/www/py-httmock/ head/www/py-httmock/Makefile (contents, props changed) head/www/py-httmock/distinfo (contents, props changed) head/www/py-httmock/pkg-descr (contents, props changed) Modified: head/www/Makefile (contents, props changed) Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Tue Apr 17 03:21:39 2018 (r467556) +++ head/www/Makefile Tue Apr 17 04:08:58 2018 (r467557) @@ -1680,6 +1680,7 @@ SUBDIR += py-html SUBDIR += py-html5-parser SUBDIR += py-html5lib + SUBDIR += py-httmock SUBDIR += py-http-parser SUBDIR += py-httpie SUBDIR += py-httplib2 Added: head/www/py-httmock/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-httmock/Makefile Tue Apr 17 04:08:58 2018 (r467557) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= httmock +PORTVERSION= 1.2.6 +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 + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests@${FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +# 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: + @${MV} ${DISTDIR}/${DIST_SUBDIR}/tests.py ${WRKSRC} + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include Added: head/www/py-httmock/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-httmock/distinfo Tue Apr 17 04:08:58 2018 (r467557) @@ -0,0 +1,5 @@ +TIMESTAMP = 1522615776 +SHA256 (py-httmock/httmock-1.2.6.tar.gz) = 4696306d1ff835c3ca865fdef2684d7e130b4120cc00126f862ba4797b1602ac +SIZE (py-httmock/httmock-1.2.6.tar.gz) = 4399 +SHA256 (py-httmock/tests.py) = 544bcd2a837b7493df8062b16611de4e53fc2761ffa25e9553a2ffdbc0972d2c +SIZE (py-httmock/tests.py) = 11680 Added: head/www/py-httmock/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-httmock/pkg-descr Tue Apr 17 04:08:58 2018 (r467557) @@ -0,0 +1,3 @@ +A mocking library for requests for Python 2.7 and 3.4+. + +WWW: https://github.com/patrys/httmock