blob: 0b072f383c76f366608419bb071fd82967993d40 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
PORTNAME= setuptools_scm
PORTVERSION= 7.1.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 7
MAINTAINER= matthew@FreeBSD.org
COMMENT= Setuptools plugin to manage your versions by scm tags
WWW= https://pypi.org/project/setuptools-scm/ \
https://github.com/pypa/setuptools_scm
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
${PY_SETUPTOOLS} \
${PY_TOMLI} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
${PY_TOMLI} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAVOR} \
git:devel/git \
${PY_MERCURIAL} \
gpg:security/gnupg
USES= python
USE_PYTHON= autoplist pep517 pytest
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}-${PORTNAME}
NO_ARCH= yes
TEST_ENV+= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
# Optional tests that depend on `dir` (windows) and `hg_git` (no longer in ports) will be skipped
# test_case_mismatch_on_windows_git we're not on windows...
# test_on_old_setuptools devel/py-setuptools is newer than the versions tested here
# test_not_owner requires passwordless sudo access
PYTEST_IGNORED_TESTS= test_case_mismatch_on_windows_git \
test_on_old_setuptools \
test_not_owner
# https://github.com/pypa/setuptools_scm/issues/449
PYTEST_BROKEN_TESTS= test_non_dotted_version
.include <bsd.port.mk>
|