blob: 3ca7da0b0020a51f42d331c395018716bbde97b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= gandi.cli
PORTVERSION= 0.19
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Gandi command line interface
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
${PYTHON_PKGNAMEPREFIX}click>=3.1:devel/py-click \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests \
${PYTHON_PKGNAMEPREFIX}ipy>0:net-mgmt/py-ipy
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
.endif
post-extract:
${FIND} ${WRKSRC} -type d -name __pycache__ -exec ${RM} -r {} + && \
${FIND} ${WRKSRC} -type f -name '*.py[co]' -exec ${RM} {} +
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>
|