pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-scandir Import py-scandir-1.5 as devel/py-sca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4b397b69d1b
branches:  trunk
changeset: 358901:a4b397b69d1b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Feb 22 12:58:20 2017 +0000

description:
Import py-scandir-1.5 as devel/py-scandir.

scandir() is a directory iteration function like os.listdir(),
except that instead of returning a list of bare filenames, it yields
DirEntry objects that include file type and stat information along
with the name. Using scandir() increases the speed of os.walk() by
2-20 times (depending on the platform and file system) by avoiding
unnecessary calls to os.stat() in most cases.

diffstat:

 devel/py-scandir/DESCR    |   6 ++++++
 devel/py-scandir/Makefile |  16 ++++++++++++++++
 devel/py-scandir/PLIST    |   9 +++++++++
 devel/py-scandir/distinfo |   6 ++++++
 4 files changed, 37 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r ae4aa3457e64 -r a4b397b69d1b devel/py-scandir/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-scandir/DESCR    Wed Feb 22 12:58:20 2017 +0000
@@ -0,0 +1,6 @@
+scandir() is a directory iteration function like os.listdir(),
+except that instead of returning a list of bare filenames, it yields
+DirEntry objects that include file type and stat information along
+with the name. Using scandir() increases the speed of os.walk() by
+2-20 times (depending on the platform and file system) by avoiding
+unnecessary calls to os.stat() in most cases.
diff -r ae4aa3457e64 -r a4b397b69d1b devel/py-scandir/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-scandir/Makefile Wed Feb 22 12:58:20 2017 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2017/02/22 12:58:20 wiz Exp $
+
+DISTNAME=      scandir-1.5
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=s/scandir/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.python.org/pypi/scandir
+COMMENT=       Better directory iterator and faster os.walk()
+LICENSE=       modified-bsd
+
+PYTHON_VERSIONS_ACCEPTED=      34 27 # included in 3.5+
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ae4aa3457e64 -r a4b397b69d1b devel/py-scandir/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-scandir/PLIST    Wed Feb 22 12:58:20 2017 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/22 12:58:20 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/_scandir.so
+${PYSITELIB}/scandir.py
+${PYSITELIB}/scandir.pyc
+${PYSITELIB}/scandir.pyo
diff -r ae4aa3457e64 -r a4b397b69d1b devel/py-scandir/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-scandir/distinfo Wed Feb 22 12:58:20 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/02/22 12:58:20 wiz Exp $
+
+SHA1 (scandir-1.5.tar.gz) = d1f7c7ed770ab7bfd9464e0d9e082ce0274c3eb6
+RMD160 (scandir-1.5.tar.gz) = 92bd0d11b156283c44b88206f0f345df8252c03f
+SHA512 (scandir-1.5.tar.gz) = e6535e92011cc2c5f888ddd083a9dc48921609fd59d9bf9a4bcd596c055dc0510d48f6d3571605bbade3bd0e232e8bae94b44b20ba935e7ffdeec268ba3d2ee4
+Size (scandir-1.5.tar.gz) = 29351 bytes



Home | Main Index | Thread Index | Old Index