From nobody Tue Mar 21 19:26:59 2023 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 4Ph1nc33PSz40hK8; Tue, 21 Mar 2023 19:27:00 +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 4Ph1nc1cSsz4LcX; Tue, 21 Mar 2023 19:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426820; 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=23tqrLuBPnBd4fwyISp/sMb0VfDJn9cIOSHwXf7OC5I=; b=lpvGbx2ZIhZeQFCsQH7B/3d4k9EBFPyNLtlERSLv+F1/EBkPUV1ZAtqYkRuT+qljjtb8Om BPS40/8GU/Bx05Qnf8YxqA4Kq50LpQdRU3vufRC1uPGOORcSbTpFu0qtFkhW4856t/I21b KJJLbUyH19PomgXdki9ESOOnoiBrzO9uksf2LAHH3CrqFyCVtxBdTsKdDOfFhcTnIVrE7G dMTc8Sx5VV8eFNKSboWN+E085ApdI5x/juA/rGbTnJ58t3KALnspwiDb74+EPx7KrYOzA6 OQjwESPjh/KcBwI4CfqlrNO+nhcVJYJ6vwBPTtqIR+XXvf8j+YLlEUcuMRtuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426820; 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=23tqrLuBPnBd4fwyISp/sMb0VfDJn9cIOSHwXf7OC5I=; b=RWXfF0dU0G4dz4ctR6ieFvhgiVK7d9AGpJd9sRSfzwmBN7gDEDnm9pDfuGl4x9WBD03dNo RLGzmQrKBI3gn6ZtoGsxEidmNfmtMiWWBZcNxKeR9skMwX+15RghVOvBGcuRhDZvOEu44Z 4LAtUlU3/zHqs1oa/5wZ6PoBCVNXR57gpdkhiIBWOOTvF1SYP4PFBML0i2IjFoGtccgoBi qWPS2JSPN7AIFCeh7e7TgnpdOBFm6DKpI0zmlEdFXtgpMhSOHUPsjtKDi/xHZBC5hFNxWa dU31TaKM6z7S0/xt8lQUy4fHbWWiO3tiVjbBsqBEhWqA81aPK7pYmPxRujGtew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679426820; a=rsa-sha256; cv=none; b=qvWxvazDVFt1o9TAeJyzgfQaP4F2oYzpyStc65Xzjf/1aMaXHxKEFQlyoQYk/gRSlofz2O qTlSunR8YB8HVBfk4hH/o4V0zHYPAMEtaU5Boihep9u9WOZF8IXmYItfkXE2y3OZBsplaC U/OEIKrk/ai1nEizkp7omY0geSI5h38e/VRe9rC71FBwKSP+X0DL6/pTYCz4GJCKqxxwCS CrzSREXfEW64IiJQGSrFVYezy5VwWaQavZkzVkGPsCoSJj8RVAB+rkpRwndQWdWRuKXk1N 9gUDjySG8QyN//4dNknnjEveAvYA8XntnTyZuD/V12TvkYZ8uA3EDzoA/Iy/Kw== 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 4Ph1nc0k23zPF8; Tue, 21 Mar 2023 19:27:00 +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 32LJR02E030478; Tue, 21 Mar 2023 19:27:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJQxLL030477; Tue, 21 Mar 2023 19:26:59 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:26:59 GMT Message-Id: <202303211926.32LJQxLL030477@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: c852b073b7e3 - main - devel/py-devtools: Convert to USE_PYTHON=pep517 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: c852b073b7e3ccabf3eb959f71866506dbbce4a8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c852b073b7e3ccabf3eb959f71866506dbbce4a8 commit c852b073b7e3ccabf3eb959f71866506dbbce4a8 Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:42:44 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:20:34 +0000 devel/py-devtools: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-devtools/Makefile | 7 +++---- devel/py-devtools/files/setup.py | 45 ---------------------------------------- 2 files changed, 3 insertions(+), 49 deletions(-) diff --git a/devel/py-devtools/Makefile b/devel/py-devtools/Makefile index 8763b43072cd..aa979f1f5ddf 100644 --- a/devel/py-devtools/Makefile +++ b/devel/py-devtools/Makefile @@ -1,5 +1,6 @@ PORTNAME= devtools PORTVERSION= 0.10.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,11 +12,12 @@ WWW= https://github.com/samuelcolvin/python-devtools LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asttokens>=2.0.0<3.0.0:devel/py-asttokens@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}executing>=1.1.1:devel/py-executing@${PY_FLAVOR} USES= python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -24,7 +26,4 @@ PYGMENTS_DESC= Highlighted output support PYGMENTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=2.2.0:textproc/py-pygments@${PY_FLAVOR} -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include diff --git a/devel/py-devtools/files/setup.py b/devel/py-devtools/files/setup.py deleted file mode 100644 index 13ebd9f225c7..000000000000 --- a/devel/py-devtools/files/setup.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -setup( - name='devtools', - version='%%PORTVERSION%%', - description="Python's missing debug print command, and more.", - long_description="# python devtools\n\n[![CI](https://github.com/samuelcolvin/python-devtools/workflows/CI/badge.svg?event=push)](https://github.com/samuelcolvin/python-devtools/actions?query=event%3Apush+branch%3Amain+workflow%3ACI)\n[![Coverage](https://codecov.io/gh/samuelcolvin/python-devtools/branch/main/graph/badge.svg)](https://codecov.io/gh/samuelcolvin/python-devtools)\n[![pypi](https://img.shields.io/pypi/v/devtools.svg)](https://pypi.python.org/pypi/devtools)\n[![versions](https://img.shields.io/pypi/pyversions/devtools.svg)](https://github.com/samuelcolvin/python-devtools)\n[![license](https://img.shields.io/github/license/samuelcolvin/python-devtools.svg)](https://github.com/samuelcolvin/python-devtools/blob/main/LICENSE)\n\n**Python's missing debug print command and other development tools.**\n\nFor more information, see [documentation](https://python-devtools.helpmanual.io/).\n\n## Install\n\nJust\n\n```bash\npip install devtools[pygments]\n```\n\n`pygments` is no t required but if it's installed, output will be highlighted and easier to read.\n\n`devtools` has no other required dependencies except python 3.7, 3.8, 3.9 or 3.10.\nIf you've got python 3.7+ and `pip` installed, you're good to go.\n\n## Usage\n\n```py\nfrom devtools import debug\n\nwhatever = [1, 2, 3]\ndebug(whatever)\n```\n\nOutputs:\n\n```py\ntest.py:4 :\n whatever: [1, 2, 3] (list)\n```\n\n\nThat's only the tip of the iceberg, for example:\n\n```py\nimport numpy as np\n\ndata = {\n 'foo': np.array(range(20)),\n 'bar': {'apple', 'banana', 'carrot', 'grapefruit'},\n 'spam': [{'a': i, 'b': (i for i in range(3))} for i in range(3)],\n 'sentence': 'this is just a boring sentence.\\n' * 4\n}\n\ndebug(data)\n```\n\noutputs:\n\n![python-devtools demo](https://raw.githubusercontent.com/samuelcolvin/python-devtools/main/demo.py.png)\n\n## Usage without Import\n\ndevtools can be used without `from devtools import debug` if you add `debug` into `__builtins__`\nin ` sitecustomize.py`.\n\nFor instructions on ad! ding `debug` to `__builtins__`, \nsee the [installation docs](https://python-devtools.helpmanual.io/usage/#usage-without-import).\n", - author_email='Samuel Colvin ', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: MacOS X', - 'Intended Audience :: Developers', - 'Intended Audience :: Education', - 'Intended Audience :: Information Technology', - 'Intended Audience :: Science/Research', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX :: Linux', - 'Operating System :: Unix', - 'Programming Language :: Python :: 3 :: Only', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Topic :: Internet', - 'Topic :: Software Development :: Libraries :: Python Modules', - 'Typing :: Typed', - ], - install_requires=[ - 'asttokens<3.0.0,>=2.0.0', - 'executing>=1.1.1', - ], - extras_require={ - 'pygments': [ - 'pygments>=2.2.0', - ], - }, - packages=[ - 'devtools', - 'tests', - ], -)