freebsd-ports/devel/py-setuptools-git-versioning/Makefile
Po-Chuan Hsieh 1860118328
devel/py-setuptools-git-versioning: Add py-setuptools-git-versioning 1.13.5
Use git repo data (latest tag, current commit hash, etc) for building a version
number according PEP 440.

Features:
- Can be installed & configured through both setup.py and PEP 518's
  pyproject.toml
- Does not require to change source code of the project
- Tag-, file-, and callback-based versioning schemas are supported
- Templates for tag, dev and dirty versions are separated
- Templates support a lot of substitutions including git and environment
  information
- Well-documented
2023-10-05 09:53:29 +08:00

32 lines
1 KiB
Makefile

PORTNAME= setuptools-git-versioning
PORTVERSION= 1.13.5
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Use git repo data for building a version number according PEP-440
WWW= https://setuptools-git-versioning.readthedocs.io/en/stable/ \
https://github.com/dolfinus/setuptools-git-versioning
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 31100
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>