mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/scandir: new package.
A better directory iterator and faster os.walk(). 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. Required by dev-python/pathlib2[python2_7,python3_4]. Gentoo-Bug: https://bugs.gentoo.org/626120 Package-Manager: Portage-2.3.6, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/5207
This commit is contained in:
committed by
Patrice Clement
parent
61e7f2fa40
commit
21ed8befb7
1
dev-python/scandir/Manifest
Normal file
1
dev-python/scandir/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST scandir-1.5.tar.gz 29351 SHA256 c2612d1a487d80fb4701b4a91ca1b8f8a695b1ae820570815e85e8c8b23f1283 SHA512 e6535e92011cc2c5f888ddd083a9dc48921609fd59d9bf9a4bcd596c055dc0510d48f6d3571605bbade3bd0e232e8bae94b44b20ba935e7ffdeec268ba3d2ee4 WHIRLPOOL 87808f7c76be95956a609ff1246fcd74103129883bad7300fbd5db7f743e9fcc93031d2d95d58cd36eb4bb6f5bcceadd5b77a4d2c2f3ce1d902073b9e55c4140
|
||||
12
dev-python/scandir/metadata.xml
Normal file
12
dev-python/scandir/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">scandir</remote-id>
|
||||
<remote-id type="github">benhoyt/scandir</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
23
dev-python/scandir/scandir-1.5.ebuild
Normal file
23
dev-python/scandir/scandir-1.5.ebuild
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A better directory iterator and faster os.walk()"
|
||||
HOMEPAGE="https://github.com/benhoyt/scandir"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} test/run_tests.py -v || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user