From nobody Mon Jan 30 13:08:50 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 4P57mM024yz3cZVh; Mon, 30 Jan 2023 13:08:51 +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 4P57mL67m8z3PVH; Mon, 30 Jan 2023 13:08:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675084130; 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=UWqN6jhAw7/qEVKM+ts9LXKWwCik37tHuS7Z+/e3V7g=; b=EOp3DKN1Yth6Sx0HOUaAC2s+h9LBk4/NH/Qeror4R8+YOlYxzMiafUoYb+Af1G05CrjIsw Pzcj0EgTSdOzsg+4/zw1DdUDXHCrw0+hnWIwY7en+Mcr3HvMBOz0uLyak9Et7YKW7MBk96 LzOR4OpJW0pCFGLXIHU5YarSSXfCeepNv/BG2G4q62J3eIhlyRDji5UDHPrFq/GW4EBXGV Rn0TwwKTmQPJEFjl/f5zOgCtICfA9CK7Mmd0z3+TLqhoBV1/BohvuwzFuccQkeD1kto6Lr +F5htkbFjuBejLk++pINSPK9WnhoJtiQyOFi1G8ywHZZTSqcR5nZSMYaQgVTqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675084130; 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=UWqN6jhAw7/qEVKM+ts9LXKWwCik37tHuS7Z+/e3V7g=; b=Oh60HAdPlfWxjBoyZxuvFaY/N1GVvQqeQymiX3dSTK1nhqBNG5MZP3ELZxeNMPHI3Q+HwQ kYYrm+GWXQnXO1Ao+TQf1xLIhjfxbAMA/tvt53lSUhLabL9TwWhjujAPo2NDxNhjNndE/a +K+PtNMQ4igjG0ylxuG/D3ed9lbO8sV3Bx1x4/vEScfyOw3/VJVIssxiR+KZ8Gh1bUfYsY DauR6GxzsqwUtEB7wBSMMTWtJetYEfZYlmXqA3qU5czg4BmkbOqyF77eH11vuUAzRU0789 4DnS6Of/JzY/CyoD/B7m1CbTEMlwD9hadhk845uEUc/YtQ4+qxrj7+Fz9sGMaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675084130; a=rsa-sha256; cv=none; b=hpxNufqadu4CN1HUyzimId8FATDqWEe6MqUgq5fZ6gadNhB53gpdOG7ofXoq1AlOo5lsDN LaeXJgkhDcGZ9jxHud9LJbR2LMCuvXY1Xe87HHxQOSfqdrfBV+ike0T/JMt4ZT57j9nwLD 0XpIP8VuK7wTBlLLKNUp60LbJxJHGRoQxTvxhnYjRRWTr3m4O9r2omX8uiTqK9dfqf0vIb DzTlBkIhqoDLGB4VgMeJMtp9OKkvAkVF13L1fxB6VDqgIjhylmwGlPJmQGgZG6fCQKSJMP MUT18nT6THv46bpPIzrhotId1wWryWUZ0oii4raAWbTj9nJAXeti4KW9pIj2Ew== 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 4P57mL5DlZz18K5; Mon, 30 Jan 2023 13:08:50 +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 30UD8oDH056959; Mon, 30 Jan 2023 13:08:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD8oCI056958; Mon, 30 Jan 2023 13:08:50 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:08:50 GMT Message-Id: <202301301308.30UD8oCI056958@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: 608bde4c31e0 - main - devel/py-hatch-vcs: Update to 0.3.0 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: 608bde4c31e065aa7881ba970d93100250534e9a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=608bde4c31e065aa7881ba970d93100250534e9a commit 608bde4c31e065aa7881ba970d93100250534e9a Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:31:21 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-01-30 12:59:47 +0000 devel/py-hatch-vcs: Update to 0.3.0 Changes: https://github.com/ofek/hatch-vcs/releases --- devel/py-hatch-vcs/Makefile | 4 ++-- devel/py-hatch-vcs/distinfo | 6 +++--- devel/py-hatch-vcs/files/setup.py | 9 ++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/devel/py-hatch-vcs/Makefile b/devel/py-hatch-vcs/Makefile index 9d3216d2e6be..90d49b21dc32 100644 --- a/devel/py-hatch-vcs/Makefile +++ b/devel/py-hatch-vcs/Makefile @@ -1,5 +1,5 @@ PORTNAME= hatch-vcs -PORTVERSION= 0.2.0 +PORTVERSION= 0.3.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,7 +12,7 @@ WWW= https://github.com/ofek/hatch-vcs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0.21.0:devel/py-hatchling@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.1.0:devel/py-hatchling@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4.0:devel/py-setuptools_scm@${PY_FLAVOR} TEST_DEPENDS= git:devel/git diff --git a/devel/py-hatch-vcs/distinfo b/devel/py-hatch-vcs/distinfo index 32ecd222273f..428cb3f29f6d 100644 --- a/devel/py-hatch-vcs/distinfo +++ b/devel/py-hatch-vcs/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1661599113 -SHA256 (hatch_vcs-0.2.0.tar.gz) = 9913d733b34eec9bb0345d0626ca32165a4ad2de15d1ce643c36d09ca908abff -SIZE (hatch_vcs-0.2.0.tar.gz) = 9321 +TIMESTAMP = 1674589794 +SHA256 (hatch_vcs-0.3.0.tar.gz) = cec5107cfce482c67f8bc96f18bbc320c9aa0d068180e14ad317bbee5a153fee +SIZE (hatch_vcs-0.3.0.tar.gz) = 10172 diff --git a/devel/py-hatch-vcs/files/setup.py b/devel/py-hatch-vcs/files/setup.py index 65c2ddb0e1d3..e3edabf836c6 100644 --- a/devel/py-hatch-vcs/files/setup.py +++ b/devel/py-hatch-vcs/files/setup.py @@ -5,23 +5,22 @@ setup( name='hatch-vcs', version='%%PORTVERSION%%', description='Hatch plugin for versioning with your preferred VCS', - long_description='# hatch-vcs\n\n| | |\n| --- | --- |\n| CI/CD | [![CI - Test](https://github.com/ofek/hatch-vcs/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/hatch-vcs/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/hatch-vcs/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/hatch-vcs/actions/workflows/build.yml) |\n| Package | [![PyPI - Version](https://img.shields.io/pypi/v/hatch-vcs.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/hatch-vcs/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-vcs.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatch-vcs/) |\n| Meta | [![code style - black](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/ambv/black) [![imports - isort](https://img.shields.io/badge/imports-isort-ef8336.svg)](https://github. com/pycqa/isort) [![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\nThis provides a plugin for [Hatch](https://github.com/ofek/hatch) that uses your preferred version control system (like Git) to determine project versions.\n\n**Table of Contents**\n\n- [Global dependency](#global-dependency)\n- [Version source](#version-source)\n - [Version source options](#version-source-options)\n- [Build hook](#build-hook)\n - [Build hook options](#build-hook-options)\n- [License](#license)\n\n## Global dependency\n\nEnsure `hatch-vcs` is defined within the `build-system.requires` field in your `pyproject.toml` file.\n\n```toml\n[build-system]\nrequires = ["hatchling", "hatch-vcs"]\nbuild-backend = "hatchling.build"\n```\n\n## Version source\n\nThe [version source plugin](https://ofek.dev/hatch/lat est/plugins/version-source/) name is `vcs`.\! n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.version]\n source = "vcs"\n ```\n\n- ***hatch.toml***\n\n ```toml\n [version]\n source = "vcs"\n ```\n\n### Version source options\n\n| Option | Type | Default | Description |\n| --- | --- | --- | --- |\n| `tag-pattern` | `str` | see [code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/config.py#L13) | A regular expression used to extract the version part from VCS tags. The pattern needs to contain either a single match group, or a group named `version`, that captures the actual version information. |\n| `fallback-version` | `str` | | The version that will be used if no other method for detecting the version is successful. If not specified, unsuccessful version detection will raise an error. |\n| `raw-options` | `dict` | | A table of [`setuptools-scm` parameters](https://github.com/pypa/setuptools_scm#configuration-parameters) that will override any of the options listed above. The `w rite_to` and `write_to_template` parameters are ignored. |\n\n## Build hook\n\nThe [build hook plugin](https://ofek.dev/hatch/latest/plugins/build-hook/) name is `vcs`.\n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.build.hooks.vcs]\n ```\n\n- ***hatch.toml***\n\n ```toml\n [build.hooks.vcs]\n ```\n\n### Build hook options\n\n| Option | Type | Default | Description |\n| --- | --- | --- | --- |\n| `version-file` | `str` | ***REQUIRED*** | The relative path to the file that gets updated with the current version. |\n| `template` | `str` | | The template used to overwrite the `version-file`. See the [code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/__init__.py#L30-L39) for the default template for each file extension. |\n\n## License\n\n`hatch-vcs` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n', + long_description='# hatch-vcs\n\n| | |\n| --- | --- |\n| CI/CD | [![CI - Test](https://github.com/ofek/hatch-vcs/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/hatch-vcs/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/hatch-vcs/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/hatch-vcs/actions/workflows/build.yml) |\n| Package | [![PyPI - Version](https://img.shields.io/pypi/v/hatch-vcs.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/hatch-vcs/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-vcs.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatch-vcs/) |\n| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) [![code style - black](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://gith ub.com/ambv/black) [![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\nThis provides a plugin for [Hatch](https://github.com/pypa/hatch) that uses your preferred version control system (like Git) to determine project versions.\n\n**Table of Contents**\n\n- [Global dependency](#global-dependency)\n- [Version source](#version-source)\n - [Version source options](#version-source-options)\n - [Version source environment variables](#version-source-environment-variables)\n- [Build hook](#build-hook)\n - [Build hook options](#build-hook-options)\n - [Editable installs](#editable-installs)\n- [Metadata hook](#metadata-hook)\n - [Metadata hook options](#metadata-hook-options)\n - [URLs](#urls)\n - [Example](#example)\n- [License](#license)\n\n## Global dependency\n\nEnsure `hatch-vcs` is defined within the `build-system.requires` f! ield in your `pyproject.toml` file.\n\n```toml\n[build-system]\nrequires = ["hatchling", "hatch-vcs"]\nbuild-backend = "hatchling.build"\n```\n\n## Version source\n\nThe [version source plugin](https://hatch.pypa.io/latest/plugins/version-source/reference/) name is `vcs`.\n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.version]\n source = "vcs"\n ```\n\n- ***hatch.toml***\n\n ```toml\n [version]\n source = "vcs"\n ```\n\n### Version source options\n\n| Option | Type | Default | Description |\n| --- | --- | --- | --- |\n| `tag-pattern` | `str` | see [code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/config.py#L13) | A regular expression used to extract the version part from VCS tags. The pattern needs to contain either a single match group, or a group named `version`, that captures the actual version information. |\n| `fallback-version` | `str` | | The version that will be used if no other method for detecting the version is succe ssful. If not specified, unsuccessful version detection will raise an error. |\n| `raw-options` | `dict` | | A table of [`setuptools-scm` parameters](https://github.com/pypa/setuptools_scm#configuration-parameters) that will override any of the options listed above. The `write_to` and `write_to_template` parameters are ignored. |\n\n### Version source environment variables\n\n- `SETUPTOOLS_SCM_PRETEND_VERSION`: When defined and not empty, it\'s used as the primary source for the version, in which case it will be an unparsed string.\n\n## Build hook\n\nThe [build hook plugin](https://hatch.pypa.io/latest/plugins/build-hook/reference/) name is `vcs`.\n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.build.hooks.vcs]\n version-file = "_version.py"\n ```\n\n- ***hatch.toml***\n\n ```toml\n [build.hooks.vcs]\n version-file = "_version.py"\n ```\n\nBuilding or installing when the latest tag is ``v1.2.3`` will generate the file\n\n- ***_version.py***\n\n ```pyt hon\n # coding: utf-8\n # file generat! ed by set! uptools_scm\n # don\'t change, don\'t track in version control\n __version__ = version = \'1.2.3\'\n __version_tuple__ = version_tuple = (1, 2, 3)\n ```\n\n### Build hook options\n\n| Option | Type | Default | Description |\n| --- | --- | --- | --- |\n| `version-file` | `str` | ***REQUIRED*** | The relative path to the file that gets updated with the current version. |\n| `template` | `str` | | The template used to overwrite the `version-file`. See the [code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/__init__.py#L30-L39) for the default template for each file extension. |\n\n### Editable installs\n\nThe version file is only updated upon install or build. Thus the version number in an [editable install](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs) (Hatch\'s [dev mode](https://hatch.pypa.io/latest/config/build/#dev-mode)) will be incorrect if the version changes and the project is not rebuilt. An unsupported wo rkaround for keeping the version number up-to-date can be found at [hatch-vcs-footgun-example](https://github.com/maresb/hatch-vcs-footgun-example).\n\n## Metadata hook\n\n**Note:** only Git is supported\n\nThe [metadata hook plugin](https://hatch.pypa.io/latest/plugins/metadata-hook/reference/) name is `vcs`.\n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.metadata.hooks.vcs]\n ```\n\n- ***hatch.toml***\n\n ```toml\n [metadata.hooks.vcs]\n ```\n\n### Metadata hook options\n\n#### URLs\n\nThe `urls` option is equivalent to [`project.urls`](https://hatch.pypa.io/latest/config/metadata/#urls) except that each URL supports [context formatting](https://hatch.pypa.io/latest/config/context/) with the following fields:\n\n- `commit_hash` - the latest commit hash\n\n### Example\n\n- ***pyproject.toml***\n\n ```toml\n [tool.hatch.metadata.hooks.vcs]\n Homepage = "https://www.example.com"\n source_archive = "https://github.com/org/repo/archive/{commit_hash}.z ip"\n ```\n\n- ***hatch.toml***\n\n ``! `toml\n ! [metadata.hooks.vcs]\n Homepage = "https://www.example.com"\n source_archive = "https://github.com/org/repo/archive/{commit_hash}.zip"\n ```\n\n## License\n\n`hatch-vcs` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n', author_email='Ofek Lev ', classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', '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', ], install_requires=[ - 'hatchling>=0.21.0', - 'setuptools-scm<6; python_version < "3"', - 'setuptools-scm>=6.4.0; python_version > "3"', + 'hatchling>=1.1.0', + 'setuptools-scm>=6.4.0', ], entry_points={ 'hatch': [