From nobody Thu Apr 20 02:22:16 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q21dP1v4tz465pY; Thu, 20 Apr 2023 02:22:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q21dP1FZBz4X3X; Thu, 20 Apr 2023 02:22:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681957337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a2VjhPaMnryR5b71PNJ9AYHiAXH4RCJn44E+XoRuZBc=; b=g/apvzlhgZfw18+9BJYaVkFArZP94sSE7LGjbWIpcS3oc7JgK1GbNCScYNjwGMXvgGOV+f QkXmOrBbZyGAQ8+w2UPoovnn4ifdeSxJeLNtbgGm7DP6XKFn+5uAmhA82sultL2EB5iN5P rQZOHYOJJqR5hdtgGCYjuIRiuJzPS5KONuQMw7NFjvSYHXBSEekpbPTBYR3MzCKNPE/b3g LQo29+3kf17YSi5pVFwqtFuLXB7v7dFV6kXe8V3iuy2pKrlYu2OAU5aDZ03lpX+WT+XP2H HpkqG53zRySnZr9oiBj0a9QFSyH1XiOXm8jQVoyQNRXt0ABY6K9o/JpAtFy3aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681957337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a2VjhPaMnryR5b71PNJ9AYHiAXH4RCJn44E+XoRuZBc=; b=VSWLdac50rkYOFFZbgcwbduF5wdUDD4Zelp5krHqAApVjfCnacLG6jXIeAA49AzE/E9thL idQUJndeg9N/kJkFdzejx80dhdg2Yz7YF8Ez5ytOC9oGEHZ/Rl69HF7jqIeUn2CHvF+ZQ1 +fcJAZRqjtVmPS/GRUSf60XI6uMbJkbTqf0j1r50X633gv96OZEmpDcKaQmzz6I0ngE/bu nTIcXxKVbSFWSIbuZplCA8dI9xjFlLm4YYZX1wfQpO06efEUdDXq6axFQii+TDFLwi8nSN HtJC1a7CprnAZjdtXz0MbuAIjpvHnQwk0oi6olc1lU90A1vI6StfyyafBgzS5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681957337; a=rsa-sha256; cv=none; b=ojHp+uoUs4PBFZ/R71XJH4Kb1bT0oo42USwOZ/6Z1gn2TUWMkebVg2NGGnLVSUgwY9glVa TVrnRioO7eUrOHD2Uz2wwDw7WUlbxZJGwTyqpCuX+T6Pd91+oC8ns5SytvjyAzxTkomMnS u+bjiQ93zO1uhNFnAlJGe7annCyV4zjzLCV76sxXG5GoZDQ6Wy6OL9fwy3hrqA/a9WTFD4 F+ALyiIJZDFzgR7qd/MrgrRw5J75iP4ly/EJTNvrBCfwNeoNSZMSDDHVC7YnQELI5NHho0 fdzskR/GJaAgrc73g8v/ziJ8Blnr4kYy+nXUIqf3QZaLiU4cm2d0MdTqRbNdCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q21dP0Jk8zK4Z; Thu, 20 Apr 2023 02:22:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33K2MGvu077675; Thu, 20 Apr 2023 02:22:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33K2MG6i077674; Thu, 20 Apr 2023 02:22:16 GMT (envelope-from git) Date: Thu, 20 Apr 2023 02:22:16 GMT Message-Id: <202304200222.33K2MG6i077674@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 639cb7d4f538 - main - devel/py-scantree: New port: flexible recursive directory iterator List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 639cb7d4f5381b3ba2ec5a2c62278c2cf5c7e763 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=639cb7d4f5381b3ba2ec5a2c62278c2cf5c7e763 commit 639cb7d4f5381b3ba2ec5a2c62278c2cf5c7e763 Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-04-20 02:20:36 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-04-20 02:21:58 +0000 devel/py-scantree: New port: flexible recursive directory iterator Recursive directory iterator supporting: - flexible filtering including wildcard path matching - in memory representation of file-tree (for repeated access) - efficient access to directory entry properties (posix.DirEntry interface) extended with real path and path relative to the recursion root directory - detection and handling of cyclic symlinks --- devel/Makefile | 1 + devel/py-scantree/Makefile | 23 +++++++++++++++++++++++ devel/py-scantree/distinfo | 3 +++ devel/py-scantree/pkg-descr | 7 +++++++ 4 files changed, 34 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0d863c5f3427..c63a9ff332d3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5440,6 +5440,7 @@ SUBDIR += py-saneyaml SUBDIR += py-sarge SUBDIR += py-sarif-om + SUBDIR += py-scantree SUBDIR += py-schedule SUBDIR += py-scheduler SUBDIR += py-schema diff --git a/devel/py-scantree/Makefile b/devel/py-scantree/Makefile new file mode 100644 index 000000000000..5f0acbec63e6 --- /dev/null +++ b/devel/py-scantree/Makefile @@ -0,0 +1,23 @@ +PORTNAME= scantree +DISTVERSION= 0.0.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= flexible recursive directory iterator +WWW= https://github.com/andhus/scantree + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scandir>0:sysutils/py-scandir@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pathspec>0:devel/py-pathspec@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +.include diff --git a/devel/py-scantree/distinfo b/devel/py-scantree/distinfo new file mode 100644 index 000000000000..26377d0f044c --- /dev/null +++ b/devel/py-scantree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681956449 +SHA256 (scantree-0.0.1.tar.gz) = 2a8b163de0e4b2f9e4f37f8caf3f0b265172bbf174111e1bebc7955581895b39 +SIZE (scantree-0.0.1.tar.gz) = 13449 diff --git a/devel/py-scantree/pkg-descr b/devel/py-scantree/pkg-descr new file mode 100644 index 000000000000..666265a088ab --- /dev/null +++ b/devel/py-scantree/pkg-descr @@ -0,0 +1,7 @@ +Recursive directory iterator supporting: + +- flexible filtering including wildcard path matching +- in memory representation of file-tree (for repeated access) +- efficient access to directory entry properties (posix.DirEntry interface) + extended with real path and path relative to the recursion root directory +- detection and handling of cyclic symlinks