From nobody Fri Jun 30 07:17:54 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qsmqk2q0pz4knVV; Fri, 30 Jun 2023 07:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qsmqk2FG3z3j8x; Fri, 30 Jun 2023 07:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VHjGkKbdd1ocmYkyEXLvKxhwt0QKdTjoellBd2Cwoh0=; b=j2/Ngqm7TFC+A7Nn96P6gYJKQVnAchTL8mMbcvHj2FN+O42/N+EZnkKqN9HW0DOpQbs4rR DSJPOqn7s3Luo5BHtEhzwh2GMfTqhZAn2RqLS3QKi/luULn1wmDe5r2WQme3fFyyGRR0p5 H0JefRdR6lDV4vXB2OWmXfIPfqp156ZUzoqTVrQTpeyMSZdnJ0Ytj5xTT8eB1FYogf3VDt R1EnKpI0aovHxDKA25yNbH+Du1m+KdTtgKzqCrIa4Jbi7uMt4xbS0HPTQCsaRjy46N9y9j Z9e5gJLvms1fYCu/souCRfDyMZ4d/I45zNJvFXQO5tmICnB2EPnNVzrF4e1BaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VHjGkKbdd1ocmYkyEXLvKxhwt0QKdTjoellBd2Cwoh0=; b=UjNJSqbJEWTntkPWYZDiBpOBpXkArCv67r/x9GmA9UvI4XeMqieW5A7JS4eF7JQhiZsgEY f6StMMDNXUH7vWRILJOFvFA8wNtHcGAxOQHqEJUZn25qicycBLn/ewtnbem7ZUK86M/OHQ 2kQnku/NSlpjw45SAYNEuLqrltCKLPT5w5xgxKETnJfAKmqYi+UmOcgKEEZlyXt2HmtJc+ U+Tc/mje00cbi4Uv31Q1FyVBW7udG/IS9zMcqgyVhIHZQDFXolFevn99or1/OsGjKFsSdk 7X3rEpsDlUWQYMyaPccTG07PrGaHD6jACBtutzan+hs7/nLzVsDbp1tNya6I8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688109474; a=rsa-sha256; cv=none; b=e1HYA8nXsVi4TmOB7Qc0eiEMJSFgvQyDccpEdaiQNjQdmHaqHutLbYdmQ7EmuGCE3d4wB5 6VI6n+mcN2vix0hnelvecrLP2trlGVZS//ev8K+e9Gk9hYrl9Gghe1Yvj99bK/7kghk4DT S+rt1ZQpjwwZORGhAhP0knlNmuA9Wu01tURgGQxgmpPY38VrBYbbsSH4ROitJ/NVtIijG8 27fQdZT5M2Z9giPs77XLd6SKTVe0deJmOgMBu6h1xHftCEBw6aGpCsWYw6FPhdd9GDoFCd GgllbrC0/2HOV9bJwLMWFIkAu9aOL7RFOcAcCxMf9pPM33boP7Nb9w2+0yPoXg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qsmqk1M62zqFZ; Fri, 30 Jun 2023 07:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 35U7HsHY064326; Fri, 30 Jun 2023 07:17:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35U7HsZN064325; Fri, 30 Jun 2023 07:17:54 GMT (envelope-from git) Date: Fri, 30 Jun 2023 07:17:54 GMT Message-Id: <202306300717.35U7HsZN064325@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: cfa9bd9252aa - main - devel/py-check-sdist: Add py-check-sdist 0.1.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cfa9bd9252aa1c8c8278c93f58b8ea87be3116c3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=cfa9bd9252aa1c8c8278c93f58b8ea87be3116c3 commit cfa9bd9252aa1c8c8278c93f58b8ea87be3116c3 Author: Po-Chuan Hsieh AuthorDate: 2023-06-30 06:59:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-06-30 06:59:35 +0000 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. --- devel/Makefile | 1 + devel/py-check-sdist/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/py-check-sdist/distinfo | 3 +++ devel/py-check-sdist/pkg-descr | 12 ++++++++++++ 4 files changed, 50 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index ab1b31a5785c..737c5dcf8b08 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4433,6 +4433,7 @@ SUBDIR += py-characteristic SUBDIR += py-check-jsonschema SUBDIR += py-check-manifest + SUBDIR += py-check-sdist SUBDIR += py-cheetah3 SUBDIR += py-circuitbreaker SUBDIR += py-circuits diff --git a/devel/py-check-sdist/Makefile b/devel/py-check-sdist/Makefile new file mode 100644 index 000000000000..78016d5fafeb --- /dev/null +++ b/devel/py-check-sdist/Makefile @@ -0,0 +1,34 @@ +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 + +.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 diff --git a/devel/py-check-sdist/distinfo b/devel/py-check-sdist/distinfo new file mode 100644 index 000000000000..a19fa392721c --- /dev/null +++ b/devel/py-check-sdist/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1686496666 +SHA256 (check_sdist-0.1.2.tar.gz) = c331275c72760ee5b5fac8f9085652c2be4da1a09bcd566cae1d3301b528e1ca +SIZE (check_sdist-0.1.2.tar.gz) = 12845 diff --git a/devel/py-check-sdist/pkg-descr b/devel/py-check-sdist/pkg-descr new file mode 100644 index 000000000000..7c10032019d5 --- /dev/null +++ b/devel/py-check-sdist/pkg-descr @@ -0,0 +1,12 @@ +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.