Dmitrij D. Czarkoff said:
> Provided that upstream ceased touching oauth2 in 2011, I believe that
> patching tests away in "setup.py" is the most viable long-term solution.

Similar diff for www/py-paste-script, this time from upstream:
https://bitbucket.org/ianb/pastescript/commits/814fbc493e7a9999086127f64c2406ecb1794990/raw/

FWIW I added dependencies for test target, although it still fails.

-- 
Dmitrij D. Czarkoff

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/www/py-paste-script/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- Makefile    2 Apr 2015 14:21:18 -0000       1.15
+++ Makefile    28 May 2015 22:19:52 -0000
@@ -26,6 +26,8 @@ RUN_DEPENDS=          devel/py-cheetah \
 # has shitloads of dependencies) and FakePlugin.  There isn't much
 # point in porting them.
 TEST_DEPENDS=  ${RUN_DEPENDS} \
+                       devel/py-nose \
+                       devel/py-test \
                        devel/py-py
 
 MODPY_SETUPTOOLS=      Yes
Index: patches/patch-setup_py
===================================================================
RCS file: patches/patch-setup_py
diff -N patches/patch-setup_py
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-setup_py      28 May 2015 22:18:56 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- setup.py.orig      Fri May 29 00:17:05 2015
++++ setup.py   Fri May 29 00:18:10 2015
+@@ -61,7 +61,7 @@ setup(
+     url="http://pythonpaste.org/script/";,
+     namespace_packages=['paste'],
+     license='MIT',
+-    packages=find_packages(exclude='tests'),
++    packages=find_packages(exclude=['tests','tests.*']),
+     package_data={
+       'paste.script': ['paster-templates/basic_package/setup.*',
+                        'paster-templates/basic_package/tests/*.py',
Index: pkg/PLIST
===================================================================
RCS file: /var/cvs/ports/www/py-paste-script/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST
--- pkg/PLIST   22 Apr 2012 12:13:55 -0000      1.6
+++ pkg/PLIST   28 May 2015 22:19:21 -0000
@@ -81,22 +81,6 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/paste/script/util/uuid.pyc
 lib/python${MODPY_VERSION}/site-packages/paste/script/wsgiutils_server.py
 lib/python${MODPY_VERSION}/site-packages/paste/script/wsgiutils_server.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/appsetup/
-lib/python${MODPY_VERSION}/site-packages/tests/appsetup/__init__.py
-lib/python${MODPY_VERSION}/site-packages/tests/appsetup/__init__.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/appsetup/test_make_project.py
-lib/python${MODPY_VERSION}/site-packages/tests/appsetup/test_make_project.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/test_egg_finder.py
-lib/python${MODPY_VERSION}/site-packages/tests/test_egg_finder.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/test_logging_config.py
-lib/python${MODPY_VERSION}/site-packages/tests/test_logging_config.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/test_plugin_adder.py
-lib/python${MODPY_VERSION}/site-packages/tests/test_plugin_adder.pyc
-lib/python${MODPY_VERSION}/site-packages/tests/test_template_introspect.py
-lib/python${MODPY_VERSION}/site-packages/tests/test_template_introspect.pyc
 share/doc/${MODPY_PY_PREFIX}paste-script/
 share/doc/${MODPY_PY_PREFIX}paste-script/_build/
 share/doc/${MODPY_PY_PREFIX}paste-script/_build/developer.html

Reply via email to