Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2024 00:03:06 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: 3e09d339cfd6 - main - www/py-django42: Convert to USE_PYTHON=pep517
Message-ID:  <202404060003.436036A4080757@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=3e09d339cfd68f1b03adb1de6b78463164514adf

commit 3e09d339cfd68f1b03adb1de6b78463164514adf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-06 00:00:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-06 00:00:03 +0000

    www/py-django42: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 www/py-django42/Makefile              | 5 ++++-
 www/py-django42/files/patch-setup.cfg | 9 +++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/py-django42/Makefile b/www/py-django42/Makefile
index a0740097e9d5..d5ec2ffcdd78 100644
--- a/www/py-django42/Makefile
+++ b/www/py-django42/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	django
 PORTVERSION=	4.2.11
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI \
 		https://media.djangoproject.com/releases/${PORTVERSION:R}/
@@ -15,12 +16,14 @@ WWW=		https://www.djangoproject.com/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asgiref>=3.6.0:www/py-asgiref@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.1:databases/py-sqlparse@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tblib>0:devel/py-tblib@${PY_FLAVOR}
 
 USES=		cpe python shebangfix
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist pep517
 
 NO_ARCH=	yes
 
diff --git a/www/py-django42/files/patch-setup.cfg b/www/py-django42/files/patch-setup.cfg
new file mode 100644
index 000000000000..c57e4e938370
--- /dev/null
+++ b/www/py-django42/files/patch-setup.cfg
@@ -0,0 +1,9 @@
+--- setup.cfg.orig	2024-03-04 07:44:07 UTC
++++ setup.cfg
+@@ -1,5 +1,5 @@
+ [metadata]
+-name = Django
++name = django
+ version = attr: django.__version__
+ url = https://www.djangoproject.com/
+ author = Django Software Foundation



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