mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
61d8f58445
Update create commands for namespaces: vm, paas, ip, disk, vlan, webacc to handle new datacenter status: * prevent using a closed datacenter for creation * display a warning when using a datacenter which will be closed in the future Update 'gandi mailbox info' command: aliases are now sorted Fixes #178: 'gandi account info' command now display prepaid amount Fixes #185: 'gandi domain create' command can now change nameservers Fixes #187: 'gandi record list' command has a --limit parameter Fixes #188: broken links in README Fixes certificate unittest for python3 Sponsored by: Gandi.net
40 lines
956 B
Makefile
40 lines
956 B
Makefile
# 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} -rf {} + && \
|
|
${FIND} ${WRKSRC} -type f -name '*.py[co]' -exec ${RM} -f {} +
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|