freebsd-ports/devel/py-check-sdist/Makefile
Po-Chuan Hsieh cfa9bd9252
devel/py-check-sdist: Add py-check-sdist 0.1.2
Have you ever shipped broken sdists with missing files or possibly dirty sdists
with files that shouldn't have been there? Have you noticed that standards
compliant tools aren't making the same sdist that flit build is? Is hatchling
adding .DSStore files when you ship from your macOS? No matter what
build-backend you use, check-sdist can help!

Check-sdist builds an sdist and compares the contents with your Git repository
contents. It can even temporarily inject common junk files (like pycache files
or OS specific files) and help verify that those aren't getting bundled into
your sdist. If you are getting files you didn't expect or missing files you did
expect, consult your build backend's docs to see how to include or exclude
files.
2023-06-30 14:59:35 +08:00

34 lines
940 B
Makefile

PORTNAME= check-sdist
PORTVERSION= 0.1.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= check_sdist-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Check the contents of an sdist vs git
WWW= https://github.com/henryiii/check-sdist
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}build>=0:devel/py-build@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathspec>=0:devel/py-pathspec@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30900
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
.endif
.if ${PYTHON_REL} < 31100
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>