From nobody Mon Sep 11 03:13:45 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 4RkWyK3XgRz4tGXf; Mon, 11 Sep 2023 03:13:45 +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 4RkWyK1ztHz3ZnW; Mon, 11 Sep 2023 03:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694402025; 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=AlVdh9NjHMN5x5QXJ/e3Sz/XL+KrFRbGNOGdP8mfE40=; b=sG1jOl2X0ueoe05oydHiW3xLxr8ETD7vOHXiD+9eSwoI3vCegdNTp3nxnI3ky/M8DXP3vm F7wE9R1iAx1kolMwU+F0wN4Q4j43iBFjyW79ybQ2MSQZaWJmEV0XrNmIHMOLJwpFXq9WAr Zg9EpANxf96wq7YOa3ExNuZGHStjrW5L/o2sg9jGeN7uZeXeauB9uVNvI+JyPTFtioUdMn FSYzooi94SePxUMiF+8Sn6m6w/yKl7gflioOFNE+UHa4FENr4G3h/7TXWzES3Myyd9y+ML 8bCfdJ18BPnqoFokbDcVhqfU0GXEdxv/cBGsUWvdFLOUta3PeW/KaNzpFl+hdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694402025; a=rsa-sha256; cv=none; b=bBkxqTtaa6QM9I5qkqrSjVzA6Ho+I9QctNy6L1Rox+XKOu0Y6qDErP4qIz8O0LYgqAPTN7 0VSQh0emHIMRTcbVIGdiMlfyB6ByPIwfVt5X4Ih7DrKsSQl7ksEnZ87XKp+gDnnqwSVdtB qsBe/Wjk2GQHresJvhrz3OCt7k1a0V+nzchpnCkkijUIyMJ9g99luB+swYCAuCYqzRqcB7 CE1GuhgSXOu2jvLZlJS9R0OktKKx9lRWmkn0gknjaG+cVuIK5xkQDVg2ZiERz7Z8bAEXJw Cf2P+FFsOJudU0RYKHiwviTQO5xaMgunlo+pALo7hpAPvaB8d1EemVsQHtj3Xg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694402025; 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=AlVdh9NjHMN5x5QXJ/e3Sz/XL+KrFRbGNOGdP8mfE40=; b=gXTu9SIhNwdrX5MbymtR5WA8aT9ZAgfG0LGWVJguaE+KbNkhqAaCWLPSshDoQl7Zo2crnd DebBZbsRpvEsDmH0+KKytN0RgYGaEQBG/xkC6gwg/lwmcWvSXJksEQFQ+0eMpCozhpMalM aJlM1/5J+NXr+086qkr0rzKO8s3tsvtrFpkd2G9vohrWr9rORMKbXohK42l1tr9w1Kp/1c Uf9Z1nvtnNRVrjFNaeHL62peTRHdlK16SPvy+Rw6VtQe93g8QQUBl2S1qycTaQBxmJag1h z8CawEglZUnbs3VO54cZejy8yc34PjfUDrmgIK7Yc3j3ARaqvNx0Y4Vgi7HTuQ== 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 4RkWyK150PzYL0; Mon, 11 Sep 2023 03:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38B3DjS7021176; Mon, 11 Sep 2023 03:13:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38B3DjOK021173; Mon, 11 Sep 2023 03:13:45 GMT (envelope-from git) Date: Mon, 11 Sep 2023 03:13:45 GMT Message-Id: <202309110313.38B3DjOK021173@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: a4f84fcf37f1 - main - devel/py-prospector: Add py-prospector 1.9.0 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4f84fcf37f1d2ef51709c15e20fb8b9513352f4 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a4f84fcf37f1d2ef51709c15e20fb8b9513352f4 commit a4f84fcf37f1d2ef51709c15e20fb8b9513352f4 Author: Po-Chuan Hsieh AuthorDate: 2023-09-11 02:51:18 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-11 03:00:49 +0000 devel/py-prospector: Add py-prospector 1.9.0 Prospector is a tool to analyze Python code and output information about errors, potential problems, convention violations and complexity. It brings together the functionality of other Python analysis tools such as Pylint, pycodestyle, and McCabe complexity. See the Supported Tools documentation section for a complete list. The primary aim of Prospector is to be useful 'out of the box'. A common complaint of other Python analysis tools is that it takes a long time to filter through which errors are relevant or interesting to your own coding style. Prospector provides some default profiles, which hopefully will provide a good starting point and will be useful straight away, and adapts the output depending on the libraries your project uses. --- devel/Makefile | 1 + devel/py-prospector/Makefile | 38 ++++++++++++++++++++++++++ devel/py-prospector/distinfo | 3 ++ devel/py-prospector/files/patch-pyproject.toml | 27 ++++++++++++++++++ devel/py-prospector/pkg-descr | 13 +++++++++ 5 files changed, 82 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c3ad4db17b0f..608c6ed524a7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5226,6 +5226,7 @@ SUBDIR += py-prompt-toolkit2 SUBDIR += py-property-cached SUBDIR += py-proselint + SUBDIR += py-prospector SUBDIR += py-proto-plus SUBDIR += py-protobuf SUBDIR += py-protobuf-compiler diff --git a/devel/py-prospector/Makefile b/devel/py-prospector/Makefile new file mode 100644 index 000000000000..592bcc5a7c41 --- /dev/null +++ b/devel/py-prospector/Makefile @@ -0,0 +1,38 @@ +PORTNAME= prospector +PORTVERSION= 1.10.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Analyse Python code by aggregating the result of other tools +WWW= https://github.com/landscapeio/prospector + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dodgy>=0.2.1<0.3.0:devel/py-dodgy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gitpython>=3.1.27<4.0.0:devel/py-gitpython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mccabe>=0.7.0<0.8:devel/py-mccabe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pep8-naming>=0.3.3:devel/py-pep8-naming@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.9.0:devel/py-pycodestyle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydocstyle>=2.0.0:devel/py-pydocstyle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyflakes>=2.2.0:devel/py-pyflakes@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pylint-django>=2.5<2.6:devel/py-pylint-django@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pylint-flask>=0.6<0.6_99:devel/py-pylint-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pylint-plugin-utils>=0.7<0.8:devel/py-pylint-plugin-utils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requirements-detector>=1.2.0:devel/py-requirements-detector@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setoptconf>=0.3.0<0.4:devel/py-setoptconf@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2<0.11.0:textproc/py-toml@${PY_FLAVOR} \ + pylint${PYTHON_PKGNAMESUFFIX}>=2.8.3:devel/pylint + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-prospector/distinfo b/devel/py-prospector/distinfo new file mode 100644 index 000000000000..eb258984159b --- /dev/null +++ b/devel/py-prospector/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1694348226 +SHA256 (prospector-1.10.2.tar.gz) = cc8f09e79bdd32247edddf05b666940e88ad96338a84f5717b1e8c0678337821 +SIZE (prospector-1.10.2.tar.gz) = 60417 diff --git a/devel/py-prospector/files/patch-pyproject.toml b/devel/py-prospector/files/patch-pyproject.toml new file mode 100644 index 000000000000..457c7c31729d --- /dev/null +++ b/devel/py-prospector/files/patch-pyproject.toml @@ -0,0 +1,27 @@ +--- pyproject.toml.orig 2023-05-25 01:28:05 UTC ++++ pyproject.toml +@@ -38,7 +38,6 @@ prospector = 'prospector.run:main' + [tool.poetry.dependencies] + python = ">=3.7.2,<4.0" + pylint = ">=2.8.3" +-pylint-celery = "0.3" + pylint-django = "~2.5" + pylint-plugin-utils = "~0.7" + pylint-flask = "0.6" +@@ -46,13 +45,13 @@ requirements-detector = ">=1.2.0" + PyYAML = "*" + mccabe = "^0.7.0" + flake8 = "<6.0.0" +-pyflakes = ">=2.2.0,<3.*" ++pyflakes = ">=2.2.0" + pycodestyle = ">=2.9.0" +-pep8-naming = ">=0.3.3,<=0.10.0" ++pep8-naming = ">=0.3.3" + pydocstyle = ">=2.0.0" + dodgy = "^0.2.1" + toml = "^0.10.2" +-setoptconf-tmp = "^0.3.1" ++setoptconf = "^0.3.0" + GitPython = "^3.1.27" + packaging = "*" + bandit = {version = ">=1.5.1", optional = true} diff --git a/devel/py-prospector/pkg-descr b/devel/py-prospector/pkg-descr new file mode 100644 index 000000000000..f02539fb173d --- /dev/null +++ b/devel/py-prospector/pkg-descr @@ -0,0 +1,13 @@ +Prospector is a tool to analyze Python code and output information about errors, +potential problems, convention violations and complexity. + +It brings together the functionality of other Python analysis tools such as +Pylint, pycodestyle, and McCabe complexity. See the Supported Tools +documentation section for a complete list. + +The primary aim of Prospector is to be useful 'out of the box'. A common +complaint of other Python analysis tools is that it takes a long time to filter +through which errors are relevant or interesting to your own coding style. +Prospector provides some default profiles, which hopefully will provide a good +starting point and will be useful straight away, and adapts the output depending +on the libraries your project uses.