Daniel Dickman said:
> I don't think it makes sense for tests to live directly under 
> site-packages. Patch below moves the tests to a sub-dir for py-oauth2.
> 
> ok?

Diff below makes more sense to me.  Adds TEST_DEPENDS and removes tests
from site-packages.

-- 
Dmitrij D. Czarkoff

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/net/py-oauth2/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    2 Apr 2015 14:21:16 -0000       1.2
+++ Makefile    28 May 2015 08:24:28 -0000
@@ -5,6 +5,7 @@ COMMENT =       Python library for OAuth
 MODPY_EGG_VERSION = 1.5.211
 DISTNAME =     oauth2-${MODPY_EGG_VERSION}
 PKGNAME =      py-${DISTNAME}
+REVISION =     0
 CATEGORIES =   net
 MAINTAINER =   Johan Huldtgren <jhuldtg...@gmail.com>
 
@@ -19,5 +20,6 @@ MODULES =     lang/python
 MODPY_SETUPTOOLS = Yes
 
 RUN_DEPENDS =  www/py-httplib2
+TEST_DEPENDS = devel/py-mock
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /var/cvs/ports/net/py-oauth2/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   31 Oct 2014 11:59:07 -0000      1.1.1.1
+++ pkg/PLIST   28 May 2015 08:11:31 -0000
@@ -18,8 +18,8 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/oauth2/clients/imap.pyc
 lib/python${MODPY_VERSION}/site-packages/oauth2/clients/smtp.py
 lib/python${MODPY_VERSION}/site-packages/oauth2/clients/smtp.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/
-lib/python${MODPY_VERSION}/site-packages/tests/__init__.py
-lib/python${MODPY_VERSION}/site-packages/tests/__init__.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/test_oauth.py
-lib/python${MODPY_VERSION}/site-packages/tests/test_oauth.pyc
+@comment lib/python${MODPY_VERSION}/site-packages/tests/
+@comment lib/python${MODPY_VERSION}/site-packages/tests/__init__.py
+@comment lib/python${MODPY_VERSION}/site-packages/tests/__init__.pyc
+@comment lib/python${MODPY_VERSION}/site-packages/tests/test_oauth.py
+@comment lib/python${MODPY_VERSION}/site-packages/tests/test_oauth.pyc

Reply via email to