Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2024 14:18:09 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4e3a1e948c8a - main - devel/py-pytzdata: Convert to USE_PYTHON=pep517
Message-ID:  <202405131418.44DEI9Hk087507@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 4e3a1e948c8a71fec971dcea13771ada80105f08
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 13:59:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 13:59:56 +0000

    devel/py-pytzdata: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-pytzdata/Makefile                   |  5 ++++-
 devel/py-pytzdata/files/patch-pyproject.toml | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/devel/py-pytzdata/Makefile b/devel/py-pytzdata/Makefile
index d0d45dab1d6e..722acf81d021 100644
--- a/devel/py-pytzdata/Makefile
+++ b/devel/py-pytzdata/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pytzdata
 PORTVERSION=	2020.1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +12,10 @@ WWW=		https://github.com/sdispater/pytzdata
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-pytzdata/files/patch-pyproject.toml b/devel/py-pytzdata/files/patch-pyproject.toml
new file mode 100644
index 000000000000..3b0d35bfa37a
--- /dev/null
+++ b/devel/py-pytzdata/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2020-07-13 10:40:40 UTC
++++ pyproject.toml
+@@ -30,5 +30,5 @@ black = {version = "^19.10b0", python = "^3.6"}
+ 
+ 
+ [build-system]
+-requires = ["poetry>=1.0.0"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405131418.44DEI9Hk087507>