git: e1837799ef2a - main - devel/py-check-wheel-contents: Add py-check-wheel-contents 0.6.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Feb 2025 08:15:00 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e1837799ef2a4642324ea9ceb07b919e4ff554f0
commit e1837799ef2a4642324ea9ceb07b919e4ff554f0
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-20 05:02:45 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-20 07:26:51 +0000
devel/py-check-wheel-contents: Add py-check-wheel-contents 0.6.1
Getting the right files into your wheel is tricky, and sometimes we mess up and
publish a wheel containing __pycache__ directories or tests/. Do we have to
manually check the contents of every wheel we build before uploading it to PyPI?
How about letting this program check for you? Just run check-wheel-contents on
your wheel, and it'll fail and notify you if any of several common errors &
mistakes are detected. The errors are described below, along with common causes
and corresponding fixes.
---
devel/Makefile | 1 +
devel/py-check-wheel-contents/Makefile | 28 ++++++++++++++++++++++++++++
devel/py-check-wheel-contents/distinfo | 3 +++
devel/py-check-wheel-contents/pkg-descr | 7 +++++++
4 files changed, 39 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index fce7eb1b390b..5e527ae616c0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4642,6 +4642,7 @@
SUBDIR += py-check-jsonschema
SUBDIR += py-check-manifest
SUBDIR += py-check-sdist
+ SUBDIR += py-check-wheel-contents
SUBDIR += py-cheetah3
SUBDIR += py-circuitbreaker
SUBDIR += py-circuits
diff --git a/devel/py-check-wheel-contents/Makefile b/devel/py-check-wheel-contents/Makefile
new file mode 100644
index 000000000000..909539b8fe0d
--- /dev/null
+++ b/devel/py-check-wheel-contents/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= check-wheel-contents
+PORTVERSION= 0.6.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= check_wheel_contents-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Check your wheels have the right contents
+WWW= https://github.com/jwodder/check-wheel-contents
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=18.1:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0<3:devel/py-pydantic2@${PY_FLAVOR} \
+ ${PY_TOMLI} \
+ ${PYTHON_PKGNAMEPREFIX}wheel-filename>=1.1<2:devel/py-wheel-filename@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-check-wheel-contents/distinfo b/devel/py-check-wheel-contents/distinfo
new file mode 100644
index 000000000000..5a5abd006ee8
--- /dev/null
+++ b/devel/py-check-wheel-contents/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1739962424
+SHA256 (check_wheel_contents-0.6.1.tar.gz) = d1261166c24a7a0f202016e38f2601452580674e9bb35667530c2b1a1c36f690
+SIZE (check_wheel_contents-0.6.1.tar.gz) = 585959
diff --git a/devel/py-check-wheel-contents/pkg-descr b/devel/py-check-wheel-contents/pkg-descr
new file mode 100644
index 000000000000..b36c0bd3306d
--- /dev/null
+++ b/devel/py-check-wheel-contents/pkg-descr
@@ -0,0 +1,7 @@
+Getting the right files into your wheel is tricky, and sometimes we mess up and
+publish a wheel containing __pycache__ directories or tests/. Do we have to
+manually check the contents of every wheel we build before uploading it to PyPI?
+How about letting this program check for you? Just run check-wheel-contents on
+your wheel, and it'll fail and notify you if any of several common errors &
+mistakes are detected. The errors are described below, along with common causes
+and corresponding fixes.