git: 0e6f86fd935b - 2023Q1 - devel/py-installer: Update to 0.6.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 18:15:01 UTC
The branch 2023Q1 has been updated by sunpoet:

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

commit 0e6f86fd935b000de1ec4526992d0c0a172c2551
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:31:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-05 18:14:07 +0000

    devel/py-installer: Update to 0.6.0
    
    Changes:        https://github.com/pypa/installer/blob/main/docs/changelog.md
    (cherry picked from commit e817414f4dc9ddbf64c274499d3199c8b30df41f)
---
 devel/py-installer/Makefile       |  5 ++++-
 devel/py-installer/distinfo       |  6 +++---
 devel/py-installer/files/setup.py | 25 +++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/devel/py-installer/Makefile b/devel/py-installer/Makefile
index 5f8c256d08f3..42d318d836f0 100644
--- a/devel/py-installer/Makefile
+++ b/devel/py-installer/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	installer
-PORTVERSION=	0.5.1
+PORTVERSION=	0.6.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,4 +16,7 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/devel/py-installer/distinfo b/devel/py-installer/distinfo
index 53590e601ea7..9967e0998037 100644
--- a/devel/py-installer/distinfo
+++ b/devel/py-installer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647264540
-SHA256 (installer-0.5.1.tar.gz) = f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445
-SIZE (installer-0.5.1.tar.gz) = 469793
+TIMESTAMP = 1674589800
+SHA256 (installer-0.6.0.tar.gz) = f3bd36cd261b440a88a1190b1becca0578fee90b4b62decc796932fdd5ae8839
+SIZE (installer-0.6.0.tar.gz) = 471077
diff --git a/devel/py-installer/files/setup.py b/devel/py-installer/files/setup.py
new file mode 100644
index 000000000000..1be788dd310f
--- /dev/null
+++ b/devel/py-installer/files/setup.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['installer', 'installer._scripts']
+
+package_data = \
+{'': ['*']}
+
+package_dir = \
+{'': 'src'}
+
+setup(name='installer',
+      version='%%PORTVERSION%%',
+      description='A library for installing Python wheels.',
+      author=None,
+      author_email='Pradyun Gedam <pradyunsg@gmail.com>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      package_dir=package_dir,
+      python_requires='>=3.7',
+     )