git: cf66f761bd45 - main - devel/py-copier: Update to 6.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 22 May 2022 05:15:14 UTC
The branch main has been updated by sunpoet:

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

commit cf66f761bd45f259bba88586f5939c5e6599246a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-22 04:22:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-22 04:22:59 +0000

    devel/py-copier: Update to 6.0.0
    
    - Update pkg-descr
    - Update WWW
    
    Changes:        https://github.com/copier-org/copier/releases
---
 devel/py-copier/Makefile             | 39 +++++++++++++++++++++++-------------
 devel/py-copier/distinfo             |  6 +++---
 devel/py-copier/files/patch-setup.py | 20 ++++++++----------
 devel/py-copier/pkg-descr            |  4 ++--
 4 files changed, 38 insertions(+), 31 deletions(-)

diff --git a/devel/py-copier/Makefile b/devel/py-copier/Makefile
index 02a3ecae644d..12ee6cd91de2 100644
--- a/devel/py-copier/Makefile
+++ b/devel/py-copier/Makefile
@@ -1,8 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	copier
-PORTVERSION=	5.1.0
-PORTREVISION=	3
+PORTVERSION=	6.0.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,19 +12,31 @@ COMMENT=	Library for rendering project templates
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorama>=0.4.3<0.5.0:devel/py-colorama@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.2:devel/py-Jinja2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}packaging>=20.4:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pathspec>=0.8.0:devel/py-pathspec@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}plumbum>=1.6.9<2.0.0:sysutils/py-plumbum@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pydantic>=1.5.1<2.0.0:devel/py-pydantic@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}yaml>=5.3.1<6.0:devel/py-yaml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyyaml-include>=1.2<2.0:devel/py-pyyaml-include@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}regex>=2020.6.8<2021.0.0:textproc/py-regex@${PY_FLAVOR}
-
-USES=		python:3.6+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorama>=0.4.3:devel/py-colorama@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dunamai>=1.7.0:devel/py-dunamai@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}iteration-utilities>=0.11.0:devel/py-iteration-utilities@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.1:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jinja2-ansible-filters>=1.3.1:devel/py-jinja2-ansible-filters@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=21.0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pathspec>=0.9.0:devel/py-pathspec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}plumbum>=1.6.9:sysutils/py-plumbum@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic>=1.9.0:devel/py-pydantic@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pygments>=2.7.1:textproc/py-pygments@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=5.3.1:devel/py-yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyyaml-include>=1.2:devel/py-pyyaml-include@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}questionary>=1.8.1:devel/py-questionary@${PY_FLAVOR}
+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}backports.cached-property>=1.0.0:devel/py-backports.cached-property@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.4<5.0:devel/py-importlib-metadata@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4<5.0.0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-copier/distinfo b/devel/py-copier/distinfo
index c0eaa58c2689..06259aac88fb 100644
--- a/devel/py-copier/distinfo
+++ b/devel/py-copier/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1598286900
-SHA256 (copier-5.1.0.tar.gz) = 4afec02c6fa3efcac73e89307a1fddce1b71bf43f2df2adc338b97b89949a59b
-SIZE (copier-5.1.0.tar.gz) = 20766
+TIMESTAMP = 1653151086
+SHA256 (copier-6.0.0.tar.gz) = e85c91e54ee9e9c3cf39f36516f32fc57fe840f702bde7a627a5831890c17232
+SIZE (copier-6.0.0.tar.gz) = 32552
diff --git a/devel/py-copier/files/patch-setup.py b/devel/py-copier/files/patch-setup.py
index 401fa9047a3b..95bacc68bb7a 100644
--- a/devel/py-copier/files/patch-setup.py
+++ b/devel/py-copier/files/patch-setup.py
@@ -1,15 +1,11 @@
---- setup.py.orig	2020-08-17 07:46:54 UTC
+--- setup.py.orig	2022-05-15 09:22:56 UTC
 +++ setup.py
-@@ -9,9 +9,9 @@ package_data = \
+@@ -8,7 +8,7 @@ package_data = \
+ {'': ['*']}
  
  install_requires = \
- ['colorama>=0.4.3,<0.5.0',
-- 'jinja2>=2.11.2,<3.0.0',
-- 'packaging>=20.4,<21.0',
-- 'pathspec>=0.8.0,<0.9.0',
-+ 'jinja2>=2.11.2',
-+ 'packaging>=20.4',
-+ 'pathspec>=0.8.0',
-  'plumbum>=1.6.9,<2.0.0',
-  'pydantic>=1.5.1,<2.0.0',
-  'pyyaml-include>=1.2,<2.0',
+-['Jinja2>=3.1.1',
++['Jinja2>=3.0.1',
+  'PyYAML>=5.3.1',
+  'Pygments>=2.7.1',
+  'colorama>=0.4.3',
diff --git a/devel/py-copier/pkg-descr b/devel/py-copier/pkg-descr
index 0a295a1e64fc..2291bf14a9d5 100644
--- a/devel/py-copier/pkg-descr
+++ b/devel/py-copier/pkg-descr
@@ -1,8 +1,8 @@
-Copier is a library for rendering project templates.
+Copier is a library and CLI app for rendering project templates.
 - Works with local paths and git URLs.
 - Your project can include any file and Copier can dynamically replace values in
   any kind of text file.
 - It generates a beautiful output and takes care of not overwrite existing files
   unless instructed to do so.
 
-WWW: https://github.com/pykong/copier
+WWW: https://github.com/copier-org/copier