git: 76fd22169df5 - main - science/py-oddt: Not install tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 17:28:36 UTC
The branch main has been updated by yuri:

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

commit 76fd22169df50b612ebe08cd19911f4d31a71e44
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-03-25 17:27:03 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-03-25 17:28:34 +0000

    science/py-oddt: Not install tests
    
    PR:             262759
    Reported by:    se@
---
 science/py-oddt/Makefile             |  6 ++++--
 science/py-oddt/files/patch-setup.py | 13 +++++++++++++
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/science/py-oddt/Makefile b/science/py-oddt/Makefile
index 09450612a8e3..2cda6e2cb6c6 100644
--- a/science/py-oddt/Makefile
+++ b/science/py-oddt/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	oddt
 DISTVERSION=	0.7
+PORTREVISION=	1
 CATEGORIES=	science python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -9,13 +10,14 @@ COMMENT=	Open Drug Discovery Toolkit
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYNUMPY} \
+PY_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}joblib>=0.9.4:devel/py-joblib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pandas>=0.19.2:math/py-pandas@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.18:science/py-scikit-learn@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=0.17:science/py-scipy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
 
 USES=		python:3.7+
 USE_GITHUB=	yes
diff --git a/science/py-oddt/files/patch-setup.py b/science/py-oddt/files/patch-setup.py
new file mode 100644
index 000000000000..ce95f655591f
--- /dev/null
+++ b/science/py-oddt/files/patch-setup.py
@@ -0,0 +1,13 @@
+- same patch as suggested here: https://github.com/oddt/oddt/issues/160
+
+--- setup.py.orig	2022-03-25 17:16:33 UTC
++++ setup.py
+@@ -9,7 +9,7 @@ setup(name='oddt',
+       author_email='mwojcikowski@ibb.waw.pl',
+       url='https://github.com/oddt/oddt',
+       license='BSD',
+-      packages=find_packages(),
++      packages=find_packages(exclude=['test*']),
+       package_data={'oddt.scoring.functions': ['NNScore/*.csv',
+                                                'RFScore/*.csv',
+                                                'PLECscore/*.json',