From owner-svn-ports-all@freebsd.org Sat Sep 24 16:46:16 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19A62BE8363; Sat, 24 Sep 2016 16:46:16 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB88BAFD; Sat, 24 Sep 2016 16:46:15 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8OGkFrg069486; Sat, 24 Sep 2016 16:46:15 GMT (envelope-from rene@FreeBSD.org) Received: (from rene@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8OGkEgm069482; Sat, 24 Sep 2016 16:46:14 GMT (envelope-from rene@FreeBSD.org) Message-Id: <201609241646.u8OGkEgm069482@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rene set sender to rene@FreeBSD.org using -f From: Rene Ladan Date: Sat, 24 Sep 2016 16:46:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422732 - in head/sysutils: . py-scandir X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2016 16:46:16 -0000 Author: rene Date: Sat Sep 24 16:46:14 2016 New Revision: 422732 URL: https://svnweb.freebsd.org/changeset/ports/422732 Log: scandir, a better directory iterator and faster os.walk() scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most operating systems provide while iterating files in a directory (such as type and stat information). This module also includes a version of os.walk() that uses scandir() to speed it up significantly. NOTE: If you're using Python version 3.5+, os.scandir() and the speed improvements to os.walk() are already available in the standard library. WWW: https://github.com/benhoyt/scandir Note: version 1.3 is available, but Pootle 2.8.0bX insists on version 1.2 for the time being. Sponsored by: EuroBSDCon 2016 Belgrade Added: head/sysutils/py-scandir/ head/sysutils/py-scandir/Makefile (contents, props changed) head/sysutils/py-scandir/distinfo (contents, props changed) head/sysutils/py-scandir/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Sat Sep 24 16:43:44 2016 (r422731) +++ head/sysutils/Makefile Sat Sep 24 16:46:14 2016 (r422732) @@ -859,6 +859,7 @@ SUBDIR += py-queuelib SUBDIR += py-ranger SUBDIR += py-salt + SUBDIR += py-scandir SUBDIR += py-shutilwhich SUBDIR += py-stdiff SUBDIR += py-supervisor Added: head/sysutils/py-scandir/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-scandir/Makefile Sat Sep 24 16:46:14 2016 (r422732) @@ -0,0 +1,24 @@ +# Created by: René Ladan +# $FreeBSD$ + +PORTNAME= scandir +PORTVERSION= 1.2 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rene@FreeBSD.org +COMMENT= Fast and featureful directory iterator + +LICENSE= BSD3CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= benhoyt + +USES= python +USE_PYTHON= autoplist distutils + +do-test: + ${PYTHON_CMD} ${WRKSRC}/test/run_tests.py + +.include Added: head/sysutils/py-scandir/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-scandir/distinfo Sat Sep 24 16:46:14 2016 (r422732) @@ -0,0 +1,3 @@ +TIMESTAMP = 1474734547 +SHA256 (benhoyt-scandir-v1.2_GH0.tar.gz) = 993b8a04092b2c528e50a62d6ec7f099f7d91a92c00fafc0b74897009e0169c3 +SIZE (benhoyt-scandir-v1.2_GH0.tar.gz) = 27869 Added: head/sysutils/py-scandir/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-scandir/pkg-descr Sat Sep 24 16:46:14 2016 (r422732) @@ -0,0 +1,14 @@ +scandir, a better directory iterator and faster os.walk() + +scandir() is a generator version of os.listdir() that returns an iterator +over files in a directory, and also exposes the extra information most +operating systems provide while iterating files in a directory (such as +type and stat information). + +This module also includes a version of os.walk() that uses scandir() +to speed it up significantly. + +NOTE: If you're using Python version 3.5+, os.scandir() and the speed +improvements to os.walk() are already available in the standard library. + +WWW: https://github.com/benhoyt/scandir