public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scandir/
Date: Tue, 25 Jul 2017 22:34:30 +0000 (UTC)	[thread overview]
Message-ID: <1501022066.21ed8befb71cb458f7a1e15738042d69dda8cddc.monsieurp@gentoo> (raw)

commit:     21ed8befb71cb458f7a1e15738042d69dda8cddc
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Tue Jul 25 07:32:21 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jul 25 22:34:26 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ed8bef

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

 dev-python/scandir/Manifest           |  1 +
 dev-python/scandir/metadata.xml       | 12 ++++++++++++
 dev-python/scandir/scandir-1.5.ebuild | 23 +++++++++++++++++++++++
 3 files changed, 36 insertions(+)

diff --git a/dev-python/scandir/Manifest b/dev-python/scandir/Manifest
new file mode 100644
index 00000000000..778897f4213
--- /dev/null
+++ b/dev-python/scandir/Manifest
@@ -0,0 +1 @@
+DIST scandir-1.5.tar.gz 29351 SHA256 c2612d1a487d80fb4701b4a91ca1b8f8a695b1ae820570815e85e8c8b23f1283 SHA512 e6535e92011cc2c5f888ddd083a9dc48921609fd59d9bf9a4bcd596c055dc0510d48f6d3571605bbade3bd0e232e8bae94b44b20ba935e7ffdeec268ba3d2ee4 WHIRLPOOL 87808f7c76be95956a609ff1246fcd74103129883bad7300fbd5db7f743e9fcc93031d2d95d58cd36eb4bb6f5bcceadd5b77a4d2c2f3ce1d902073b9e55c4140

diff --git a/dev-python/scandir/metadata.xml b/dev-python/scandir/metadata.xml
new file mode 100644
index 00000000000..708fb92089a
--- /dev/null
+++ b/dev-python/scandir/metadata.xml
@@ -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>

diff --git a/dev-python/scandir/scandir-1.5.ebuild b/dev-python/scandir/scandir-1.5.ebuild
new file mode 100644
index 00000000000..9c409ca6ffb
--- /dev/null
+++ b/dev-python/scandir/scandir-1.5.ebuild
@@ -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}"
+}


             reply	other threads:[~2017-07-25 22:34 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25 22:34 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-07-25 22:40 [gentoo-commits] repo/gentoo:master commit in: dev-python/scandir/ Patrice Clement
2017-09-25 13:37 Pacho Ramos
2017-10-01 14:14 Patrice Clement
2017-10-01 14:14 Patrice Clement
2018-02-13 22:03 Matt Thode
2018-03-04 22:40 Sergei Trofimovich
2018-03-08 13:06 Patrice Clement
2018-03-12  0:51 Matt Turner
2018-03-21 20:24 Markus Meier
2018-04-22  1:35 Thomas Deutschmann
2018-05-16 12:28 Agostino Sarubbo
2018-05-16 15:58 Andreas Sturmlechner
2018-06-24 14:51 Patrice Clement
2018-08-05 13:53 Patrice Clement
2018-08-13 17:46 Patrice Clement
2018-09-11 19:05 Sergei Trofimovich
2018-09-14 21:25 Patrice Clement
2018-10-10  6:40 Patrice Clement
2018-10-17 10:36 Tobias Klausmann
2018-10-27 18:46 Sergei Trofimovich
2018-11-19 21:15 Fabian Groffen
2018-12-22  7:15 Mikle Kolyada
2019-01-23 19:29 Sergei Trofimovich
2019-02-07 12:31 Tobias Klausmann
2019-02-21 20:28 Markus Meier
2019-02-22 20:17 Sergei Trofimovich
2019-03-02 18:31 Mikle Kolyada
2019-03-02 20:49 Thomas Deutschmann
2019-03-03  2:10 Matt Turner
2019-03-03  8:51 Joshua Kinard
2019-03-10 21:38 Matt Turner
2019-03-10 21:38 Matt Turner
2019-03-15 10:13 Mikle Kolyada
2019-03-31 20:30 Sergei Trofimovich
2019-04-13 21:56 Patrice Clement
2019-04-13 21:56 Patrice Clement
2019-04-17  3:38 Aaron Bauman
2019-06-01 21:56 Patrice Clement
2019-06-01 21:56 Patrice Clement
2019-08-04 13:44 Alexey Shvetsov
2020-03-25 12:23 Agostino Sarubbo
2020-03-25 12:36 Agostino Sarubbo
2020-03-25 13:12 Agostino Sarubbo
2020-03-25 13:27 Agostino Sarubbo
2020-03-25 14:52 Agostino Sarubbo
2020-03-25 15:27 Agostino Sarubbo
2020-09-20 15:47 Michał Górny
2020-11-19 19:52 Michał Górny
2021-06-05 18:14 Michał Górny
2022-09-10 22:37 Jakov Smolić
2022-09-10 22:57 Jakov Smolić
2022-09-10 22:57 Jakov Smolić
2022-09-11  7:55 Agostino Sarubbo
2022-09-11  7:55 Agostino Sarubbo
2022-09-16 18:22 Arthur Zamarin
2022-09-16 20:16 Arthur Zamarin
2022-09-16 20:34 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501022066.21ed8befb71cb458f7a1e15738042d69dda8cddc.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox