Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2017 19:03:45 +0000 (UTC)
From:      Carlo Strub <cs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r451336 - head/security/py-stem
Message-ID:  <201710051903.v95J3jKx011507@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cs
Date: Thu Oct  5 19:03:45 2017
New Revision: 451336
URL: https://svnweb.freebsd.org/changeset/ports/451336

Log:
  Added license file; Added dependencies; Added tests; Added autoplist; Set
  supported python version range.
  
  PR:		221637
  Submitted by:	Yuri Victorovich <yuri@rawbw.com>
  Approved by:	maintainer

Deleted:
  head/security/py-stem/pkg-plist
Modified:
  head/security/py-stem/Makefile

Modified: head/security/py-stem/Makefile
==============================================================================
--- head/security/py-stem/Makefile	Thu Oct  5 19:02:09 2017	(r451335)
+++ head/security/py-stem/Makefile	Thu Oct  5 19:03:45 2017	(r451336)
@@ -3,6 +3,7 @@
 
 PORTNAME=	stem
 PORTVERSION=	1.5.4
+PORTREVISION=	1
 CATEGORIES=	security net python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,9 +12,18 @@ MAINTAINER=	cs@FreeBSD.org
 COMMENT=	Python controller library for Tor
 
 LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		python
-USE_PYTHON=	distutils
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
+		${PYTHON_PKGNAMEPREFIX}pyflakes>0:devel/py-pyflakes \
+		${PYTHON_PKGNAMEPREFIX}pycodestyle>0:devel/py-pycodestyle
+
+USES=		python:2.6+
+USE_PYTHON=	distutils autoplist
 NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} run_tests.py -a
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710051903.v95J3jKx011507>