svn commit: r502431 - branches/2019Q2/security/py-pywinrm

Kubilay Kocak koobs at FreeBSD.org
Fri May 24 09:00:47 UTC 2019


Author: koobs
Date: Fri May 24 09:00:45 2019
New Revision: 502431
URL: https://svnweb.freebsd.org/changeset/ports/502431

Log:
  MFH: r498996 security/py-pywinrm: Allow builds with Python 3.x
  
  Upstream supports and tests against up to Python 3.6 [1] and declares up to
  3.6 in its Trove Classifiers [2].
  
  Fix incorrect Python version support declaration in USES=python accordingly,
  allowing Python 3.x builds. [3]
  
  While I'm here, add TEST_DEPENDS and a test target to help with QA.
  
  [1] https://github.com/diyan/pywinrm/blob/master/.travis.yml
  [2] setup.py: 'Programming Language :: Python :: 3.6'
  
  PR:		237178 [3]
  Reported by:	<timp87 gmail com> [3]
  Approved by:	portmgr (blanket: bug fix, framework compliance)
  
  Approved by:	ports-secteam (blanket: bugfix)

Modified:
  branches/2019Q2/security/py-pywinrm/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/security/py-pywinrm/Makefile
==============================================================================
--- branches/2019Q2/security/py-pywinrm/Makefile	Fri May 24 08:52:36 2019	(r502430)
+++ branches/2019Q2/security/py-pywinrm/Makefile	Fri May 24 09:00:45 2019	(r502431)
@@ -2,6 +2,7 @@
 
 PORTNAME=	pywinrm
 PORTVERSION=	0.3.0
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,8 +19,16 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xmltodict>0:devel/
 		${PYTHON_PKGNAMEPREFIX}requests-kerberos>=0.10.0:security/py-requests-kerberos@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests-credssp>=0.0.1:security/py-requests-credssp@${PY_FLAVOR}
 
-NO_ARCH=	yes
-USES=		python:2.7
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+
+# Actually 2.6-2.7,3.3-3.6
+USES=		python
 USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v winrm/tests/
 
 .include <bsd.port.mk>


More information about the svn-ports-branches mailing list