From nobody Tue Jun 21 16:36:58 2022 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 94E6A8788C8; Tue, 21 Jun 2022 16:36:59 +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 4LSBxQ4QLkz3Fy5; Tue, 21 Jun 2022 16:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655829419; 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=WyFWizdOLX+1smcbRjUqS6TrjxnMVLZ43k/dwBfPAI8=; b=SP2bhY1H1k5ex8GaMDxDiBkHvlioDyhPtn3CldXQV6uJlsbIcBaFA71ll83R0n8RWlIxEU 3R+t9EbNkVd/B25zUQCBM444SfqlumdqbSt1UcLwyFjzCppqOnoARQY/HB+Cy9iOnq/sEC AIukIyTUdyRqz4S3abWOMh3fG1OaJtPG2qpR6imgfJzoxzSYwR1HYBIGw+p5RINhQfk48u xTe4Qi1nlM3wKRfjhT+ANU4x902TziTJ6uOK71cnkpPMAVn5DFvQEtgL5nTX6dm+KbDt7V w44EsuILz/GOyLG27+mDK9b0dsgAqbOmBFWGYQUJXC023iIYa/9NFgsA0a5Acg== 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 6A85215494; Tue, 21 Jun 2022 16:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25LGawPC058824; Tue, 21 Jun 2022 16:36:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25LGawMp058823; Tue, 21 Jun 2022 16:36:58 GMT (envelope-from git) Date: Tue, 21 Jun 2022 16:36:58 GMT Message-Id: <202206211636.25LGawMp058823@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: b0546a57c6d7 - main - devel/py-pyproject-fmt: Add py-pyproject-fmt 0.3.3 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: b0546a57c6d7c08f1268148d5529d8f6c3bcb428 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655829419; 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=WyFWizdOLX+1smcbRjUqS6TrjxnMVLZ43k/dwBfPAI8=; b=g6lFz4G4ExJyyWlW7O0TwCX6slCCiAwcqsDjMTRdy9RtYTfDwZvAd0tEOogJZ5RhBPBz9P xZJN1mJTm7UbPCMQXMnDWgIdloPcREmvDqVx+DGVNf3yzZnvTBvi/gMUdY43w3h/4nuVnS daxD+ob0ADKXRl0ppzChkTjqLllQCEYP5KKRq+T3ZCFOV6Wv5CbmUHjwO3W432M1Yt5XYu VbxudfYotVVGFZxTxGyZ4gRRid/DrOjFtwwDHZ77TOGsbBd/NFJKLGSNvDvIsXGK9qD17Y +KCXv2t2f4o87IqjZQXx7fPXpHFmBtvs5qFYL4d9TAOmRCsg7w14M9rU2OUf7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655829419; a=rsa-sha256; cv=none; b=PMh0WH8zFhJynEage5xFnhz5vXBFVbmycdWYekuyFh/dUqIX3UIaVJWkZ6G0lbWuvdarLR Pgx7p85X1cnjB1dCbgFYyxVZI6rb2eTWTZ/zttJQ3WPA0gY8GShLzJdGyuLL3Nq2K/Qktz 26EnqG0aX+9925dCp0Y2JW8ZHu1qCcd0PbcoLA/ZJDuD0Ejzo8nDZKjCuh7IEJpRbjiIbn TC71k639dJixYubsE8Fzv7pfY4GMQywL5wCJFrniSuC7rBDrfA+MezVf0DgTnQhv2/L6z2 qbWNrHGw676CfRHQr4jtWPA25PWE1MIaQU+QwLDhmNexLvSEfN9GBjQMFWabiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b0546a57c6d7c08f1268148d5529d8f6c3bcb428 commit b0546a57c6d7c08f1268148d5529d8f6c3bcb428 Author: Po-Chuan Hsieh AuthorDate: 2022-06-21 16:32:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-21 16:32:26 +0000 devel/py-pyproject-fmt: Add py-pyproject-fmt 0.3.3 pyproject-fmt applies a consistent format to your pyproject.toml file with comment support. It can be used as a CLI tool or a pre-commit hook. WWW: https://github.com/tox-dev/pyproject-fmt --- devel/Makefile | 1 + devel/py-pyproject-fmt/Makefile | 34 +++++++++++++++++++++++ devel/py-pyproject-fmt/distinfo | 3 ++ devel/py-pyproject-fmt/files/setup.py | 52 +++++++++++++++++++++++++++++++++++ devel/py-pyproject-fmt/pkg-descr | 4 +++ 5 files changed, 94 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f8b223c58fa3..6ef530689654 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5108,6 +5108,7 @@ SUBDIR += py-pyperclip SUBDIR += py-pyperf SUBDIR += py-pyplusplus + SUBDIR += py-pyproject-fmt SUBDIR += py-pypugjs SUBDIR += py-pyqtree SUBDIR += py-pyquery diff --git a/devel/py-pyproject-fmt/Makefile b/devel/py-pyproject-fmt/Makefile new file mode 100644 index 000000000000..6f9a93de8fb1 --- /dev/null +++ b/devel/py-pyproject-fmt/Makefile @@ -0,0 +1,34 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= pyproject-fmt +PORTVERSION= 0.3.3 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pyproject_fmt-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Format your pyproject.toml file + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomlkit>=0.10:textproc/py-tomlkit@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +post-patch: + @${RM} ${WRKSRC}/pyproject.toml + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-pyproject-fmt/distinfo b/devel/py-pyproject-fmt/distinfo new file mode 100644 index 000000000000..2aa057d15131 --- /dev/null +++ b/devel/py-pyproject-fmt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655561122 +SHA256 (pyproject_fmt-0.3.3.tar.gz) = 7ca6b102c8717a77e1f567daa74f2555a22554ae2edeed672f94cc682da99763 +SIZE (pyproject_fmt-0.3.3.tar.gz) = 9731 diff --git a/devel/py-pyproject-fmt/files/setup.py b/devel/py-pyproject-fmt/files/setup.py new file mode 100644 index 000000000000..d2292ff1044a --- /dev/null +++ b/devel/py-pyproject-fmt/files/setup.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='pyproject-fmt', + version='%%PORTVERSION%%', + description='Format your pyproject.toml file', + long_description='# pyproject-fmt\n\n[![PyPI](https://img.shields.io/pypi/v/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)\n[![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/pyproject-fmt?style=flat-square)](https://pypistats.org/packages/pyproject-fmt)\n[![PyPI - License](https://img.shields.io/pypi/l/pyproject-fmt?style=flat-square)](https://opensource.org/licenses/MIT)\n[![check](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yml)\n\nApply a consistent format to `pyproject.toml` files.\n[Read the full documentation here](https://pyproject-fmt.readthedocs.io/en/latest/).\n ', + author_email='Bernat Gabor ', + classifiers=[ + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + ], + install_requires=[ + 'packaging>=21.3', + 'tomlkit>=0.10', + 'typing-extensions>=3.10; python_version < "3.8"', + ], + extras_require={ + 'docs': [ + 'furo>=2022.1.2b11', + 'sphinx-argparse-cli>=1.8', + 'sphinx-autodoc-typehints>=1.17', + 'sphinx-copybutton>=0.5', + 'sphinx>=4.4', + ], + 'test': [ + 'covdefaults>=2', + 'pytest-cov>=3', + 'pytest-mock>=3.7', + 'pytest>=7', + ], + }, + entry_points={ + 'console_scripts': [ + 'pyproject-fmt = pyproject_fmt.__main__:run', + ], + }, + packages=[ + 'pyproject_fmt', + 'pyproject_fmt.formatter', + ], + package_dir={ + '': 'src' + }, +) diff --git a/devel/py-pyproject-fmt/pkg-descr b/devel/py-pyproject-fmt/pkg-descr new file mode 100644 index 000000000000..2976ff0368e3 --- /dev/null +++ b/devel/py-pyproject-fmt/pkg-descr @@ -0,0 +1,4 @@ +pyproject-fmt applies a consistent format to your pyproject.toml file with +comment support. It can be used as a CLI tool or a pre-commit hook. + +WWW: https://github.com/tox-dev/pyproject-fmt