From nobody Tue Mar 21 19:28:33 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 4Ph1qP5hJJz40hqs; Tue, 21 Mar 2023 19:28:33 +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 4Ph1qP479Tz4RCW; Tue, 21 Mar 2023 19:28:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426913; 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=jRyeXtIyxArbZkhoArNrrTrz8pGcNIWVWIujSFf0mEw=; b=VGVNqE7IhTBfywh78ouFZN7nGgDU/pkQhNPcVGxMwhpQiaLK2R5czJvJ13Woq/qdH7vsbo YIrrqu/OpZWewpYxdhq3XtsTCUhmjHhgGYiYkUxjof4WnyQbc5CWmd7vYs/s0+Yiqbz0R2 H9zzz99eA/hUWNIwNtBJQGGS0DA1gLqpbyLT6le4zwry4uwHLKv1JdzMKRQVPxSuFcN3WI Q3rY5LRnNGEwGj+4xyEaq25oZeLne9R6tr/APkKEbN73k64J6s/nbXM5a+2LIB5lcxRFsP QuM1hm1AjG3VByMbIUI3mxTKW1654FVcKcBa2HycS/uLbQM/eEea6KEtjcmmVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426913; 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=jRyeXtIyxArbZkhoArNrrTrz8pGcNIWVWIujSFf0mEw=; b=kauB7eFnuJSNNEz3ld9eQgVhN9LzoeN9wGb5jhBX0eKt3ToIQUp011ZY+k57jl35zpqaOz j4GkzXN+xRupWNvrt5M/WE5jyAu1vsEprkVuQ1ETXbQJJiYL70Tr57PJjt5ow2Wq7wG/vR op3r0NXp8BiwpHPrPT6Wstp7+ovia9PgxZwEXVJkMRsiPm/6Q+H5oE2bQbjtGymiNFEUeD JT+/ApnadcOvQH4fIe3tlkOB2dAX1bJ/SMM4kxDV3v8Dhat+It7gDt10VFBrc/KG+QIqSI /IkOwYl6xe1rOrXGVTCriKAYJh0CsMb4fNkTY/xYA6lLN9QUnjrQJFtTqEsgBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679426913; a=rsa-sha256; cv=none; b=GtSnLwmknNoFjExKVMRiIQiY0ZrNgziOX0tmN9cpiniN1b0yamm3jj1wYslPX40x0SuJmH 1AmEyMwu7yq7qD0BliK2pkGhVHFiwEJzQ4gASxY1YmJsvKhUty3mxN49gRsMcpWZVIsC6p ZCSx08YcJeSWZanXaDXlQzk8nRKO4D9mKYdrk+qXOVAD1j1M6p0vkTCK8H2JNiAWuvk40X 9IHZNLsXxLfb1YKYDT7BzGMsW8jh6pwLUSkUlWBfBjP2On8wYXevYTQHvTXsmcn5wMFgWR d2g0Ng9BZfrDcYA0iEcLjYu/ME2YZ0P/QGtZezsEg8SxeEmNo2YaZgESjUJOjQ== 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 4Ph1qP39K5zPYY; Tue, 21 Mar 2023 19:28:33 +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 32LJSXaZ032191; Tue, 21 Mar 2023 19:28:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJSX3M032190; Tue, 21 Mar 2023 19:28:33 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:28:33 GMT Message-Id: <202303211928.32LJSX3M032190@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: e928983943f2 - main - devel/py-poetry-core: 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: e928983943f20899bd6e93b0e5e98e0e081d00de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e928983943f20899bd6e93b0e5e98e0e081d00de commit e928983943f20899bd6e93b0e5e98e0e081d00de Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:45:05 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:20:57 +0000 devel/py-poetry-core: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-poetry-core/Makefile | 6 +-- devel/py-poetry-core/files/setup.py | 73 ------------------------------------- 2 files changed, 2 insertions(+), 77 deletions(-) diff --git a/devel/py-poetry-core/Makefile b/devel/py-poetry-core/Makefile index 34242912db77..9d418ab14280 100644 --- a/devel/py-poetry-core/Makefile +++ b/devel/py-poetry-core/Makefile @@ -1,5 +1,6 @@ PORTNAME= poetry-core PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,7 +14,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -23,7 +24,4 @@ NO_ARCH= yes RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR} .endif -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include diff --git a/devel/py-poetry-core/files/setup.py b/devel/py-poetry-core/files/setup.py deleted file mode 100644 index 308402066e67..000000000000 --- a/devel/py-poetry-core/files/setup.py +++ /dev/null @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -package_dir = \ -{'': 'src'} - -packages = \ -['poetry', - 'poetry.core', - 'poetry.core._vendor', - 'poetry.core._vendor.attr', - 'poetry.core._vendor.attrs', - 'poetry.core._vendor.jsonschema', - 'poetry.core._vendor.jsonschema.benchmarks', - 'poetry.core._vendor.lark', - 'poetry.core._vendor.lark.__pyinstaller', - 'poetry.core._vendor.lark.grammars', - 'poetry.core._vendor.lark.parsers', - 'poetry.core._vendor.lark.tools', - 'poetry.core._vendor.packaging', - 'poetry.core._vendor.pyparsing', - 'poetry.core._vendor.pyparsing.diagram', - 'poetry.core._vendor.pyrsistent', - 'poetry.core._vendor.tomlkit', - 'poetry.core.constraints', - 'poetry.core.constraints.generic', - 'poetry.core.constraints.version', - 'poetry.core.exceptions', - 'poetry.core.json', - 'poetry.core.masonry', - 'poetry.core.masonry.builders', - 'poetry.core.masonry.utils', - 'poetry.core.packages', - 'poetry.core.packages.constraints', - 'poetry.core.packages.utils', - 'poetry.core.pyproject', - 'poetry.core.semver', - 'poetry.core.spdx', - 'poetry.core.toml', - 'poetry.core.utils', - 'poetry.core.vcs', - 'poetry.core.version', - 'poetry.core.version.grammars', - 'poetry.core.version.pep440'] - -package_data = \ -{'': ['*'], - 'poetry.core._vendor.jsonschema': ['schemas/*'], - 'poetry.core._vendor.jsonschema.benchmarks': ['issue232/*'], - 'poetry.core.json': ['schemas/*'], - 'poetry.core.spdx': ['data/*']} - -extras_require = \ -{':python_version < "3.8"': ['importlib-metadata>=1.7.0']} - -setup_kwargs = { - 'name': 'poetry-core', - 'version': '%%PORTVERSION%%', - 'description': 'Poetry PEP 517 Build Backend', - 'long_description': '# Poetry Core\n[![PyPI version](https://img.shields.io/pypi/v/poetry-core)](https://pypi.org/project/poetry-core/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/poetry-core)](https://pypi.org/project/poetry-core/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![](https://github.com/python-poetry/poetry-core/workflows/Tests/badge.svg)](https://github.com/python-poetry/poetry-core/actions?query=workflow%3ATests)\n\nA [PEP 517](https://www.python.org/dev/peps/pep-0517/) build backend implementation developed for\n[Poetry](https://github.com/python-poetry/poetry). This project is intended to be a light weight, fully compliant,\nself-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects.\n\n## Usage\nIn most cases, the usage of this package is transparent to the end-user as it is either made use by Poetry itself\nor a PEP 517 frontend (eg: `pip`).\n\nIn order to enable the use `poetry-core` as your build backend, the following snippet must be present in your\nproject\'s `pyproject.toml` file.\n\n```toml\n[build-system]\nrequires = ["poetry-core"]\nbuild-backend = "poetry.core.masonry.api"\n```\n\nOnce this is present, a PEP 517 frontend like `pip` can build and install your project from source without the need\nfor Poetry or any of its dependencies.\n\n```shell\n# install to current environment\npip install /path/to/poetry/managed/project\n\n# build a wheel package\npip wheel /path/to/poetry/managed/project\n```\n\n## Why is this required?\nPrior to the release of version `1.1.0`, Poetry was a project management tool that included a PEP 517\nbuild backend. This was inefficient and time consuming when a PEP 517 build was required. For example,\nboth `pip` and `tox` (with isolated builds) would install Poetry and all dependencies it required. Most of these! \ndependencies are not required when the objective is to simply build either a source or binary distribution of your\nproject.\n\nIn order to improve the above situation, `poetry-core` was created. Shared functionality pertaining to PEP 517 build\nbackends, including reading lock file, `pyproject.toml` and building wheel/sdist, were implemented in this package. This\nmakes PEP 517 builds extremely fast for Poetry managed packages.\n', - 'author': 'Sébastien Eustace', - 'author_email': 'sebastien@eustace.io', - 'maintainer': 'None', - 'maintainer_email': 'None', - 'url': 'https://github.com/python-poetry/poetry-core', - 'package_dir': package_dir, - 'packages': packages, - 'package_data': package_data, - 'extras_require': extras_require, - 'python_requires': '>=3.7,<4.0', -} - -setup(**setup_kwargs)