From nobody Tue Mar 21 19:27:25 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 4Ph1p75Bxgz40hdk; Tue, 21 Mar 2023 19:27:27 +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 4Ph1p65dxSz4MSY; Tue, 21 Mar 2023 19:27:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426846; 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=FVSbUnFierqwZj7m65J82rbcyY+gvEC/jAG3sAr+4f0=; b=X1plpfOatg4fW0ZFzvKMWQninPAuGbtKbCAu9h9Le46gj9q+B7gkQTmy1bV/LoDWTRhlRh u02XS20aaZshKRDpYH+wpzC9O5hf2UtHbswt7r7AMdk1YPPHdmiwSsSpBmdxbwQQ/q4Gd5 X1RAwubAq+3p5k11bAe0d/hEzGNcgbvy+qaraRmQBjG7mcYGmYBOF4klc8bctTG3VS+42b IxpnXewrm0RkZ7JojSY/oZqcRSyq9y/twWcd6664U4Lhomazx1EgvH+iLJbxxPnEwuNhcA j1OUTgyRhpZMzH4AgXC2oAYeoko/Io7D9QuKcLnPiZsc/qXsuNWYBPy1BC/sGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426846; 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=FVSbUnFierqwZj7m65J82rbcyY+gvEC/jAG3sAr+4f0=; b=vGRh4s9NbJuS7dgIZKITaNAWgaClXpEXq0I+jtK88ovsegK8r8VqaRz+RPW64lbLND/po1 Qt7jSzbA4XwHdZOW+Qr0jJ8x2zwVaLl/aHoWpKJa29OmnPhiUiNRdbkNlRumM9xvjYDPdI W7I4a6sw5Y2G5Z+eb2Qd286nO4Xof2PvXg1eYYU4B1EzIlqhkCc1+LDTM/dvWkst7Rnkxq 5dYkfX1LHLJfcbr52nRpzbhRlBpBNkl07x4CT6/HSlmiQC0dEth5LmHM+8gr5Sdd0wtz62 BGz/SM/ntPe70qF9o2210z/WgkQ8lkKmSCx15hLhmDwc7P9csvOOIxCZBprlLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679426846; a=rsa-sha256; cv=none; b=XueS9dAfqT2H7prtWAi+wFd3BsWe3M1rQvwLpD6P2MmrhmLVyt1L3SxePXhE/TgTxc+7EZ YKx6gZc/guBA8OExnmIEakKi4kmM2HMBP2FQoG24tKtfjkJCjZLDVcP2hBcbgV1Dij+fWs RVwuQffesRZLaeiZCrJEyHIEVqRvk1M2OP+5JCRPcwwrBO+5VN1O9BMeIMEzPV8dCeJ7MY 27mfMvfDc0p41c/OSzbqnK2pJsCX45ce32Sw56yFw00X9aOiCER0fZHSh844Vs6VRvwzco 4jDoqFf0J/cNhChScWuDkp2uW/zK2t+SS4gMm5YOkEl+w2swUfJZaJbN3VWRZA== 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 4Ph1p55F5hzPKM; Tue, 21 Mar 2023 19:27:25 +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 32LJRPRX030936; Tue, 21 Mar 2023 19:27:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJRPcK030935; Tue, 21 Mar 2023 19:27:25 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:27:25 GMT Message-Id: <202303211927.32LJRPcK030935@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: c05aee5dce2c - main - devel/py-hatchling: Convert to USE_PYTHON=pep517 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: c05aee5dce2c8afdcf1ec601593688ae56efdb1b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c05aee5dce2c8afdcf1ec601593688ae56efdb1b commit c05aee5dce2c8afdcf1ec601593688ae56efdb1b Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:44:03 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:20:40 +0000 devel/py-hatchling: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-hatchling/Makefile | 8 ++--- devel/py-hatchling/files/setup.py | 64 --------------------------------------- 2 files changed, 3 insertions(+), 69 deletions(-) diff --git a/devel/py-hatchling/Makefile b/devel/py-hatchling/Makefile index f237164f593d..a720dbdf82dc 100644 --- a/devel/py-hatchling/Makefile +++ b/devel/py-hatchling/Makefile @@ -1,5 +1,6 @@ PORTNAME= hatchling PORTVERSION= 1.12.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,13 +12,14 @@ WWW= https://github.com/pypa/hatch/tree/master/backend LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}editables>=0.3:devel/py-editables@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pathspec>=0.10.1:devel/py-pathspec@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pluggy>=1.0.0:devel/py-pluggy@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -31,8 +33,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-me RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.2.2:textproc/py-tomli@${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-hatchling/files/setup.py b/devel/py-hatchling/files/setup.py deleted file mode 100644 index d9f707a25dc9..000000000000 --- a/devel/py-hatchling/files/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -setup( - name='hatchling', - version='%%PORTVERSION%%', - description='Modern, extensible Python build backend', - long_description='# Hatchling\n\n
\n\nHatch logo\n\n| | |\n| --- | --- |\n| Package | [![PyPI - Version](https://img.shields.io/pypi/v/hatchling.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/hatchling/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/hatchling.svg?color=blue&label=Downloads&logo=pypi&logoColor=gold)](https://pypi.org/project/hatchling/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatchling.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatchling/) |\n| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff) [![code style - B lack](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |\n\n
\n\n-----\n\nThis is the extensible, standards compliant build backend used by [Hatch](https://github.com/pypa/hatch).\n\n## Usage\n\nThe following snippet must be present in your project\'s `pyproject.toml` file in order to use Hatchling as your build backend:\n\n```toml\n[build-system]\nrequires = ["hatchling"]\nbuild-backend = "hatchling.build"\n```\n\nThen a build frontend like [pip](https://github.com/pypa/pip), [build](https://github.com/pypa/build), or Hatch itself can build or install your project automatically:\n\n```console\n# install us ing pip\npip install /path/to/project\n\n# b! uild\npython -m build /path/to/project\n\n# build with Hatch\nhatch build /path/to/project\n```\n\n## Documentation\n\n- [Project metadata](https://hatch.pypa.io/latest/config/metadata/)\n- [Dependencies](https://hatch.pypa.io/latest/config/dependency/)\n- [Packaging](https://hatch.pypa.io/latest/config/build/)\n', - author_email='Ofek Lev ', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Natural Language :: English', - 'Operating System :: OS Independent', - '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', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Topic :: Software Development :: Build Tools', - 'Topic :: Software Development :: Libraries :: Python Modules', - ], - install_requires=[ - 'editables>=0.3', - 'importlib-metadata; python_version < "3.8"', - 'packaging>=21.3', - 'pathspec>=0.10.1', - 'pluggy>=1.0.0', - 'tomli>=1.2.2; python_version < "3.11"', - ], - entry_points={ - 'console_scripts': [ - 'hatchling = hatchling.cli:hatchling', - ], - }, - packages=[ - 'hatchling', - 'hatchling.bridge', - 'hatchling.builders', - 'hatchling.builders.hooks', - 'hatchling.builders.hooks.plugin', - 'hatchling.builders.plugin', - 'hatchling.cli', - 'hatchling.cli.build', - 'hatchling.cli.dep', - 'hatchling.cli.metadata', - 'hatchling.cli.version', - 'hatchling.dep', - 'hatchling.licenses', - 'hatchling.metadata', - 'hatchling.metadata.plugin', - 'hatchling.plugin', - 'hatchling.utils', - 'hatchling.version', - 'hatchling.version.scheme', - 'hatchling.version.scheme.plugin', - 'hatchling.version.source', - 'hatchling.version.source.plugin', - ], - package_dir={'': 'src'}, -)