git: c267814fa939 - main - devel/py-platformdirs: Update to 4.2.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 31 Mar 2024 03:40:14 UTC
The branch main has been updated by sunpoet:

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

commit c267814fa9390e4ba23bf85adfc0130b5b8349db
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-31 03:06:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-31 03:06:36 +0000

    devel/py-platformdirs: Update to 4.2.0
    
    Changes:        https://github.com/platformdirs/platformdirs/releases
---
 devel/py-platformdirs/Makefile                     |  9 +++-----
 devel/py-platformdirs/distinfo                     |  6 +++---
 .../files/patch-src-platformdirs-__init__.py       | 24 ----------------------
 3 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/devel/py-platformdirs/Makefile b/devel/py-platformdirs/Makefile
index 46164bcc49e8..3adbc7cdd2e4 100644
--- a/devel/py-platformdirs/Makefile
+++ b/devel/py-platformdirs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	platformdirs
-PORTVERSION=	3.11.0
+PORTVERSION=	4.2.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,15 +12,12 @@ WWW=		https://platformdirs.readthedocs.io/en/latest/ \
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.3:devel/py-hatch-vcs@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}hatchling>=1.17.1:devel/py-hatchling@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.4:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>=1.18:devel/py-hatchling@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${RM} ${WRKSRC}/src/platformdirs/__init__.py.orig
-
 .include <bsd.port.mk>
diff --git a/devel/py-platformdirs/distinfo b/devel/py-platformdirs/distinfo
index 35ceb5a5fb03..e5a8c77ae8c9 100644
--- a/devel/py-platformdirs/distinfo
+++ b/devel/py-platformdirs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1696432932
-SHA256 (platformdirs-3.11.0.tar.gz) = cf8ee52a3afdb965072dcc652433e0c7e3e40cf5ea1477cd4b3b1d2eb75495b3
-SIZE (platformdirs-3.11.0.tar.gz) = 19914
+TIMESTAMP = 1711466154
+SHA256 (platformdirs-4.2.0.tar.gz) = ef0cc731df711022c174543cb70a9b5bd22e5a9337c8624ef2c2ceb8ddad8768
+SIZE (platformdirs-4.2.0.tar.gz) = 20055
diff --git a/devel/py-platformdirs/files/patch-src-platformdirs-__init__.py b/devel/py-platformdirs/files/patch-src-platformdirs-__init__.py
deleted file mode 100644
index 888ea5137b6b..000000000000
--- a/devel/py-platformdirs/files/patch-src-platformdirs-__init__.py
+++ /dev/null
@@ -1,24 +0,0 @@
-Workaround for setuptools-scm 6.x
-
->>> import platformdirs
-Traceback (most recent call last):
-  File "<stdin>", line 1, in <module>
-  File "/usr/local/lib/python3.9/site-packages/platformdirs/__init__.py", line 17, in <module>
-    from .version import __version__
-ImportError: cannot import name '__version__' from 'platformdirs.version' (/usr/local/lib/python3.9/site-packages/platformdirs/version.py)
-
-Reference:	https://github.com/pypa/setuptools_scm/commit/b45e19f9f275a31873fd5e07faabef16fd0bbec0
-
---- src/platformdirs/__init__.py.orig	2020-02-02 00:00:00 UTC
-+++ src/platformdirs/__init__.py
-@@ -9,8 +9,8 @@ import sys
- from typing import TYPE_CHECKING
- 
- from .api import PlatformDirsABC
--from .version import __version__
--from .version import __version_tuple__ as __version_info__
-+from .version import version
-+from .version import version_tuple as __version_info__
- 
- if TYPE_CHECKING:
-     from pathlib import Path