git: bbbaebcf3bce - main - www/py-woob: Do not install tests files

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Tue, 17 Jan 2023 21:01:36 UTC
The branch main has been updated by jhale:

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

commit bbbaebcf3bce14d6e320a086345351ed0718305c
Author:     Oleg Sidorkin <osidorkin@gmail.com>
AuthorDate: 2023-01-16 19:34:14 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-01-17 20:58:31 +0000

    www/py-woob: Do not install tests files
    
    PR:             269003
---
 www/py-woob/Makefile             |  1 +
 www/py-woob/files/patch-setup.py | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/www/py-woob/Makefile b/www/py-woob/Makefile
index fb75e9c84f70..7c6a45e1d264 100644
--- a/www/py-woob/Makefile
+++ b/www/py-woob/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	woob
 PORTVERSION=	3.1
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-woob/files/patch-setup.py b/www/py-woob/files/patch-setup.py
new file mode 100644
index 000000000000..aed574c2686f
--- /dev/null
+++ b/www/py-woob/files/patch-setup.py
@@ -0,0 +1,14 @@
+Exclude test files from being installed.
+PR: 269003
+
+--- setup.py.orig	2022-12-20 10:22:03 UTC
++++ setup.py
+@@ -29,7 +29,7 @@ from setuptools import find_packages, setup
+ 
+ 
+ def install_woob():
+-    packages = set(find_packages(exclude=['modules', 'modules.*']))
++    packages = set(find_packages(exclude=['modules', 'modules.*', 'tests', 'tests.*']))
+ 
+     data_files = [
+         ('share/man/man1', glob.glob('man/*')),