git: 162c35d77f47 - main - www/py-django-debreach: Update to 2.1.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Fri, 21 Jan 2022 19:04:09 UTC
The branch main has been updated by kai:

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

commit 162c35d77f47bcf2d8ec1ed1a531250336f9baeb
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-01-21 18:54:00 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-01-21 19:00:59 +0000

    www/py-django-debreach: Update to 2.1.0
    
    Changelog:
    
    https://github.com/lpomfrey/django-debreach/releases/tag/2.1.0
---
 www/py-django-debreach/Makefile                   |  8 ++++++--
 www/py-django-debreach/distinfo                   |  6 +++---
 www/py-django-debreach/files/patch-pyproject.toml | 11 +++++++++++
 www/py-django-debreach/files/patch-setup.cfg      | 13 +++++++++++++
 www/py-django-debreach/files/setup.py             |  5 +++++
 5 files changed, 38 insertions(+), 5 deletions(-)

diff --git a/www/py-django-debreach/Makefile b/www/py-django-debreach/Makefile
index 55bc40e050ed..e817f1c0f604 100644
--- a/www/py-django-debreach/Makefile
+++ b/www/py-django-debreach/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	django-debreach
-PORTVERSION=	2.0.1
+PORTVERSION=	2.1.0
 CATEGORIES=	www security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +12,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django22>0:www/py-django22@${PY_FLAVOR}
 
-USES=		python:3.5+
+USES=		python:3.7+
 USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+# Workaround to make the port still buildable with "distutils"
+post-extract:
+	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} runtests.py
 
diff --git a/www/py-django-debreach/distinfo b/www/py-django-debreach/distinfo
index 686ae673e756..29fd98769408 100644
--- a/www/py-django-debreach/distinfo
+++ b/www/py-django-debreach/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1586162610
-SHA256 (django-debreach-2.0.1.tar.gz) = 3dd90385918daef4951e67ef6c3dcb550ac5164d84f5cc9889ed52e312597d68
-SIZE (django-debreach-2.0.1.tar.gz) = 14592
+TIMESTAMP = 1642547128
+SHA256 (django-debreach-2.1.0.tar.gz) = aeac9f43e0ea97830bed69cb309ad5746b5ed2b9dce733ac4c136c8e16a7d6e5
+SIZE (django-debreach-2.1.0.tar.gz) = 15616
diff --git a/www/py-django-debreach/files/patch-pyproject.toml b/www/py-django-debreach/files/patch-pyproject.toml
new file mode 100644
index 000000000000..0cb7e3454f26
--- /dev/null
+++ b/www/py-django-debreach/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+Remove requirements for wheel and pip as they're not required for build
+
+--- pyproject.toml.orig	2022-01-19 06:15:34 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools", "wheel", "pip"]
++requires = ["setuptools"]
+ build-backend = "setuptools.build_meta"
+ 
+ [tool.black]
diff --git a/www/py-django-debreach/files/patch-setup.cfg b/www/py-django-debreach/files/patch-setup.cfg
new file mode 100644
index 000000000000..552c7b1ea93e
--- /dev/null
+++ b/www/py-django-debreach/files/patch-setup.cfg
@@ -0,0 +1,13 @@
+Remove requirements for wheel and pip as they're not required for build
+
+--- setup.cfg.orig	2022-01-19 06:16:57 UTC
++++ setup.cfg
+@@ -32,7 +32,7 @@ classifiers = 
+ zip_safe = False
+ include_package_data = True
+ packages = find:
+-setup_requires = setuptools;wheel;pip
++setup_requires = setuptools
+ python_requires = >=3.7
+ tests_require = django
+ 
diff --git a/www/py-django-debreach/files/setup.py b/www/py-django-debreach/files/setup.py
new file mode 100644
index 000000000000..2285e429c304
--- /dev/null
+++ b/www/py-django-debreach/files/setup.py
@@ -0,0 +1,5 @@
+# Enable build with distutils
+
+from setuptools import setup
+
+setup()