Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 07:20:42 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: ddbd50d8645b - main - textproc/py-colorclass: Convert to USE_PYTHON=pep517
Message-ID:  <202306300720.35U7KgKt075998@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=ddbd50d8645b17ca8e3e80b38ceea056e0163768

commit ddbd50d8645b17ca8e3e80b38ceea056e0163768
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 07:04:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 07:04:47 +0000

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

diff --git a/textproc/py-colorclass/Makefile b/textproc/py-colorclass/Makefile
index 85bf7af68cf5..9c258b1b118d 100644
--- a/textproc/py-colorclass/Makefile
+++ b/textproc/py-colorclass/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	colorclass
 PORTVERSION=	2.2.2
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +12,10 @@ WWW=		https://github.com/matthewdeanmartin/colorclass
 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/textproc/py-colorclass/files/patch-pyproject.toml b/textproc/py-colorclass/files/patch-pyproject.toml
new file mode 100644
index 000000000000..6203c4c5b2d8
--- /dev/null
+++ b/textproc/py-colorclass/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2021-12-09 00:41:34 UTC
++++ pyproject.toml
+@@ -62,5 +62,5 @@ python = ">=2.6 || >=3.0"
+ pytest = "==6.0.1"
+ 
+ [build-system]
+-requires = ["poetry>=0.12"]
+-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?202306300720.35U7KgKt075998>