pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-natsort Clean up pkglint. Add some test de...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c3ae24fca6c
branches:  trunk
changeset: 355408:5c3ae24fca6c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 30 14:38:58 2016 +0000

description:
Clean up pkglint. Add some test dependencies, 4 more are not packaged
yet.

diffstat:

 textproc/py-natsort/DESCR    |  10 ++++------
 textproc/py-natsort/Makefile |  24 +++++++++++++++++-------
 2 files changed, 21 insertions(+), 13 deletions(-)

diffs (67 lines):

diff -r 0f69331d300b -r 5c3ae24fca6c textproc/py-natsort/DESCR
--- a/textproc/py-natsort/DESCR Wed Nov 30 14:29:09 2016 +0000
+++ b/textproc/py-natsort/DESCR Wed Nov 30 14:38:58 2016 +0000
@@ -6,12 +6,12 @@
 >>> sorted(a)
 ['a1', 'a10', 'a2', 'a4', 'a9']
 
-Notice that it has the order (â??1â??, â??10â??, â??2â??) - this is because the
+Notice that it has the order ('1', '10', '2') - this is because the
 list is being sorted in lexicographical order, which sorts numbers
-like you would letters (i.e. â??bâ??, â??baâ??, â??câ??).
+like you would letters (i.e. 'b', 'ba', 'c').
 
 natsort provides a function natsorted that helps sort lists
-â??naturallyâ??, either as real numbers (i.e. signed/unsigned floats
+"naturally", either as real numbers (i.e. signed/unsigned floats
 or ints), or as versions. Using natsorted is simple:
 
 >>> from natsort import natsorted
@@ -20,6 +20,4 @@
 ['a1', 'a2', 'a4', 'a9', 'a10']
 
 natsorted identifies numbers anywhere in a string and sorts them
-naturally. Here are some other things you can do with natsort (please
-see the examples for a quick start guide, or the api for more
-details).
+naturally.
diff -r 0f69331d300b -r 5c3ae24fca6c textproc/py-natsort/Makefile
--- a/textproc/py-natsort/Makefile      Wed Nov 30 14:29:09 2016 +0000
+++ b/textproc/py-natsort/Makefile      Wed Nov 30 14:38:58 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2016/11/30 14:13:48 jdolecek Exp $
+# $NetBSD: Makefile,v 1.2 2016/11/30 14:38:58 wiz Exp $
 
-DISTNAME=          natsort-5.0.1
-PKGNAME=           ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=        textproc python
+DISTNAME=      natsort-5.0.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/natsort/}
 
 MAINTAINER=    kamelderouiche%yahoo.com@localhost
@@ -10,9 +10,19 @@
 COMMENT=       Natural sorting for python
 LICENSE=       mit
 
-WRKSRC=                ${WRKDIR}/natsort-5.0.1
-
 USE_LANGUAGES= # none
 
+# TEST_DEPENDS
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-flakes-[0-9]*:../../devel/py-flakes
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-pep8-[0-9]*:../../devel/py-pep8
+# these are currently unpackaged
+#BUILD_DEPENDS+=       ${PYPKGPREFIX}-test-cache-[0-9]*:../../devel/py-test-cache
+#BUILD_DEPENDS+=       ${PYPKGPREFIX}-test-flakes-[0-9]*:../../devel/py-test-flakes
+#BUILD_DEPENDS+=       ${PYPKGPREFIX}-test-pep8-[0-9]*:../../devel/py-test-pep8
+#BUILD_DEPENDS+=       ${PYPKGPREFIX}-execnet-[0-9]*:../../devel/py-execnet
+
 .include "../../lang/python/egg.mk"
-.include "../../mk/bsd.pkg.mk"
\ No newline at end of file
+.include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index