git: 42f449ea71b8 - main - www/py-instabot: Do not install tests module

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:45:59 UTC
The branch main has been updated by sunpoet:

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

commit 42f449ea71b8354464737d34180c97bd102c5db4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:05:37 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:37:20 +0000

    www/py-instabot: Do not install tests module
    
    - Bump PORTREVISION for package change
    
    PR:             262759
    Reported by:    se
---
 www/py-instabot/Makefile             | 2 +-
 www/py-instabot/files/patch-setup.py | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/www/py-instabot/Makefile b/www/py-instabot/Makefile
index 334cf534b068..4baeb54fa1f9 100644
--- a/www/py-instabot/Makefile
+++ b/www/py-instabot/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	instabot
 PORTVERSION=	0.117.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-instabot/files/patch-setup.py b/www/py-instabot/files/patch-setup.py
new file mode 100644
index 000000000000..e9d22682bd72
--- /dev/null
+++ b/www/py-instabot/files/patch-setup.py
@@ -0,0 +1,9 @@
+--- setup.py.orig	2020-03-28 11:06:35 UTC
++++ setup.py
+@@ -55,5 +55,5 @@ setup(
+         "Programming Language :: Python :: 3.6",
+         "Programming Language :: Python :: 3.7",
+     ],
+-    packages=find_packages(),
++    packages=find_packages(exclude=['tests*']),
+ )