From nobody Sat Jul 22 06:48:48 2023 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 4R7H805qCLz4dS9W; Sat, 22 Jul 2023 06:48:48 +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 4R7H8042kxz3Dwp; Sat, 22 Jul 2023 06:48:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690008528; 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=6e8ICd/CTJlzKzhZhh7zxpcv9KlYGUZR4jVVxHmnUxc=; b=SBMafpwtV5wZu3ymn+lJWGhFIm3cuDHuNZYOBaqGIrJ0+YrdyXQyI0C0Ew6kdliS1iadSE 8bVKLuUZ/bCXREIvUwvxbYd3/K7WbadJ4cw3hB6L8qWJDaci3yIW9vByKJW+gv1N/LdxbL XxnUFd3rhlKQdQuInoBhj6/Q8F7KJwVOH4rdu+7JQ+tPvkCpK4gR/dOyCMq3bnegBzvxQS msxqam7u7/hshcG+aG0qbMJ8rN9YFtJ2JKcgiOYCWiV8WJUctV2l0fZ+OKIFpj4ynOaghu Kw6pxOlq0kFKmZSDysdxNPq/sGG3c7+vyRH5P28EdEUuMLOWB80Nb129Xu9wVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690008528; 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=6e8ICd/CTJlzKzhZhh7zxpcv9KlYGUZR4jVVxHmnUxc=; b=ALQVMuJNEs5deoFp431tMSaZX8QA7JVQnDK/IRJrp8NWA9sLQDtwCjF4msPv/ZjZuQFiGu B7h36xBqoj3Zor81WKMYHYH6hwjapCwwQ/yoZyzNx4yYzSUBAn83VGP+bXwhvVmQMHwfjQ KI9pGorwW4VMnK4B9gBi2gRbmFK3E/hHO89rfEvNZ7bQVhM7422YUpw7bnf27OkJalXYsc TFWXDNOvy98zdUB3noZw5Az3BAn5F/SPvy23Im1kFvhZUwMikXCL1gheCk9Re8LfBfwgw0 hq9KqgTglW8WmplslyBAm/qQ8aRgynLlC4nC2+Ef30leYIyKfnzgnugQba6QSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690008528; a=rsa-sha256; cv=none; b=SGgbBqf0yD1PKimFl1oiq2axlqNSwM8kafxhmtekI6l2inr1k6PALj7zznF62e+u0fv7Il kAuIlTb6yEwO6j0uu7EUX/fMMzCKcK50BrjJKF9+37JtqpFnqrTuBYT2mCYcg1SuL1cKV9 v5HnFEjGTVrk6cyd5KswTjMmgiueeH1r4dcewlEu1JokgvpgZ5Sn6t7sOmJSOfvrvQkMDm ionlo9HU3i6lni4EXawiNTZ9R3qvaODMu0alArEAtQ+C7ppQzaSgsTHLwBNAkOjhk6Dyhp VL/POQLlNtvLpleblmWLBHm4SbdBEaqDlCrvgTme30OkAp5ANXKsFgbp1sfT9g== 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 4R7H802YMrzl0Q; Sat, 22 Jul 2023 06:48:48 +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 36M6mmSF017549; Sat, 22 Jul 2023 06:48:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36M6mm65017548; Sat, 22 Jul 2023 06:48:48 GMT (envelope-from git) Date: Sat, 22 Jul 2023 06:48:48 GMT Message-Id: <202307220648.36M6mm65017548@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: b6b41ba191e9 - main - misc/py-hist: Re-add port: Histogramming for analysis powered by boost-histogram 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: b6b41ba191e989891a69de7225123003ac76e056 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6b41ba191e989891a69de7225123003ac76e056 commit b6b41ba191e989891a69de7225123003ac76e056 Author: Yuri Victorovich AuthorDate: 2023-07-22 05:32:03 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-22 06:48:41 +0000 misc/py-hist: Re-add port: Histogramming for analysis powered by boost-histogram --- misc/Makefile | 1 + misc/py-hist/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ misc/py-hist/distinfo | 3 +++ misc/py-hist/pkg-descr | 4 ++++ 4 files changed, 47 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 2ccb33485131..747b20b246ae 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -417,6 +417,7 @@ SUBDIR += py-gluoncv SUBDIR += py-gluonnlp SUBDIR += py-halo + SUBDIR += py-hist SUBDIR += py-histoprint SUBDIR += py-huepy SUBDIR += py-icoextract diff --git a/misc/py-hist/Makefile b/misc/py-hist/Makefile new file mode 100644 index 000000000000..785e654e787b --- /dev/null +++ b/misc/py-hist/Makefile @@ -0,0 +1,39 @@ +PORTNAME= hist +DISTVERSIONPREFIX= v +DISTVERSION= 2.7.1 +CATEGORIES= misc python +#MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Histogramming for analysis powered by boost-histogram +WWW= https://hist.readthedocs.io/en/latest/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boost-histogram>=1.3.1:misc/py-boost-histogram@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}histoprint>=2.2.0:misc/py-histoprint@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4:devel/py-typing-extensions@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dask>=2022:devel/py-dask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dask-histogram>=2023.1:devel/py-dask-histogram@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mpl>=0.12:devel/py-pytest-mpl@${PY_FLAVOR} + # tests and plotting also need mplhep>=0.2.16 which isn't yet ported + +USES= python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= scikit-hep + +NO_ARCH= yes + +MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION} +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +BINARY_ALIAS= git=false + +.include diff --git a/misc/py-hist/distinfo b/misc/py-hist/distinfo new file mode 100644 index 000000000000..5f9a2d377b9c --- /dev/null +++ b/misc/py-hist/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1690000714 +SHA256 (scikit-hep-hist-v2.7.1_GH0.tar.gz) = 4cf53706252ad2cafbdd1f4695ded4bca126718239e569e749ccfb9928b945bc +SIZE (scikit-hep-hist-v2.7.1_GH0.tar.gz) = 990922 diff --git a/misc/py-hist/pkg-descr b/misc/py-hist/pkg-descr new file mode 100644 index 000000000000..b4a145f3ccf9 --- /dev/null +++ b/misc/py-hist/pkg-descr @@ -0,0 +1,4 @@ +Hist is a powerful Histogramming tool for analysis based on boost-histogram +(the Python binding of the Histogram library in Boost). It is a friendly +analysis-focused project that uses boost-histogram as a backend to do the +work, but provides plotting tools, shortcuts, and new ideas.