aboutsummaryrefslogtreecommitdiff
path: root/devel/py-setuptools_scm/Makefile
blob: c3a15793cfb06fc6668ac1127b77d281ac6689ac (plain) (blame)
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
PORTNAME=	setuptools_scm
PORTVERSION=	4.1.2
PORTREVISION=	3
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	kai@FreeBSD.org
COMMENT=	Setuptools plugin to manage your versions by scm tags

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

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

USES=		python:3.6+
USE_PYTHON=	autoplist distutils

# Workaround to get a 100% working test suite.  This can be removed once
# https://github.com/pypa/setuptools_scm/issues/353 is solved.
TEST_ENV=	_PYTEST_SESSION=yes

NO_ARCH=	yes

OPTIONS_DEFINE=		TOML
OPTIONS_DEFAULT=	TOML

TOML_DESC=		Support for parsing pyproject.toml files [PEP 517/518]
TOML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR}

do-test:
	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs

.include <bsd.port.mk>