From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11AF7138350 for ; Fri, 27 Mar 2020 17:04:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 798FAE0B06; Fri, 27 Mar 2020 17:04:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4BDC8E0B06 for ; Fri, 27 Mar 2020 17:04:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 358FF34F734 for ; Fri, 27 Mar 2020 17:04:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 077071A9 for ; Fri, 27 Mar 2020 17:04:21 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1585328606.19e84ceea1bb2b7390418c8ca6eabdac9c40b019.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/wcmatch/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/wcmatch/Manifest dev-python/wcmatch/metadata.xml dev-python/wcmatch/wcmatch-6.0.1.ebuild X-VCS-Directories: dev-python/wcmatch/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 19e84ceea1bb2b7390418c8ca6eabdac9c40b019 X-VCS-Branch: dev Date: Fri, 27 Mar 2020 17:04:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d022156b-1ad6-40b3-a3da-5af9da51a870 X-Archives-Hash: 7f4e87820d6886be4859f4b7b326852d commit: 19e84ceea1bb2b7390418c8ca6eabdac9c40b019 Author: Alessandro Barbieri gmail com> AuthorDate: Fri Mar 27 16:54:09 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Fri Mar 27 17:03:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19e84cee dev-python/wcmatch: new package Package-Manager: Portage-2.3.96, Repoman-2.3.21 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/wcmatch/Manifest | 1 + dev-python/wcmatch/metadata.xml | 44 +++++++++++++++++++++++++++++++++ dev-python/wcmatch/wcmatch-6.0.1.ebuild | 35 ++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/dev-python/wcmatch/Manifest b/dev-python/wcmatch/Manifest new file mode 100644 index 0000000..d480999 --- /dev/null +++ b/dev-python/wcmatch/Manifest @@ -0,0 +1 @@ +DIST wcmatch-6.0.1.tar.gz 89466 BLAKE2B ccbc397c0c67f6eba55875ba540aa2705f12808e2eb1e57417beed44fc5ee5234023de439d30f966c158d263154bdd3882ce361b77aab12f1365d172f425ad11 SHA512 aec942c1754103d9938189dbb8ea8b62d8621137b8b51e48095fa4d313cfa120764414345aa3b5d263e2fd29219bf7bd1fa1d238f16521421761853d43596bbc diff --git a/dev-python/wcmatch/metadata.xml b/dev-python/wcmatch/metadata.xml new file mode 100644 index 0000000..85785fc --- /dev/null +++ b/dev-python/wcmatch/metadata.xml @@ -0,0 +1,44 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + facelessuser/wcmatch + wcmatch + + +Wildcard Match provides an enhanced fnmatch, glob, and pathlib library in order to provide +file matching and globbing that more closely follows the features found in Bash. In some +ways these libraries are similar to Python's builtin libraries as they provide a similar +interface to match, filter, and glob the file system. But they also include a number of +features found in Bash's globbing such as backslash escaping, brace expansion, extended +glob pattern groups, etc. They also add a number of new useful functions as well, such as +globmatch which functions like fnmatch, but for paths. +Wildcard Match also adds a file search utility called wcmatch that is built on top of fnmatch and globmatch. It was +originally written for Rummage, but split out into this project to be used by other +projects that may find its approach useful. +Bash is used as a guide when making decisions on behavior for fnmatch and glob. Behavior may differ from Bash version to Bash version, +but an attempt is made to keep Wildcard Match up with the latest relevant changes. With +all of this said, there may be a few corner cases in which we've intentionally chosen to +not exactly mirror Bash. If an issue is found where Wildcard Match seems to deviate in an +illogical way, we'd love to hear about it in the issue tracker. +Features +A quick overview of Wildcard Match's +Features: + Provides an interface comparable to Python's builtin in fnamtch, glob, and pathlib. + Allows for a much more configurable experience when matching or globbing with many more features. Adds support for ** in glob. + Adds support for escaping characters with \. + Add support for POSIX style character classes inside sequences: [[:alnum:]], etc. The C locale is used for byte strings and Unicode properties for Unicode strings. + Adds support for brace expansion: a{b,{c,d}} --> ab ac ad. + Adds support for expanding ~ or ~username to the appropriate user path. + Adds support for extended match patterns: @(...), +(...), *(...), ?(...), and !(...). + Adds ability to match path names via the path centric globmatch. + Provides a pathlib variant that uses Wildcard Match's glob library instead of Python's default. + Provides an alternative file crawler called wcmatch. + And more... + + diff --git a/dev-python/wcmatch/wcmatch-6.0.1.ebuild b/dev-python/wcmatch/wcmatch-6.0.1.ebuild new file mode 100644 index 0000000..2e302e4 --- /dev/null +++ b/dev-python/wcmatch/wcmatch-6.0.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) +#DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Wildcard/glob file name matcher" +HOMEPAGE=" + https://github.com/facelessuser/wcmatch + https://pypi.org/project/wcmatch" +SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/backrefs-4.1[${PYTHON_USEDEP}] + >=dev-python/bracex-2.0[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/bracex[${PYTHON_USEDEP}] + ) +" +distutils_enable_tests pytest +distutils_enable_sphinx docs/src \ + dev-python/mkdocs-git-revision-date-localized-plugin \ + dev-python/mkdocs_pymdownx_material_extras \ + dev-python/pyspelling