git: 45f1af52a814 - main - devel/py-poetry2setup: Fix runtime after 002028b994f0de5ced1431bafbe20263c40ce3a3 (py-poetry-core 1.1.0 update)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Sep 2022 05:02:03 UTC
The branch main has been updated by sunpoet:

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

commit 45f1af52a8145dda35dbfd05a63d5735f8baed66
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-09-04 05:01:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-09-04 05:01:40 +0000

    devel/py-poetry2setup: Fix runtime after 002028b994f0de5ced1431bafbe20263c40ce3a3 (py-poetry-core 1.1.0 update)
    
    - Bump PORTREVISION for package change
    
    PR:             266156
    Reported by:    girgen
---
 devel/py-poetry2setup/Makefile                    |  1 +
 devel/py-poetry2setup/files/patch-poetry2setup.py | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/devel/py-poetry2setup/Makefile b/devel/py-poetry2setup/Makefile
index 7fbc8c477957..1c689d03ba6d 100644
--- a/devel/py-poetry2setup/Makefile
+++ b/devel/py-poetry2setup/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	poetry2setup
 PORTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-poetry2setup/files/patch-poetry2setup.py b/devel/py-poetry2setup/files/patch-poetry2setup.py
new file mode 100644
index 000000000000..4fa604dc5c51
--- /dev/null
+++ b/devel/py-poetry2setup/files/patch-poetry2setup.py
@@ -0,0 +1,10 @@
+--- poetry2setup.py.orig	2021-01-23 17:40:07 UTC
++++ poetry2setup.py
+@@ -1,6 +1,6 @@
+ from __future__ import print_function
+ 
+-from poetry.core.utils._compat import Path
++from pathlib import Path
+ from poetry.core.factory import Factory
+ from poetry.core.masonry.builders.sdist import SdistBuilder
+