git: 7c73fef18608 - main - devel/py-flake8-pyi: Add py-flake8-pyi 23.3.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Apr 2023 13:39:06 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7c73fef186089fca7ca6ba7ceb501a08930746c8
commit 7c73fef186089fca7ca6ba7ceb501a08930746c8
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-09 13:16:49 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-09 13:36:24 +0000
devel/py-flake8-pyi: Add py-flake8-pyi 23.3.1
flake8-pyi is a plugin for Flake8 that provides specializations for type hinting
stub files, especially interesting for linting typeshed.
---
devel/Makefile | 1 +
devel/py-flake8-pyi/Makefile | 30 ++++++++++++++++++++++++++++++
devel/py-flake8-pyi/distinfo | 3 +++
devel/py-flake8-pyi/pkg-descr | 2 ++
4 files changed, 36 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 7cdec70365a8..328da2723781 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4602,6 +4602,7 @@
SUBDIR += py-flake8-import-order
SUBDIR += py-flake8-polyfill
SUBDIR += py-flake8-print
+ SUBDIR += py-flake8-pyi
SUBDIR += py-flake8-quotes
SUBDIR += py-flaky
SUBDIR += py-flask-babel
diff --git a/devel/py-flake8-pyi/Makefile b/devel/py-flake8-pyi/Makefile
new file mode 100644
index 000000000000..3626d5e488c6
--- /dev/null
+++ b/devel/py-flake8-pyi/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= flake8-pyi
+PORTVERSION= 23.3.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= flake8_pyi-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Plugin for flake8 to enable linting .pyi stub files
+WWW= https://github.com/PyCQA/flake8-pyi
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flake8>=3.2.1<7.0.0:devel/py-flake8@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyflakes>=2.1.1:devel/py-pyflakes@${PY_FLAVOR} \
+
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ast-decompiler>=0.7.0<1.0:deve/py-ast-decompiler@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-flake8-pyi/distinfo b/devel/py-flake8-pyi/distinfo
new file mode 100644
index 000000000000..231c9db4cd5d
--- /dev/null
+++ b/devel/py-flake8-pyi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1680726004
+SHA256 (flake8_pyi-23.3.1.tar.gz) = 1dff9766a68306ed04679bafeeed5096bd570b78367c042e13593d0f0e2589cf
+SIZE (flake8_pyi-23.3.1.tar.gz) = 47994
diff --git a/devel/py-flake8-pyi/pkg-descr b/devel/py-flake8-pyi/pkg-descr
new file mode 100644
index 000000000000..99eee05414b0
--- /dev/null
+++ b/devel/py-flake8-pyi/pkg-descr
@@ -0,0 +1,2 @@
+flake8-pyi is a plugin for Flake8 that provides specializations for type hinting
+stub files, especially interesting for linting typeshed.