Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id D86507A33C for ; Wed, 30 Nov 2016 14:38:59 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8C83B8558F; Wed, 30 Nov 2016 14:38:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1EA1185589 for ; Wed, 30 Nov 2016 14:38:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 8tkLeYxcZtDH for ; Wed, 30 Nov 2016 14:38:58 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 933AA84CF0 for ; Wed, 30 Nov 2016 14:38:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8E193FBA6; Wed, 30 Nov 2016 14:38:58 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1480516738144330" MIME-Version: 1.0 Date: Wed, 30 Nov 2016 14:38:58 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/textproc/py-natsort To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20161130143858.8E193FBA6@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1480516738144330 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Wed Nov 30 14:38:58 UTC 2016 Modified Files: pkgsrc/textproc/py-natsort: DESCR Makefile Log Message: Clean up pkglint. Add some test dependencies, 4 more are not packaged yet. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/py-natsort/DESCR \ pkgsrc/textproc/py-natsort/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1480516738144330 Content-Disposition: inline Content-Length: 2988 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=utf-8 Modified files: Index: pkgsrc/textproc/py-natsort/DESCR diff -u pkgsrc/textproc/py-natsort/DESCR:1.1 pkgsrc/textproc/py-natsort/DESCR:1.2 --- pkgsrc/textproc/py-natsort/DESCR:1.1 Wed Nov 30 14:13:48 2016 +++ pkgsrc/textproc/py-natsort/DESCR Wed Nov 30 14:38:58 2016 @@ -6,12 +6,12 @@ not get the results that you expect: >>> 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 @@ or ints), or as versions. Using natsorte ['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. Index: pkgsrc/textproc/py-natsort/Makefile diff -u pkgsrc/textproc/py-natsort/Makefile:1.1 pkgsrc/textproc/py-natsort/Makefile:1.2 --- pkgsrc/textproc/py-natsort/Makefile:1.1 Wed Nov 30 14:13:48 2016 +++ pkgsrc/textproc/py-natsort/Makefile Wed Nov 30 14:38:58 2016 @@ -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 @@ -10,9 +10,19 @@ HOMEPAGE= https://github.com/SethMMorton 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" --_----------=_1480516738144330--