summaryrefslogtreecommitdiff
path: root/devel/py-dotty-dict/Makefile
blob: dc9ccc6404558a24cdf564310b0986555ffaa6cb (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
PORTNAME=	dotty-dict
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.0
CATEGORIES=	devel python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Dictionary wrapper for quick access to deeply nested keys

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}

USES=		python
# Use GitHub instead of CHEESESHOP to get the test files.
USE_GITHUB=	yes
GH_ACCOUNT=	pawelzny
GH_PROJECT=	${PORTNAME:S/-/_/}
USE_PYTHON=	autoplist distutils

NO_ARCH=	yes

do-test:
# Call the pytest module directly instead of using the official "test"
# make target in order to avoid calling pipenv.
	(cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)

.include <bsd.port.mk>