git: ff62c1197457 - main - www/py-django-registration-redux: Fix wayward test files installing

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Wed, 30 Mar 2022 10:21:15 UTC
The branch main has been updated by kai:

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

commit ff62c1197457e70e44b011b2fd3809e6b40fd400
Author:     Kevin Golding <ports@caomhin.org>
AuthorDate: 2022-03-30 10:15:01 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-03-30 10:15:01 +0000

    www/py-django-registration-redux: Fix wayward test files installing
    
    * Prevent installing the test suite into the top level of Python's
      site-lib directory to avoid conflicting files.
    
    * Bump PORTREVISION due package change.
    
    PR:             262759 [1], 262800
    Reported by:    se [1]
---
 www/py-django-registration-redux/Makefile             |  1 +
 www/py-django-registration-redux/files/patch-setup.py | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/www/py-django-registration-redux/Makefile b/www/py-django-registration-redux/Makefile
index d489b3bd3580..7b17900185b4 100644
--- a/www/py-django-registration-redux/Makefile
+++ b/www/py-django-registration-redux/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	django-registration-redux
 PORTVERSION=	2.10
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-django-registration-redux/files/patch-setup.py b/www/py-django-registration-redux/files/patch-setup.py
new file mode 100644
index 000000000000..52d04f23138c
--- /dev/null
+++ b/www/py-django-registration-redux/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig      2022-03-25 16:28:33 UTC
++++ setup.py
+@@ -30,7 +30,7 @@ setup(
+     author_email='macropin@gmail.com',
+     url='https://github.com/macropin/django-registration',
+     package_dir={'registration': 'registration'},
+-    packages=find_packages(exclude='test_app'),
++    packages=find_packages(exclude=['test_app']),
+     tests_require=['pytest-django'],
+     cmdclass={'test': PyTest},
+     include_package_data=True,