From nobody Tue Apr 7 09:58:17 2026 X-Original-To: dev-commits-ports-main@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 4fqhTk0tnqz6Z8yd for ; Tue, 07 Apr 2026 09:58:18 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqhTj5cGKz47b8 for ; Tue, 07 Apr 2026 09:58:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775555897; 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=WCPU6cal+yxbkO6qkFiLMO9ea6vHhhOyGco4tcheoy8=; b=DQDIQmWk0bxnAFGBSKEQ7bD7H6od28tA2ilQle48vmM7SXhw67rtGJnFzPQeJajHx6Qks7 3+KFhu+FQEKtkxPOSv3JTk2eprGwMuQw3oRwMrR8flOk2+4Xi/k8H1kXWrQWKluGp485yj OxA7PludYct2d4bRohLDSR8s8H7clHGjJDpNgxA416eorZbta5ui2NI4bv094eDBbEhxhq lmEQoSKbQISbtRjwp177UfU+j43yiUtLQP96kKNlBHM+LlRvk/ULIIsj4g2oJNJbJezXds KHDUm4N/cJ743dKbcMq7w+OpY4V8lCGv4TL/rQY8pgNQHspDMzoSIieWemviww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775555897; a=rsa-sha256; cv=none; b=EUSZ0Dv48qaLJ65xU9oAiR97prgRLN8jdEX0VYxWCT0QSOcpWSK2nvN3rOdUB9MnGtKdsj uzUyr+4TU3dv3RnuQgMUoaWljooK5aTirPmq+minojrKHhe5+nx9+Bt+4wQJXj4pwt6sSN k2Sv08KkFQ/PV/I0b6D4XHFXk3bGxKAakH7svfjWPc/hC9TZTATbaZDVSvOlLRH/N4PwNa RLF1W8dcdxOkmSxCfIgHMiyYh4liCxlrHrxh7BVfgiyWF2FgI0WxiGG+T+zfoarK0qxacM dMeYlOIyLNRF03ICZrplRyCZQzlP2G8krC/k6ucbOcwLQcG6bxZGBgmvWzY7yA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775555897; 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=WCPU6cal+yxbkO6qkFiLMO9ea6vHhhOyGco4tcheoy8=; b=P0jTd2qBUkTFfikLCJPUTJWocsl821I5PLqLjiXggU+FLmSro8dZ/anyAGiUDNQtUSVBYD Vsazvwe4pCnckUBLU50C9X5z717Kn5Ovp0PhCxXU5/pclLBCG3oaZJ7LZZt+r7CNezScKV KivoqvEle48+YArLIEtYLv+nyiH2bLSVB4ORhIs/VjCIiC/zZymqzcL4zZw0x3y7YH31XL Idd/b80cqQQZF4dmBOhMPtMAt2h/LXfBbyFkKSBcdkJnqUxD7f4gR9W/ELAcg8pWs1owPM +bWJimLBaieSRJh2ceUFxIoxeBnuzlRmnQw5fjIZTKyx9MhA+PIYp4n0j8rHBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqhTj58PZzb7Z for ; Tue, 07 Apr 2026 09:58:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 47490 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 07 Apr 2026 09:58:17 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 85fbf348e3ef - main - devel/py-depyf: New port: Decompile and understand Python bytecode from PyTorch List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 85fbf348e3ef734661a3b37f2e298dd120ab9911 Auto-Submitted: auto-generated Date: Tue, 07 Apr 2026 09:58:17 +0000 Message-Id: <69d4d539.47490.4e41779f@gitrepo.freebsd.org> The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=85fbf348e3ef734661a3b37f2e298dd120ab9911 commit 85fbf348e3ef734661a3b37f2e298dd120ab9911 Author: Yuri Victorovich AuthorDate: 2026-04-07 04:24:17 +0000 Commit: Yuri Victorovich CommitDate: 2026-04-07 09:58:08 +0000 devel/py-depyf: New port: Decompile and understand Python bytecode from PyTorch --- devel/Makefile | 1 + devel/py-depyf/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-depyf/distinfo | 3 +++ devel/py-depyf/files/patch-setup.py | 11 +++++++++++ devel/py-depyf/pkg-descr | 3 +++ 5 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 82e8c23bab20..f75c2116cb44 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4849,6 +4849,7 @@ SUBDIR += py-deprecated SUBDIR += py-deprecation SUBDIR += py-deptry + SUBDIR += py-depyf SUBDIR += py-devtools SUBDIR += py-dexml2 SUBDIR += py-diagnostic diff --git a/devel/py-depyf/Makefile b/devel/py-depyf/Makefile new file mode 100644 index 000000000000..a18bf2eba140 --- /dev/null +++ b/devel/py-depyf/Makefile @@ -0,0 +1,30 @@ +PORTNAME= depyf +DISTVERSION= 0.20.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Decompile and understand Python bytecode from PyTorch +WWW= https://github.com/thuml/depyf + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astor>0:devel/py-astor@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + PYTHONBREAKPOINT=0 +TEST_WRKSRC= ${WRKSRC}/tests + +# tests as of 0.20.0: 1 passed, 21 warnings in 5.66s + +.include diff --git a/devel/py-depyf/distinfo b/devel/py-depyf/distinfo new file mode 100644 index 000000000000..428500173330 --- /dev/null +++ b/devel/py-depyf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775500352 +SHA256 (depyf-0.20.0.tar.gz) = fb7683bd72c44f67b56029df2c47721e9a02ffa4d7b19095f1c54c4ebf797a98 +SIZE (depyf-0.20.0.tar.gz) = 6168761 diff --git a/devel/py-depyf/files/patch-setup.py b/devel/py-depyf/files/patch-setup.py new file mode 100644 index 000000000000..204e76a40f2f --- /dev/null +++ b/devel/py-depyf/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2026-04-06 19:13:32 UTC ++++ setup.py +@@ -11,7 +11,7 @@ def get_git_commit_id(n_digits=8) -> Optional[str]: + # Decode bytes to string (Python 3.x) + commit_id = commit_id.decode('utf-8') + return commit_id[:n_digits] +- except subprocess.CalledProcessError as e: ++ except (subprocess.CalledProcessError, FileNotFoundError, OSError) as e: + print("Failed to get Git commit ID:", e) + return None + diff --git a/devel/py-depyf/pkg-descr b/devel/py-depyf/pkg-descr new file mode 100644 index 000000000000..399903617e26 --- /dev/null +++ b/devel/py-depyf/pkg-descr @@ -0,0 +1,3 @@ +depyf is a Python package for decompiling and understanding Python bytecode. +It helps developers analyze and debug compiled Python code by providing +human-readable representations of bytecode.