mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 14:10:30 -04:00
Directory and PORTNAME changed to match normalised name in release tarball; consumers updated to match. Although setuptools itself is specified as a run dependency in the Python package metadata, it is currently left out here to prevent environment pollution until at least PR 270510 is committed. Additionally, this version of setuptools-scm requires setuptools>=61, which means this version is only meant for USE_PYTHON=pep517 ports as all USE_PYTHON=distutils ports will switch to devel/py-setuptools58 also after PR 270510. science/py-emmet-core is switched to devel/py-setuptools_scm7 accordingly, as it specifies setuptools-scm<8. devel/py-{flit-scm,hatch-vcs} have ${PY_SETUPTOOLS} added to RUN_DEPENDS to compensate. Further details: https://wiki.freebsd.org/Python/setuptools Reported by: yuri Co-authored by: matthew Exp-run by: antoine (earlier iteration) Approved by: yuri (science/py-emmet-core, previous iteration) PR: 272134 Differential Revision: https://reviews.freebsd.org/D39288
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
PORTNAME= setuptools-scm
|
|
PORTVERSION= 8.0.4
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Setuptools plugin to manage your versions by scm tags
|
|
WWW= https://github.com/pypa/setuptools_scm
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
|
|
git:devel/git \
|
|
${PY_MERCURIAL} \
|
|
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}mypy>0:devel/py-mypy@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR} \
|
|
gpg2:security/gnupg \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist pep517 pytest
|
|
|
|
NO_ARCH= yes
|
|
|
|
# test_git_worktree_support sometimes relative path results
|
|
# test_dump_version_on_old_python python 3.7 not available
|
|
# test_not_owner requires passwordless sudo access
|
|
# test_case_mismatch_on_windows_git we're not on Windows
|
|
PYTEST_BROKEN_TESTS= test_git_worktree_support
|
|
PYTEST_IGNORED_TESTS= test_dump_version_on_old_python \
|
|
test_not_owner \
|
|
test_case_mismatch_on_windows_git
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 31100
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>0:textproc/py-tomli@${PY_FLAVOR}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1:textproc/py-tomli@${PY_FLAVOR}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '497,521s|"gpg|"gpg2|' ${WRKSRC}/testing/test_git.py
|
|
|
|
.include <bsd.port.post.mk>
|