From nobody Mon Jul 31 16:45:22 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 4RF3zB5Dfwz4pGmf; Mon, 31 Jul 2023 16:45:26 +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 4RF3yD6rZ6z3GC8; Mon, 31 Jul 2023 16:45:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821925; 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=n8VgRfYekBAX63AWFoOROY2iYxQL0+uoxE5sxZlXUJs=; b=vlKTJrWTkxZJKisWbuVaoJdmNchTZcZmO2Q+XxuJV/ItTYadMK+wp/VkBHJvCpDvgCWXiW h1nF9Z4BegRE1CDIs6k+gEjVJjT93BPDAsyOAgwCvtKa4eXf4DTZ/U2acENp3BpUk4nOAU BCm0JAjH3nftfS3Ha7GgKAA63mLYNAbbJKYdksFUkVjMM6GpQ5KBcMBpp4JpvhueWw/YlS ywSF0PkqRm0f8iv9/ZPCLQYNYsZmpnhuT3gGll7nVou9uWzndLs1iWSK54E81HbfSnqPyO EC5nj6oNODJESGOivpBQcMXz3PueA8Vf5yZtft3bm+ynebGUoLSGiKo1T36OGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821925; 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=n8VgRfYekBAX63AWFoOROY2iYxQL0+uoxE5sxZlXUJs=; b=FtE+4yBA1GNVE58MJUyfv3vz4YL9XIcdfC3dgDgACIqUKXaJX2dwAmNY/iwCYTUuVdW8J6 /nfnMASLXQcQoLEkbPIt7abHlL2HByxz7wl4z1YzTRSBSU2grAw7NPXCkdEqbLud93W3VV LaZRWLsKrakOm6JGL6EjXuyH+0mOXm8SAJTMByrgYWAHAwmxlVK0F/XgYfLmwFGM0Rf33X r3+yJg0LLbYuWcUmNK4rxXcn15zhAsF8T+U0lcDsN0rPfnD/kHvtiOOTYbmBJThSD2A9BH jt7/q7fHO25F/m8nBMvM5qZoenvhCZnHIhmD8/+aBgHVqIXw/x54ZoZbqlH2jQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690821925; a=rsa-sha256; cv=none; b=vGP8MFi/yRJdJvRYiZS8aGcNqr5T7AZyGbhBM6HkQEV+xSQzl4FLNtTG4gJIm+OjRCuJdF 5CjIttAE0uXmdU/Rb+oVhmTbDX2o9WXsxILXrDIWSQ9bxJBHyelP1Npdr5ld6Y/3kl01hc yB6Z/ot8zx279UIPBEfiBmzenGzWmWRKtjAjCSBgRcgTbN95JfieOU9+LfHY+eYDNiqkLs x/pwq7macfnbafhfE9EddN4m+2axubdunaZHmpTcTxUb6VHN1g0HOrX0id7eBcanGdv+P3 XblzA+bBisTvKAfjOh75tdM+4Q3pXLRWQhiG/o7bh+ROci++CfjZ9be1+4cDDw== 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 4RF3yD0lmHz13G7; Mon, 31 Jul 2023 16:45:24 +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 36VGjMsF078814; Mon, 31 Jul 2023 16:45:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36VGjMGP078813; Mon, 31 Jul 2023 16:45:22 GMT (envelope-from git) Date: Mon, 31 Jul 2023 16:45:22 GMT Message-Id: <202307311645.36VGjMGP078813@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: d1d66459c982 - main - devel/py-deptry: Add py-deptry 0.12.0 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: d1d66459c982d366681e67d4c82f2865fbd947ff Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d1d66459c982d366681e67d4c82f2865fbd947ff commit d1d66459c982d366681e67d4c82f2865fbd947ff Author: Po-Chuan Hsieh AuthorDate: 2023-07-31 16:27:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-31 16:39:45 +0000 devel/py-deptry: Add py-deptry 0.12.0 deptry is a command line tool to check for issues with dependencies in a Python project, such as unused or missing dependencies. It supports the following types of projects: - Projects that use Poetry and a corresponding pyproject.toml file - Projects that use PDM and a corresponding pyproject.toml file - Projects that use a requirements.txt file according to the pip standards Dependency issues are detected by scanning for imported modules within all Python files in a directory and its subdirectories, and comparing those to the dependencies listed in the project's requirements. --- devel/Makefile | 1 + devel/py-deptry/Makefile | 31 +++++++++++++++++++++++++++++++ devel/py-deptry/distinfo | 3 +++ devel/py-deptry/pkg-descr | 10 ++++++++++ 4 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 09af9523dac9..9ecdedabba4e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4560,6 +4560,7 @@ SUBDIR += py-deprecat SUBDIR += py-deprecated SUBDIR += py-deprecation + SUBDIR += py-deptry SUBDIR += py-devtools SUBDIR += py-dexml2 SUBDIR += py-diazo diff --git a/devel/py-deptry/Makefile b/devel/py-deptry/Makefile new file mode 100644 index 000000000000..2b79d65ad1c9 --- /dev/null +++ b/devel/py-deptry/Makefile @@ -0,0 +1,31 @@ +PORTNAME= deptry +PORTVERSION= 0.12.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= CLI utility to check for unused, missing and transitive dependencies +WWW= https://fpgmaas.github.io/deptry/ \ + https://github.com/fpgmaas/deptry + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=4.0.0,1:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=8.0.0<9:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pathspec>=0.9.0:devel/py-pathspec@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1<3:textproc/py-tomli@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-deptry/distinfo b/devel/py-deptry/distinfo new file mode 100644 index 000000000000..7117fd014d12 --- /dev/null +++ b/devel/py-deptry/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1689398765 +SHA256 (deptry-0.12.0.tar.gz) = ac3cd32d149c92a9af12f63cd9486ddd1760f0277ed0cf306c6ef0388f57ff0a +SIZE (deptry-0.12.0.tar.gz) = 27572 diff --git a/devel/py-deptry/pkg-descr b/devel/py-deptry/pkg-descr new file mode 100644 index 000000000000..79a4f815cfef --- /dev/null +++ b/devel/py-deptry/pkg-descr @@ -0,0 +1,10 @@ +deptry is a command line tool to check for issues with dependencies in a Python +project, such as unused or missing dependencies. It supports the following types +of projects: +- Projects that use Poetry and a corresponding pyproject.toml file +- Projects that use PDM and a corresponding pyproject.toml file +- Projects that use a requirements.txt file according to the pip standards + +Dependency issues are detected by scanning for imported modules within all +Python files in a directory and its subdirectories, and comparing those to the +dependencies listed in the project's requirements.