aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-04-05 23:56:49 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-04-05 23:56:49 +0000
commit8c6ce7c55e8ee65794994c00d280b1329e2b6848 (patch)
tree41fc9eb639a7d457a5c129f819269647ba33a247
parent431bfb2326da5683855083337ef5cfa04ca5f599 (diff)
devel/py-trailrunner: Add py-trailrunner 1.4.0
trailrunner is a simple library for walking paths on the filesystem, and executing functions for each file found. trailrunner obeys project level .gitignore files, and runs functions on a process pool for increased performance. trailrunner is designed for use by linting, formatting, and other developer tools that need to find and operate on all files in project in a predictable fashion with a minimal API.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-trailrunner/Makefile23
-rw-r--r--devel/py-trailrunner/distinfo3
-rw-r--r--devel/py-trailrunner/pkg-descr6
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d234ef48768d..f6d0eab7026d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5772,6 +5772,7 @@
SUBDIR += py-toposort
SUBDIR += py-tox
SUBDIR += py-traceback2
+ SUBDIR += py-trailrunner
SUBDIR += py-traitlets
SUBDIR += py-traits
SUBDIR += py-traittypes
diff --git a/devel/py-trailrunner/Makefile b/devel/py-trailrunner/Makefile
new file mode 100644
index 000000000000..a626d9394cc4
--- /dev/null
+++ b/devel/py-trailrunner/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= trailrunner
+PORTVERSION= 1.4.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Run things on paths
+WWW= https://trailrunner.omnilib.dev/en/stable/ \
+ https://github.com/omnilib/trailrunner
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.7<4:devel/py-flit-core@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathspec>=0.8.1:devel/py-pathspec@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-trailrunner/distinfo b/devel/py-trailrunner/distinfo
new file mode 100644
index 000000000000..b2a8f0a9afc4
--- /dev/null
+++ b/devel/py-trailrunner/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712330559
+SHA256 (trailrunner-1.4.0.tar.gz) = 3fe61e259e6b2e5192f321c265985b7a0dc18497ced62b2da244f08104978398
+SIZE (trailrunner-1.4.0.tar.gz) = 15836
diff --git a/devel/py-trailrunner/pkg-descr b/devel/py-trailrunner/pkg-descr
new file mode 100644
index 000000000000..005d3389afcd
--- /dev/null
+++ b/devel/py-trailrunner/pkg-descr
@@ -0,0 +1,6 @@
+trailrunner is a simple library for walking paths on the filesystem, and
+executing functions for each file found. trailrunner obeys project level
+.gitignore files, and runs functions on a process pool for increased
+performance. trailrunner is designed for use by linting, formatting, and other
+developer tools that need to find and operate on all files in project in a
+predictable fashion with a minimal API.