Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2016 16:46:14 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422732 - in head/sysutils: . py-scandir
Message-ID:  <201609241646.u8OGkEgm069482@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <rene@freebsd.org>
+# $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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609241646.u8OGkEgm069482>