git: e817414f4dc9 - main - devel/py-installer: Update to 0.6.0

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

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

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

    devel/py-installer: Update to 0.6.0
    
    Changes:        https://github.com/pypa/installer/blob/main/docs/changelog.md
---
 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 1b7747a9f851..7abd9b144232 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=	PYPI
 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',
+     )