Sunday, June 09, 2019

Fixing tests on devel/py-natsort

This diff makes the tests for textproc/py-natsort work completely.

I came up with this because I was looking at updating textproc/py-ICU
and wasn't get test results for py-natsort.

I adjusted the PERMIT_PACKAGE line while in here.

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/py-natsort/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile 28 Apr 2019 20:51:56 -0000 1.9
+++ Makefile 10 Jun 2019 03:48:28 -0000
@@ -12,18 +12,22 @@ CATEGORIES = textproc devel
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>

# MIT
-PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE = Yes

MODULES = lang/python

MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
+MODPY_PYTEST = Yes

FLAVORS = python3
FLAVOR ?=

# could also make use of 'fastnumbers'
RUN_DEPENDS = textproc/py-ICU${MODPY_FLAVOR}
+
+TEST_DEPENDS = devel/py-hypothesis${MODPY_FLAVOR} \
+ devel/py-test-mock${MODPY_FLAVOR}

post-install:
mv ${PREFIX}/bin/natsort{,${MODPY_BIN_SUFFIX}}

No comments:

Post a Comment