From nobody Wed Apr 5 17:33:21 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 4PsBYY6Dqdz43nsb; Wed, 5 Apr 2023 17:33:21 +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 4PsBYY5j4Kz47Kj; Wed, 5 Apr 2023 17:33:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680716001; 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=4YolNDPv86rndD+Z0woehqKOK7gtPoBRGrn+GMBmI6o=; b=lGMRaB1lt/6AMaYjpta9hvicpqcO3OnwhN52cC+Eu2hFfObYBKvAG+rkyRCIYid2eC9xK+ 5m0IS8dMCUdjoqia/jJw2Ku0osotYoW0CpnQ1ifYewAXfSdqTyaMaqBs5VG+9u/vk+KMGa H9QwkfBbSo9leWG8RINSbj+3vS6A93i+bM3MdTL8XSWMtJIg3Bz7TNBSxO8DdS0yruHKlK R/6JM/sR0Vh83BUATBEDCWtfdsv+N3V7OPy/h+gXrxyN1Pn2gvOU8NFNuZ3l3zT567DqDM /3IzkJkz1zh2hnCm1T1tvOj1y8NevTnQXxd6EMgoAOELqRLaQ3zMSxr15MfBaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680716001; 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=4YolNDPv86rndD+Z0woehqKOK7gtPoBRGrn+GMBmI6o=; b=i85fshYuBfibQxKrVn7j/spXsKA0cUshqePmS/w3atRdOqWMMoSvrPO1FxpCmp8ogKZS0H D5LgSklzHM/YLVCLBud74ImhTRoR1Rox43f/cxo54FrZqOpw/0BmK1uCMV35HijgC0mQ89 u7tt72eE8yO24hPMxH0S7YAQUzVxNp5TEV5UIiZQuUGkaMMBg8RzJlYgzXjJ2QjNOyzRBz iESA7xhGXiI0fZoOP6neLhbmjcNBVxlayNszVxyGZFb/LPQrT111nmrQL9yq4q7Gg9BcLX qJJ2NccCYMS8DMMFnz14HrYgtbOZeq3ZaRs7n0GD7tMJivRf2YBXVWgLJ15GsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680716001; a=rsa-sha256; cv=none; b=fXucPpvK7EOXl8+17+h6l7hZ5cJc/uQHp/q0bw8GUw3XlUnm2VADuvKJNLM4CSzjA7PvrX 6cQKlPahcpimfNmJbOrVdLCF/aTxVsP2eyqT1uuA9faY4MgpyGjHZrvNYbOLQhGsZEwcL4 QJxN+7QpprUf5rmsqWTOoN2ZwQP2IT1qDoCU85gzAXV7dU9cY3JRZRQZeqBdaHsFIZiJYN 4EGJB6aSqL/Uj9e5B5WVZcOZHFYt270OANmZv/+bMWbUjk9G/VOwc8lrVvfPdsK/ND9yKr Mw+nFZfKY5rtzs9hn3efIfoVOTLfaQtKmgvvAbK07td4WGvOh4768tTpUJyPNA== 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 4PsBYY4X4qzWpw; Wed, 5 Apr 2023 17:33:21 +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 335HXLYZ083357; Wed, 5 Apr 2023 17:33:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 335HXLN4083356; Wed, 5 Apr 2023 17:33:21 GMT (envelope-from git) Date: Wed, 5 Apr 2023 17:33:21 GMT Message-Id: <202304051733.335HXLN4083356@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: d17af72d4fbb - main - devel/py-requirements-detector: Add py-requirements-detector 1.1.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: d17af72d4fbb4031c69b983602471ecfdce9e67e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d17af72d4fbb4031c69b983602471ecfdce9e67e commit d17af72d4fbb4031c69b983602471ecfdce9e67e Author: Po-Chuan Hsieh AuthorDate: 2023-04-05 17:07:28 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-05 17:29:40 +0000 devel/py-requirements-detector: Add py-requirements-detector 1.1.0 Requirements Detector is a simple Python tool which attempts to find and list the requirements of a Python project. When run from the root of a Python project, it will try to ascertain which libraries and the versions of those libraries that the project depends on. It uses the following methods in order, in the root of the project: 1. Parse setup.py (if this is successful, the remaining steps are skipped) 2. Parse pyproject.yoml (if a tool.poetry.dependencies section is found, the remaining steps are skipped) 3. Parse requirements.txt or requirements.pip 4. Parse all *.txt and *.pip files inside a folder called requirements 5. Parse all files in the root folder matching *requirements*.txt or reqs.txt (so for example, pip_requirements.txt would match, as would requirements_common.txt) --- devel/Makefile | 1 + devel/py-requirements-detector/Makefile | 26 ++++++++++++++++++++++++++ devel/py-requirements-detector/distinfo | 3 +++ devel/py-requirements-detector/pkg-descr | 15 +++++++++++++++ 4 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 82249aec0465..475d9a92e832 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5375,6 +5375,7 @@ SUBDIR += py-repoze.xmliter SUBDIR += py-represent SUBDIR += py-requestsexceptions + SUBDIR += py-requirements-detector SUBDIR += py-requirementslib SUBDIR += py-resolvelib SUBDIR += py-resolvelib05 diff --git a/devel/py-requirements-detector/Makefile b/devel/py-requirements-detector/Makefile new file mode 100644 index 000000000000..81a9bcc43027 --- /dev/null +++ b/devel/py-requirements-detector/Makefile @@ -0,0 +1,26 @@ +PORTNAME= requirements-detector +PORTVERSION= 1.1.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= requirements_detector-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Find and list requirements of a Python project +WWW= https://github.com/landscapeio/requirements-detector + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astroid>=2.0<3.0:devel/py-astroid@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}poetry-semver>=0.1.0<0.2.0:devel/py-poetry-semver@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2<0.11.0:textproc/py-toml@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-requirements-detector/distinfo b/devel/py-requirements-detector/distinfo new file mode 100644 index 000000000000..455043e45b63 --- /dev/null +++ b/devel/py-requirements-detector/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1679498500 +SHA256 (requirements_detector-1.1.0.tar.gz) = 246bd23867c12061eadb346a6fe2e616f0b64e681936154a76c494a27cda3ea8 +SIZE (requirements_detector-1.1.0.tar.gz) = 9254 diff --git a/devel/py-requirements-detector/pkg-descr b/devel/py-requirements-detector/pkg-descr new file mode 100644 index 000000000000..0d5b16675f01 --- /dev/null +++ b/devel/py-requirements-detector/pkg-descr @@ -0,0 +1,15 @@ +Requirements Detector is a simple Python tool which attempts to find and list +the requirements of a Python project. + +When run from the root of a Python project, it will try to ascertain which +libraries and the versions of those libraries that the project depends on. + +It uses the following methods in order, in the root of the project: + 1. Parse setup.py (if this is successful, the remaining steps are skipped) + 2. Parse pyproject.yoml (if a tool.poetry.dependencies section is found, the + remaining steps are skipped) + 3. Parse requirements.txt or requirements.pip + 4. Parse all *.txt and *.pip files inside a folder called requirements + 5. Parse all files in the root folder matching *requirements*.txt or reqs.txt + (so for example, pip_requirements.txt would match, as would + requirements_common.txt)