git: 8b6f38739d2f - main - devel/py-hatchling: Update to 1.12.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 13:08:51 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b6f38739d2f582a2f8a0d3702e35fbf1bb1b630

commit 8b6f38739d2f582a2f8a0d3702e35fbf1bb1b630
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:31:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 12:59:47 +0000

    devel/py-hatchling: Update to 1.12.2
    
    Changes:        https://github.com/pypa/hatch/commits/master/backend
---
 devel/py-hatchling/Makefile       |  5 +++--
 devel/py-hatchling/distinfo       |  6 +++---
 devel/py-hatchling/files/setup.py | 23 +++++++++--------------
 3 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/devel/py-hatchling/Makefile b/devel/py-hatchling/Makefile
index b310b76c730f..f237164f593d 100644
--- a/devel/py-hatchling/Makefile
+++ b/devel/py-hatchling/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	hatchling
-PORTVERSION=	1.11.1
+PORTVERSION=	1.12.2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 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.9:devel/py-pathspec@${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+
@@ -32,6 +32,7 @@ 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 <bsd.port.post.mk>
diff --git a/devel/py-hatchling/distinfo b/devel/py-hatchling/distinfo
index 1c177ad70e65..5c9ce4b17fab 100644
--- a/devel/py-hatchling/distinfo
+++ b/devel/py-hatchling/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669057753
-SHA256 (hatchling-1.11.1.tar.gz) = 9f84361f70cf3a7ab9543b0c3ecc64211ed2ba8a606a71eb6a473c1c9b08e1d0
-SIZE (hatchling-1.11.1.tar.gz) = 57223
+TIMESTAMP = 1674589796
+SHA256 (hatchling-1.12.2.tar.gz) = 8a6d719d96653a0f3901072b12710c9c3cc934f9061b443775c6789b45333495
+SIZE (hatchling-1.12.2.tar.gz) = 61667
diff --git a/devel/py-hatchling/files/setup.py b/devel/py-hatchling/files/setup.py
index 9bff73f76f85..d9f707a25dc9 100644
--- a/devel/py-hatchling/files/setup.py
+++ b/devel/py-hatchling/files/setup.py
@@ -5,7 +5,7 @@ setup(
     name='hatchling',
     version='%%PORTVERSION%%',
     description='Modern, extensible Python build backend',
-    long_description='# Hatchling\n\n-----\n\nThis is the extensible, standards compliant build backend used by [Hatch](https://github.com/ofek/hatch).\n',
+    long_description='# Hatchling\n\n<div align="center">\n\n<img src="https://raw.githubusercontent.com/pypa/hatch/master/docs/assets/images/logo.svg" alt="Hatch logo" width="500" role="img">\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</div>\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 <oss@ofek.dev>',
     classifiers=[
         'Development Status :: 5 - Production/Stable',
@@ -13,26 +13,23 @@ setup(
         'License :: OSI Approved :: MIT License',
         'Natural Language :: English',
         'Operating System :: OS Independent',
-        'Programming Language :: Python :: 2.7',
-        'Programming Language :: Python :: 3.10',
         '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; python_version > "3"',
+        'editables>=0.3',
         'importlib-metadata; python_version < "3.8"',
-        'packaging>=21.3; python_version > "3"',
-        'packaging~=20.9; python_version < "3"',
-        'pathspec>=0.9',
-        'pluggy>=1.0.0; python_version > "3"',
-        'pluggy~=0.13; python_version < "3"',
-        'tomli>=1.2.2; python_version > "3" and python_version < "3.11"',
-        'toml~=0.10.2; python_version < "3"',
+        'packaging>=21.3',
+        'pathspec>=0.10.1',
+        'pluggy>=1.0.0',
+        'tomli>=1.2.2; python_version < "3.11"',
     ],
     entry_points={
         'console_scripts': [
@@ -63,7 +60,5 @@ setup(
         'hatchling.version.source',
         'hatchling.version.source.plugin',
     ],
-    package_dir={
-        '': 'src',
-    },
+    package_dir={'': 'src'},
 )