From nobody Sat Apr 06 00:01:17 2024 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 4VBFrH0SLrz5HSWm; Sat, 6 Apr 2024 00:01:19 +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 4VBFrF73Vqz43jN; Sat, 6 Apr 2024 00:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712361678; 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=96WtivR7isaePacfyo/304Yga9jCJYXKVUqwjor5lTE=; b=eDA1yGgJBFFBW6ueXJr1kzguT0d7yYYCiVlYkEU42Cf6HwE9onv1kLr5SfeqlehwxDSDiV BxiSYYXWB6Rbiq0sM9ZH2MIpjADIRyDKvWM6JOMTFjkikz5uflXoW7DLhXL8tHSPr/mzAg WNDCVuemEBAEydxF0gpTHnQvjZfpFg3MRYiO3clyw8/8BJfGJOwxnxbsjzu/sXv4ly2g75 uPcNhRnyKHA1vB2t2uw6cRySvx1F5rKo0oScARmiYc2zUegdYV6UFKOMQ0gZ2OLI+CRxM9 9XiJtjpu6zm+s7iU4EUI1SEBWRkIFo+Yk1DV36zXzCuFibtkU8/HzOyYtBVWgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712361678; a=rsa-sha256; cv=none; b=PKPV7qR+Pt2vW5LuvJrEU/RJjasF2+OWqDEE9ytBb0NC5bLfd9DaepPDTiizupAUFN8+07 Ucj151M0+C1Vyqby9oHKG0a/Wgqz33bJC3qWChFZx4R4Fg6JSKv7107FrEvxYdr8kEUutB W4YPOVNF9zMeWHAbqPvnS0r7aTrsRU/wC4X45dWMzlWHcLnDIwIwN1EsS9eBc3lUXqUvDk 7NcLFCwkprCLtXRbbzVl1BcE0RF8iGgg6/c3eaX/K/HK7tKoAMvtpBcuIQ2ou/m+MYCBiy EehbR9e31Q050ROn6NQvQrIcDsLB8xO3tViF6x4iavhsQGtObnT8R5Lbm8Zn8Q== 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=1712361678; 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=96WtivR7isaePacfyo/304Yga9jCJYXKVUqwjor5lTE=; b=omGSwS2QrDNAnO5+wIU8V9wZ/K4EYXd07yMr6MjgXT/Hp6I+9JFaKwRHCaxqH+QVqWfqyJ 9+6RSHH1ZGEwAXXeTRar3xlfdJZF+qJB6KLOkIg4ErmPvNpw/x8mJVz35J1Cnz6iGLFCDj /A8ggyKWAS/2iq28qa3/vLz4OrQ7V+TFxgbhxceJR9nJQDLWXXqVm62x0WC+Tpl5XXv9eN TP3d3ym7xQga9U6yXPQUKdbZdG0kmNdj62yeOYOfm0gJ7SQWMGqEuRhbg5FYokKl8fZ+sT Ija41/mVDbCSdlPVmqsAGpBupyaoQPl8P24gU/IZwbMMhbW7SRpuP3gSHi/IAw== 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 4VBFrF63xnzL6X; Sat, 6 Apr 2024 00:01:17 +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 43601HC4072402; Sat, 6 Apr 2024 00:01:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43601H7i072399; Sat, 6 Apr 2024 00:01:17 GMT (envelope-from git) Date: Sat, 6 Apr 2024 00:01:17 GMT Message-Id: <202404060001.43601H7i072399@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: 006a0833a75c - main - devel/py-ufmt: Add py-ufmt 2.5.1 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 006a0833a75cdd489bc8c37208ecf046079b620c Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=006a0833a75cdd489bc8c37208ecf046079b620c commit 006a0833a75cdd489bc8c37208ecf046079b620c Author: Po-Chuan Hsieh AuthorDate: 2024-04-05 23:56:50 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-04-05 23:56:50 +0000 devel/py-ufmt: Add py-ufmt 2.5.1 ufmt is a safe, atomic code formatter for Python built on top of black and usort: - Black makes code review faster by producing the smallest diffs possible. Blackened code looks the same regardless of the project you're reading. - usort is a safe, minimal import sorter. Its primary goal is to make no "dangerous" changes to code, and to make no changes on code style. ufmt formats files in-memory, first with usort and then with black, before writing any changes back to disk. This enables a combined, atomic step in CI/CD workflows for checking or formatting files, without any chance of conflict or intermediate changes between the import sorter and the code formatter. --- devel/Makefile | 1 + devel/py-ufmt/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-ufmt/distinfo | 3 +++ devel/py-ufmt/pkg-descr | 11 +++++++++++ 4 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f6d0eab7026d..5a9c4677c89a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5825,6 +5825,7 @@ SUBDIR += py-u-msgpack-python SUBDIR += py-ua_parser SUBDIR += py-ubelt + SUBDIR += py-ufmt SUBDIR += py-uhid-freebsd SUBDIR += py-ujson SUBDIR += py-undefined diff --git a/devel/py-ufmt/Makefile b/devel/py-ufmt/Makefile new file mode 100644 index 000000000000..57c28f9e0945 --- /dev/null +++ b/devel/py-ufmt/Makefile @@ -0,0 +1,30 @@ +PORTNAME= ufmt +PORTVERSION= 2.5.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Safe, atomic formatting with black and usort +WWW= https://ufmt.omnilib.dev/en/stable/ \ + https://github.com/omnilib/ufmt + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}black>=20.8b0:devel/py-black@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=8.0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}libcst>=0.4.0:devel/py-libcst@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}moreorless>=0.4.0:devel/py-moreorless@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomlkit>=0.7.2:textproc/py-tomlkit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}trailrunner>=1.2.1:devel/py-trailrunner@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}usort>=1.0:devel/py-usort@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-ufmt/distinfo b/devel/py-ufmt/distinfo new file mode 100644 index 000000000000..9ffdafca832f --- /dev/null +++ b/devel/py-ufmt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712330561 +SHA256 (ufmt-2.5.1.tar.gz) = af53400cbc0498d5d57f79bdf8c0e13df67f384ab38ab9881b15e4ceb04c5d64 +SIZE (ufmt-2.5.1.tar.gz) = 75447 diff --git a/devel/py-ufmt/pkg-descr b/devel/py-ufmt/pkg-descr new file mode 100644 index 000000000000..e46e8c99db8d --- /dev/null +++ b/devel/py-ufmt/pkg-descr @@ -0,0 +1,11 @@ +ufmt is a safe, atomic code formatter for Python built on top of black and +usort: +- Black makes code review faster by producing the smallest diffs possible. + Blackened code looks the same regardless of the project you're reading. +- usort is a safe, minimal import sorter. Its primary goal is to make no + "dangerous" changes to code, and to make no changes on code style. + +ufmt formats files in-memory, first with usort and then with black, before +writing any changes back to disk. This enables a combined, atomic step in CI/CD +workflows for checking or formatting files, without any chance of conflict or +intermediate changes between the import sorter and the code formatter.