From nobody Wed Aug 10 04:17:37 2022 X-Original-To: dev-commits-ports-main@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 4M2c9F6LNpz4Y26g; Wed, 10 Aug 2022 04:17:37 +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 4M2c9F5CmCz3MQC; Wed, 10 Aug 2022 04:17:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660105057; 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=QR972rgBGvbDwDTcQ0a39fqGCRSqDppFHkuU55Un5zo=; b=WTKY9XPAKmk8pvDLW8/rHBzUZlXlnLyAS38Epnv+VK9AtexwDisqebfYhcAACYVdcBwA/w /CixWbciWi5wKRRc+UV8o3gyktkT3C87CDiYLFRFfp2MauUyZSshbbJKd+oHgT8Ll0YoEA 3+QbnhifMZyH1zeeSZmpvsUyZCUx4J1N+0Nzya8qNJmnUr5MNy/pZtqUNp1h78v8aJ8Yso 5Drl14DWMdUjempSvYYVqNScdxPMPQSk2QItL/aFrML/k/VlseuBvydPhs/dycaFjUSmiC S2gDYMCa8Zjw4kkAQE4HB414kXRmelXRk6Hx/zYJT+JPlipU3gziRUTNP/kw8g== 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 4M2c9F4KD2zyFF; Wed, 10 Aug 2022 04:17:37 +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 27A4HbiJ007811; Wed, 10 Aug 2022 04:17:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27A4HbNc007810; Wed, 10 Aug 2022 04:17:37 GMT (envelope-from git) Date: Wed, 10 Aug 2022 04:17:37 GMT Message-Id: <202208100417.27A4HbNc007810@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7b96f181ad73 - main - devel/py-line-profiler: New port: Line-by-line profiler for Python List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b96f181ad7381ab6a64e34056a6c777213732e9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660105057; 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=QR972rgBGvbDwDTcQ0a39fqGCRSqDppFHkuU55Un5zo=; b=C9cAVXN5SS1Rm0stc5fatN3vzBZ9aBmHfxqWPImL/98ERx4cD+llsCi3tu7LPSQI33gPRq dwjF5jyTYnC2qYfNvqoQkJBnSfMVnb9zM9z4blDHOxQzNybytQ6ShLZjk6DwcNYVsjSSpB h4iWRQgHkUwRVv9miaD2ryUpRySvdiZ89wE3YHSFBUk7d4tsOL0AeZ87OW6v6j1El8T28H tL1Ew3Vsd1kGepgbPCgv70qDLiwcZ6XOXBvBvtlcBTXX5C00yY5SwJHzQwfKsyCyIqgp7j 69VUQOrh78ElI9pZL3OxTE1zDhcUeNdjmF5RcxooA7piCQOfsUvsKqo8Q+rWAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660105057; a=rsa-sha256; cv=none; b=AEFDdYcVIU87Lnwh8zqsXPiENyVQIl2A4jA60azhz0XbhvFfHcmFSMkEAm/4TFLAAbkh0X SGt12agf7tPv6QY0JDVwMKp8THriBb4YoI3vBOKI8SvFkKgzS5Cy/NsejjMGUqQnYkgHN6 +bcE/JMuYbpgUwlp2EItM5ytCgRLDazwMqCODxhDZYBRFa/HE0nkMIKXK+gHibEZQM/E72 Hhh3OXmVYVEMRJzfWSOVqolqQaBo4hu6nUzt90kI9lBvNtCw2XKv0e71zAJ5CU30+Mobsf jzonP4FyIMw2vrXNAwyCZHCSKEKD2TINZssbYVQJ9yC4LvPsytMkOXtUmJ/FHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b96f181ad7381ab6a64e34056a6c777213732e9 commit 7b96f181ad7381ab6a64e34056a6c777213732e9 Author: Yuri Victorovich AuthorDate: 2022-08-10 02:26:30 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-10 04:17:31 +0000 devel/py-line-profiler: New port: Line-by-line profiler for Python --- devel/Makefile | 1 + devel/py-line-profiler/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-line-profiler/distinfo | 3 +++ devel/py-line-profiler/pkg-descr | 5 +++++ 4 files changed, 38 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e0cb3887c2f7..d8ec5d8d461f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4718,6 +4718,7 @@ SUBDIR += py-libversion SUBDIR += py-libvirt SUBDIR += py-libzfs + SUBDIR += py-line-profiler SUBDIR += py-linear-tsv SUBDIR += py-linecache2 SUBDIR += py-lineedit diff --git a/devel/py-line-profiler/Makefile b/devel/py-line-profiler/Makefile new file mode 100644 index 000000000000..a54b5db4cd70 --- /dev/null +++ b/devel/py-line-profiler/Makefile @@ -0,0 +1,29 @@ +PORTNAME= line-profiler +DISTVERSION= 3.5.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Line-by-line profiler for Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ + cmake:devel/cmake +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=5.3:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ipython>=0.13:devel/ipython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ubelt>=1.0.1:devel/py-ubelt@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= distutils cython autoplist pytest # 1 test fails, see https://github.com/pyutils/line_profiler/issues/159 + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/line_profiler/_line_profiler${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/devel/py-line-profiler/distinfo b/devel/py-line-profiler/distinfo new file mode 100644 index 000000000000..c0a542aa36de --- /dev/null +++ b/devel/py-line-profiler/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660085746 +SHA256 (line_profiler-3.5.1.tar.gz) = 77400208bfbd5d4341938a9a3a4fb5194f5af7fc23b2d496c913755f8310e8b8 +SIZE (line_profiler-3.5.1.tar.gz) = 155402 diff --git a/devel/py-line-profiler/pkg-descr b/devel/py-line-profiler/pkg-descr new file mode 100644 index 000000000000..e4c30693ce1c --- /dev/null +++ b/devel/py-line-profiler/pkg-descr @@ -0,0 +1,5 @@ +line_profiler is a module for doing line-by-line profiling of functions. +kernprof is a convenient script for running either line_profiler or the Python +standard library's cProfile or profile modules, depending on what is available. + +WWW: https://github.com/pyutils/line_profiler